I don't need to test my programs. I have an error-correcting modem.

UE2:U2Ammo (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Inventory >> Ammunition >> U2Ammo
Package: 
U2
Direct subclasses:
AmmoInvAssaultRifle, AmmoInvAutoCannon, AmmoInvDispersion, AmmoInvEnergyRifle, AmmoInvFlamethrower, AmmoInvGrenade, AmmoInvLaserRifle, AmmoInvLeechGun, AmmoInvPistol, AmmoInvRocketLauncher, AmmoInvRocket, AmmoInvShotgun, AmmoInvSingularityCannon, AmmoInvSniperRifle, AmmoInvTakkra, U2XMPAmmo

U2Ammo.uc $Author: Mbaldwin $ $Date: 12/10/02 8:16p $ $Revision: 11 $ NOTES: - All U2Ammo interaction runs on the server -- no replication required - AmountAmount is always "1" -- hardcoded in U2Weapon.uc (TournamentWeapon.uc) - ClientFire() and ClientAltFire() assume that AmmoAmmount > 0 is "sufficient to fire"

Properties[edit]

ClipRoundsRemaining[edit]

Type: int

Modifiers: travel


ClipSize[edit]

Type: int

automatically initialized based on AmmoAmount

Default values[edit]

Property Value
bMergesCopies True

Functions[edit]

Events[edit]

PreBeginPlay[edit]

simulated event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


Replication[edit]

simulated event Replication ()

Overrides: Ammunition.Replication


Other instance functions[edit]

AddMinAmmo[edit]

function AddMinAmmo (int MinAmmo)


CanReload[edit]

simulated function bool CanReload ()


GiveTo[edit]

function GiveTo (Pawn Other, optional bool bDontTryToSwitch)

Overrides: Inventory.GiveTo


MaximizeClipAmount[edit]

function MaximizeClipAmount ()


Reload[edit]

simulated function Reload ()


ReloadRequired[edit]

simulated function bool ReloadRequired (int AmountNeeded)


UseAmmo[edit]

function bool UseAmmo (int AmountNeeded)

Overrides: Ammunition.UseAmmo