UE2:Ammunition (UE2Runtime)

From Unreal Wiki, The Unreal Engine Documentation Site
UE2Runtime Object >> Actor >> Inventory >> Ammunition
Package:
Engine
This class in other games:

Ammunition: the base class of weapon ammunition

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

Properties

AmmoAmount

Type: int

Modifiers: travel

Amount of Ammo current available

bInstantHit

Type: bool


bLeadTarget

Type: bool


bRecommendSplashDamage

Type: bool


bSplashDamage

Type: bool


bTossed

Type: bool


bTrySplash

Type: bool


FireSound

Type: Sound


MaxAmmo

Type: int

Modifiers: travel

Max amount of ammo

MaxAutoAimRange

Type: float


Default value: 5000.0

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

Instance functions

AddAmmo

function bool AddAmmo (int AmmoToAdd)


DisplayDebug

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

Overrides: Actor.DisplayDebug


GetDamageRadius

function float GetDamageRadius ()


HandlePickupQuery

function bool HandlePickupQuery (Pickup Item)

Overrides: Inventory.HandlePickupQuery


HasAmmo

simulated function bool HasAmmo ()


ProcessTraceHit

function ProcessTraceHit (Weapon W, Actor Other, Object.Vector HitLocation, Object.Vector HitNormal, Object.Vector X, Object.Vector Y, Object.Vector Z)


RateSelf

function float RateSelf (Pawn Shooter, out name RecommendedFiringMode)


SpawnProjectile

function SpawnProjectile (Object.Vector Start, Object.Rotator Dir)


WarnTarget

function WarnTarget (Actor Target, Pawn P, Object.Vector FireDir)