UE2:Ammunition (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to navigation Jump to search
UT2004 Object >> Actor >> Inventory >> Ammunition
Package: 
Engine

Ammunition: the base class of weapon ammunition

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

Properties

Property group 'Ammunition'

IconFlashMaterial

Type: Material


Internal variables

AmmoAmount

Type: int

Modifiers: travel


bInstantHit

Type: bool


bLeadTarget

Type: bool


bRecommendSplashDamage

Type: bool


bSplashDamage

Type: bool


bTossed

Type: bool


bTryHeadShot

Type: bool


bTrySplash

Type: bool


FireSound

Type: Sound


InitialAmount

Type: int

sjs // Amount of Ammo current available

Default value: 10

MaxAmmo

Type: int

Modifiers: travel

Max amount of ammo

MaxRange

Type: float

for autoaim

MyDamageType

Type: class<DamageType>


Default value: Class'Engine.DamageType'

PickupAmmo

Type: int

Modifiers: travel


ProjectileClass

Type: class<Projectile>


RefireRate

Type: float


Default value: 0.5

WarnTargetPct

Type: float


Default value: 0.5

Default values

Property Value
NetUpdateFrequency 1.0

Instance functions

AddAmmo

function bool AddAmmo (int AmmoToAdd)


CheckOutOfAmmo

simulated function CheckOutOfAmmo ()


DisplayDebug

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

Overrides: Actor.DisplayDebug


HandlePickupQuery

function bool HandlePickupQuery (Pickup Item)

Overrides: Inventory.HandlePickupQuery


HasAmmo

simulated function bool HasAmmo ()


UseAmmo

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