1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

INI Based Adjustable AmmoBonus

Discussion in 'Ask a Coder' started by [FU2]SpawnKiller, Nov 13, 2003.

  1. [FU2]SpawnKiller

    [FU2]SpawnKiller New Member

    Joined:
    Sep 13, 2003
    Messages:
    26
    Likes Received:
    0
    How can I change this to be Adjustable with a INI file setting??

    Code:
       	if (InstigatedBy.IsA('Bot') || InstigatedBy.IsA('PlayerPawn')) // and a player or bot did it...
        	{
                // check for teammate... do nothing if the player kills his teammate...
                if (Level.Game.bDeathMatch)
                {
                    if (InstigatedBy.PlayerReplicationInfo.Team != Victim.PlayerReplicationInfo.Team)
                    {
                        // give them some ammo...
                        InstigatedBy.ClientMessage("***You've Earned 3 Rounds of  Ammo***", 'Event', true);
                        InstigatedBy.Weapon.AmmoType.AmmoAmount * 4;
                        if (InstigatedBy.Weapon.AmmoType.AmmoAmount > InstigatedBy.Weapon.AmmoType.MaxAmmo)
                        {
                            InstigatedBy.Weapon.AmmoType.AmmoAmount = InstigatedBy.Weapon.AmmoType.MaxAmmo;
                        }
                    }
                }
        	}
     
  2. Postal

    Postal I apear to have lost my pin.

    Joined:
    Nov 14, 1999
    Messages:
    1,388
    Likes Received:
    0
    I dont know how to do what you want, but you could set it up to be configurable in the mutator configurations window
     

Share This Page