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

UE2:Ammunition (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 10:11, 17 May 2008 by Wormbo (Talk | contribs) (Auto-generated page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UT2004 Object >> Actor >> Inventory >> Ammunition
Package: 
Engine
Direct subclasses:
MinigunAmmo, Ammo_BallTurret, Ammo_Dummy, AssaultAmmo, BallAmmo, BioAmmo, BruteAmmo, ClassicSniperAmmo, FlakAmmo, GasbagAmmo, GrenadeAmmo, KrallAmmo, LinkAmmo, ONSAVRiLAmmo, ONSGrenadeAmmo, ONSMineAmmo, RedeemerAmmo, RocketAmmo, ShieldAmmo, ShockAmmo, SkaarjAmmo, SniperAmmo, TransAmmo, WarlordAmmo
This class in other games:
U2XMP, UE2Runtime, UT2003

Ammunition: the base class of weapon ammunition

This is a built-in Unreal class and it shouldn't be modified.

Properties[edit]

Property group 'Ammunition'[edit]

IconFlashMaterial[edit]

Type: Material


Internal variables[edit]

AmmoAmount[edit]

Type: int

Modifiers: travel


bInstantHit[edit]

Type: bool


bLeadTarget[edit]

Type: bool


bRecommendSplashDamage[edit]

Type: bool


bSplashDamage[edit]

Type: bool


bTossed[edit]

Type: bool


bTryHeadShot[edit]

Type: bool


bTrySplash[edit]

Type: bool


FireSound[edit]

Type: Sound


InitialAmount[edit]

Type: int

sjs // Amount of Ammo current available

Default value: 10

MaxAmmo[edit]

Type: int

Modifiers: travel

Max amount of ammo

MaxRange[edit]

Type: float

for autoaim

MyDamageType[edit]

Type: class<DamageType>


Default value: Class'Engine.DamageType'

PickupAmmo[edit]

Type: int

Modifiers: travel


ProjectileClass[edit]

Type: class<Projectile>


RefireRate[edit]

Type: float


Default value: 0.5

WarnTargetPct[edit]

Type: float


Default value: 0.5

Default values[edit]

Property Value
NetUpdateFrequency 1.0

Instance functions[edit]

AddAmmo[edit]

function bool AddAmmo (int AmmoToAdd)


CheckOutOfAmmo[edit]

simulated function CheckOutOfAmmo ()


DisplayDebug[edit]

simulated function DisplayDebug (Canvas Canvas, out float YL, out float YPos)

Overrides: Actor.DisplayDebug


HandlePickupQuery[edit]

function bool HandlePickupQuery (Pickup Item)

Overrides: Inventory.HandlePickupQuery


HasAmmo[edit]

simulated function bool HasAmmo ()


UseAmmo[edit]

simulated function bool UseAmmo (int AmountNeeded, optional bool bAmountNeededIsMax)