There is no spoon

UE2:Ammunition (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site

Jump to: navigation, search
UT2004 Object >> Actor >> Inventory >> Ammunition

Contents

Package: 
Engine
Known direct subclasses:
Ammo_BallTurret, Ammo_Dummy, AssaultAmmo, BallAmmo, BioAmmo, BruteAmmo, ClassicSniperAmmo, FlakAmmo, GasbagAmmo, GrenadeAmmo, KrallAmmo, LinkAmmo, MinigunAmmo, 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.

[edit] Properties

[edit] Property group 'Ammunition'

[edit] IconFlashMaterial

Type: Material


[edit] Internal variables

[edit] AmmoAmount

Type: int

Modifiers: travel


[edit] bInstantHit

Type: bool


[edit] bLeadTarget

Type: bool


[edit] bRecommendSplashDamage

Type: bool


[edit] bSplashDamage

Type: bool


[edit] bTossed

Type: bool


[edit] bTryHeadShot

Type: bool


[edit] bTrySplash

Type: bool


[edit] FireSound

Type: Sound


[edit] InitialAmount

Type: int

sjs // Amount of Ammo current available

Default value: 10

[edit] MaxAmmo

Type: int

Modifiers: travel

Max amount of ammo

[edit] MaxRange

Type: float

for autoaim

[edit] MyDamageType

Type: class<DamageType>


Default value: Class'Engine.DamageType'

[edit] PickupAmmo

Type: int

Modifiers: travel


[edit] ProjectileClass

Type: class<Projectile>


[edit] RefireRate

Type: float


Default value: 0.5

[edit] WarnTargetPct

Type: float


Default value: 0.5

[edit] Default values

Property Value
NetUpdateFrequency 1.0

[edit] Instance functions

[edit] AddAmmo

function bool AddAmmo (int AmmoToAdd)


[edit] CheckOutOfAmmo

simulated function CheckOutOfAmmo ()


[edit] DisplayDebug

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

Overrides: Actor.DisplayDebug


[edit] HandlePickupQuery

function bool HandlePickupQuery (Pickup Item)

Overrides: Inventory.HandlePickupQuery


[edit] HasAmmo

simulated function bool HasAmmo ()


[edit] UseAmmo

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


Personal tools