Gah - a solution with more questions. – EntropicLqd

UE2:Weapon properties (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site

Jump to: navigation, search
UT2004 Object >> Actor >> Inventory >> Weapon (properties)

Contents

Weapon properties in other games:
RTNP, U1, UT
Other member categories for this class:
instance functions

[edit] Properties

[edit] Property group 'FirstPerson'

[edit] CenteredOffsetY

Type: float


Default value: -10.0

[edit] CenteredRoll

Type: int


Default value: 2000

[edit] CenteredYaw

Type: int


[edit] DisplayFOV

Type: float


Default value: 90.0

[edit] EffectOffset

Type: Object.Vector

where muzzle flashes and smoke appear. replace by bone reference eventually

[edit] SmallEffectOffset

Type: Object.Vector


[edit] SmallViewOffset

Type: Object.Vector

Offset from view center with small weapons option.

[edit] Property group 'OldFirstPerson'

[edit] OldCenteredOffsetY

Type: float


Default value: -10.0

[edit] OldCenteredRoll

Type: int


Default value: 2000

[edit] OldCenteredYaw

Type: int


[edit] OldDrawScale

Type: float


Default value: 1.0

[edit] OldPlayerViewOffset

Type: Object.Vector


[edit] OldPlayerViewPivot

Type: Object.Rotator


[edit] OldSmallViewOffset

Type: Object.Vector


[edit] Property group 'Weapon'

[edit] AimAnim

Type: name


Default value: 'Aim'

[edit] AimAnimRate

Type: float


Default value: 1.0

[edit] AIRating

Type: float


Default value: 0.5

[edit] Ammo

Type: Ammunition

Array size: 2 (NUM_FIRE_MODES)

Modifiers: protected


[edit] bCanThrow

Type: bool


Default value: True

[edit] bForceSwitch

Type: bool

if true, this weapon will prevent any other weapon from delaying the switch to it (bomb launcher)

[edit] bMeleeWeapon

Type: bool


[edit] bNotInPriorityList

Type: bool

Modifiers: deprecated

Should be displayed in a GUI weapon list - refer to 'Description' documentation

[edit] BotMode

Type: int

the fire Mode currently being used for bots

[edit] bSniping

Type: bool


[edit] ClientState

Type: EWeaponClientState

this will always be None on the server

[edit] DefaultPriority

Type: byte

Modifiers: deprecated


[edit] Description

Type: string

Modifiers: localized, cache


[edit] ExchangeFireModes

Type: byte

Modifiers: config


[edit] FireMode

Type: WeaponFire

Array size: 2 (NUM_FIRE_MODES)

Modifiers: protected


[edit] FireModeClass

Type: class<WeaponFire>

Array size: 2 (NUM_FIRE_MODES)


[edit] IdleAnim

Type: name


Default value: 'Idle'

[edit] IdleAnimRate

Type: float


Default value: 1.0

[edit] MessageNoAmmo

Type: string

Modifiers: localized


Default value: " has no ammo"

[edit] Priority

Type: byte

Modifiers: config


[edit] PutDownAnim

Type: name


Default value: 'Down'

[edit] PutDownAnimRate

Type: float


Default value: 1.3636

[edit] RestAnim

Type: name


Default value: 'Rest'

[edit] RestAnimRate

Type: float


Default value: 1.0

[edit] RunAnim

Type: name


Default value: 'Run'

[edit] RunAnimRate

Type: float


Default value: 1.0

[edit] SelectAnim

Type: name


Default value: 'Select'

[edit] SelectAnimRate

Type: float


Default value: 1.3636

[edit] SelectForce

Type: string


[edit] SelectSound

Type: Sound


[edit] Internal variables

[edit] AmmoCharge

Type: int

Array size: 2


[edit] AmmoClass

Type: class<Ammunition>

Array size: 2


[edit] bBerserk

Type: bool


[edit] bDebugging

Type: bool


[edit] bEndOfRound

Type: bool

don't allow firing

[edit] bInitOldMesh

Type: bool


[edit] bMatchWeapons

Type: bool

OBSOLETE - see WeaponAttachment

[edit] bNoAmmoInstances

Type: bool

if true, replicated ammocount using the Weapons AmmoCharge property - true by default, included to allow mod authors to fallback to old style

Default value: True

[edit] bNoInstagibReplace

Type: bool


[edit] bNotInDemo

Type: bool


[edit] bNoVoluntarySwitch

Type: bool


[edit] bPendingSwitch

Type: bool

Modifiers: transient


[edit] BringUpTime

Type: float


Default value: 0.33

[edit] bShowChargingBar

Type: bool


[edit] bSpectated

Type: bool


[edit] bUseOldWeaponMesh

Type: bool

Modifiers: config


[edit] CurrentRating

Type: float

rating result from most recent RateSelf()

Default value: 0.5

[edit] CustomCrosshair

Type: int

Modifiers: config


[edit] CustomCrossHairColor

Type: Object.Color

Modifiers: config


Default value:

Member Value
A 255
B 255
G 255
R 255

[edit] CustomCrossHairScale

Type: float

Modifiers: config


Default value: 1.0

[edit] CustomCrossHairTexture

Type: Texture


[edit] CustomCrossHairTextureName

Type: string

Modifiers: config


Default value: "Crosshairs.Hud.Crosshair_Cross1"

[edit] DemoReplacement

Type: class<Weapon>


[edit] DownDelay

Type: float


[edit] Hand

Type: float


[edit] HudColor

Type: Object.Color


Default value:

Member Value
A 255
B 0
G 255
R 255

[edit] MinReloadPct

Type: float

Used to delay putting down weapons which have jsut been fired

Default value: 0.5

[edit] OldMesh

Type: Mesh


[edit] OldPickup

Type: string


[edit] OldWeapon

Type: Weapon


[edit] PutDownTime

Type: float


Default value: 0.33

[edit] RenderedHand

Type: float


[edit] Default values

Property Value
AmbientGlow 20
AttachmentClass Class'Engine.WeaponAttachment'
bNetNotify True
DrawType DT_Mesh
InventoryGroup 1
MaxLights 6
NetPriority 3.0
NetUpdateFrequency 2.0
PlayerViewOffset
Member Value
X 0.0
Y 0.0
Z 0.0
ScaleGlow 1.5
SoundVolume 255