Cogito, ergo sum

UE3:UTAmmoPickupFactory (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UDK Object >> Actor >> NavigationPoint >> PickupFactory >> UTPickupFactory >> UTItemPickupFactory >> UTAmmoPickupFactory
Package: 
UTGame
Direct subclasses:
UTAmmo_LinkGun, UTAmmo_RocketLauncher, UTAmmo_ShockRifle
This class in other games:
UT3


Properties[edit]

AmmoAmount[edit]

Type: int

The amount of ammo to give

TargetWeapon[edit]

Type: class<UTWeapon>

The class of the weapon this ammo is for.

TransformedClass[edit]

Type: class<UTAmmoPickupFactory>

Modifiers: repnotify

set when TransformAmmoType() has been called on this ammo pickup to transform it into a different kind, to notify clients

Default values[edit]

Property Value
Components[4] StaticMeshComponent'AmmoMeshComp'
MaxDesireability 0.2
PickupMessage "Ammo"
PickUpWaveForm ForceFeedbackWaveform'UTGame.Default__UTAmmoPickupFactory:ForceFeedbackWaveformPickUp'
RespawnSound SoundCue'A_Pickups.Ammo.Cue.A_Pickup_Ammo_Respawn_Cue'

Subobjects[edit]

AmmoMeshComp[edit]

Class: Engine.StaticMeshComponent

Property Value
bCastDynamicShadow False
bForceDirectLightMap True
BlockActors False
BlockNonZeroExtent False
BlockRigidBody False
BlockZeroExtent False
CachedMaxDrawDistance 4000.0
CastShadow False
CollideActors False
LightEnvironment DynamicLightEnvironmentComponent'UTGame.Default__UTAmmoPickupFactory:PickupLightEnvironment'
MaxDrawDistance 4000.0
ReplacementPrimitive None
Scale 1.8

BaseMeshComp[edit]

Class: Engine.StaticMeshComponent

Inherits from: UTItemPickupFactory.BaseMeshComp

Property Value
ReplacementPrimitive None

CollisionCylinder[edit]

Class: Engine.CylinderComponent

Inherits from: UTItemPickupFactory.CollisionCylinder

Property Value
CollisionHeight 9.6
CollisionRadius 24.0
ReplacementPrimitive None

PathRenderer[edit]

Class: Engine.PathRenderingComponent

Inherits from: UTItemPickupFactory.PathRenderer

Property Value
ReplacementPrimitive None

PickupLightEnvironment[edit]

Class: Engine.DynamicLightEnvironmentComponent

Inherits from: UTItemPickupFactory.PickupLightEnvironment

No new values.

Functions[edit]

Static functions[edit]

UpdateHUD[edit]

simulated static function UpdateHUD (UTHUD H)

Overrides: UTPickupFactory.UpdateHUD


Native functions[edit]

TransformAmmoType[edit]

native function TransformAmmoType (class<UTAmmoPickupFactoryNewAmmoClass)

transforms this ammo into the specified kind of ammo the native implementation copies pickup related properties from NewAmmoClass but if an ammo class implements special code functionality, that might not work so you can override this and simply spawn a new pickup factory instead

Parameters:

  • NewAmmoClass - the kind of ammo to emulate

Events[edit]

ReplicatedEvent[edit]

simulated event ReplicatedEvent (name VarName)

Overrides: UTPickupFactory.ReplicatedEvent

Look for changes in bPulseBase or bPickupHidden and set the TargetEmissive accordingly

Other instance functions[edit]

BotDesireability[edit]

function float BotDesireability (Pawn P, Controller C)

Overrides: UTItemPickupFactory.BotDesireability


SpawnCopyFor[edit]

function SpawnCopyFor (Pawn Recipient)

Overrides: UTItemPickupFactory.SpawnCopyFor

Give the benefit of this pickup to the recipient

States[edit]

Pickup[edit]

Inherits from: UTPickupFactory.Pickup

Modifiers: auto

Pickup.DetourWeight[edit]

event float DetourWeight (Pawn P, float PathWeight)

Overrides: PickupFactory.Pickup.DetourWeight


Pickup.ValidTouch[edit]

function bool ValidTouch (Pawn Other)

Overrides: PickupFactory.Pickup.ValidTouch