Mostly Harmless

UE3:UTAmmoPickupFactory (UT3)

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UT3 Object >> Actor >> NavigationPoint >> PickupFactory >> UTPickupFactory >> UTItemPickupFactory >> UTAmmoPickupFactory
Package: 
UTGame
Direct subclasses:
UTAmmo_BioRifle_Content, UTAmmo_Enforcer, UTAmmo_AVRiL, UTAmmo_BioRifle, UTAmmo_FlakCannon, UTAmmo_LinkGun, UTAmmo_RocketLauncher, UTAmmo_ShockRifle, UTAmmo_SniperRifle, UTAmmo_Stinger
This class in other games:
UDK

Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

Properties

AmmoAmount

Type: int

The amount of ammo to give

TargetWeapon

Type: class<UTWeapon>

The class of the weapon this ammo is for.

TransformedClass

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

Property Value
Components[4] StaticMeshComponent'AmmoMeshComp'
PickupMessage "Munition"
RespawnSound SoundCue'A_Pickups.Ammo.Cue.A_Pickup_Ammo_Respawn_Cue'

Subobjects

AmmoMeshComp

Class: Engine.StaticMeshComponent

Property Value
bCastDynamicShadow False
bForceDirectLightMap True
BlockActors False
BlockNonZeroExtent False
BlockRigidBody False
BlockZeroExtent False
bUseAsOccluder False
CachedCullDistance 4000.0
CastShadow False
CollideActors False
CullDistance 4000.0
LightEnvironment DynamicLightEnvironmentComponent'UTGame.Default__UTAmmoPickupFactory:PickupLightEnvironment'
LightingChannels
Member Value
BSP True
Static True
Scale 1.0

BaseMeshComp

Class: Engine.StaticMeshComponent

Inherits from: UTItemPickupFactory.BaseMeshComp

No new values.

CollisionCylinder

Class: Engine.CylinderComponent

Inherits from: UTItemPickupFactory.CollisionCylinder

Property Value
CollisionHeight 9.0
CollisionRadius 24.0

PathRenderer

Class: Engine.PathRenderingComponent

Inherits from: UTItemPickupFactory.PathRenderer

No new values.

PickupLightEnvironment

Class: Engine.DynamicLightEnvironmentComponent

Inherits from: UTItemPickupFactory.PickupLightEnvironment

No new values.

Functions

Static functions

UpdateHUD

simulated static function UpdateHUD (UTHUD H)

Overrides: UTPickupFactory.UpdateHUD


Native functions

TransformAmmoType

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

ReplicatedEvent

simulated event ReplicatedEvent (name VarName)

Overrides: UTPickupFactory.ReplicatedEvent

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

Other instance functions

BotDesireability

function float BotDesireability (Pawn P, Controller C)

Overrides: UTItemPickupFactory.BotDesireability


SpawnCopyFor

function SpawnCopyFor (Pawn Recipient)

Overrides: UTItemPickupFactory.SpawnCopyFor

Give the benefit of this pickup to the recipient

States

Pickup

Inherits from: UTPickupFactory.Pickup

Modifiers: auto

Pickup.DetourWeight

event float DetourWeight (Pawn P, float PathWeight)

Overrides: PickupFactory.Pickup.DetourWeight


Pickup.ValidTouch

function bool ValidTouch (Pawn Other)

Overrides: PickupFactory.Pickup.ValidTouch