I don't need to test my programs. I have an error-correcting modem.

UE2:Weapon properties (UT2004)

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Properties[edit]

Property group 'FirstPerson'[edit]

CenteredOffsetY[edit]

Type: float


Default value: -10.0

CenteredRoll[edit]

Type: int


Default value: 2000

CenteredYaw[edit]

Type: int


DisplayFOV[edit]

Type: float


Default value: 90.0

EffectOffset[edit]

Type: Object.Vector

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

SmallEffectOffset[edit]

Type: Object.Vector


SmallViewOffset[edit]

Type: Object.Vector

Offset from view center with small weapons option.

Property group 'OldFirstPerson'[edit]

OldCenteredOffsetY[edit]

Type: float


Default value: -10.0

OldCenteredRoll[edit]

Type: int


Default value: 2000

OldCenteredYaw[edit]

Type: int


OldDrawScale[edit]

Type: float


Default value: 1.0

OldPlayerViewOffset[edit]

Type: Object.Vector


OldPlayerViewPivot[edit]

Type: Object.Rotator


OldSmallViewOffset[edit]

Type: Object.Vector


Property group 'Weapon'[edit]

AimAnim[edit]

Type: name


Default value: 'Aim'

AimAnimRate[edit]

Type: float


Default value: 1.0

AIRating[edit]

Type: float


Default value: 0.5

Ammo[edit]

Type: Ammunition

Array size: 2 (NUM_FIRE_MODES)

Modifiers: protected


bCanThrow[edit]

Type: bool


Default value: True

bForceSwitch[edit]

Type: bool

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

bMeleeWeapon[edit]

Type: bool


bNotInPriorityList[edit]

Type: bool

Modifiers: deprecated

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

BotMode[edit]

Type: int

the fire Mode currently being used for bots

bSniping[edit]

Type: bool


ClientState[edit]

Type: EWeaponClientState

this will always be None on the server

DefaultPriority[edit]

Type: byte

Modifiers: deprecated


Description[edit]

Type: string

Modifiers: localized, cache


ExchangeFireModes[edit]

Type: byte

Modifiers: config


FireMode[edit]

Type: WeaponFire

Array size: 2 (NUM_FIRE_MODES)

Modifiers: protected


FireModeClass[edit]

Type: class<WeaponFire>

Array size: 2 (NUM_FIRE_MODES)


IdleAnim[edit]

Type: name


Default value: 'Idle'

IdleAnimRate[edit]

Type: float


Default value: 1.0

MessageNoAmmo[edit]

Type: string

Modifiers: localized


Default value: " has no ammo"

Priority[edit]

Type: byte

Modifiers: config


PutDownAnim[edit]

Type: name


Default value: 'Down'

PutDownAnimRate[edit]

Type: float


Default value: 1.3636

RestAnim[edit]

Type: name


Default value: 'Rest'

RestAnimRate[edit]

Type: float


Default value: 1.0

RunAnim[edit]

Type: name


Default value: 'Run'

RunAnimRate[edit]

Type: float


Default value: 1.0

SelectAnim[edit]

Type: name


Default value: 'Select'

SelectAnimRate[edit]

Type: float


Default value: 1.3636

SelectForce[edit]

Type: string


SelectSound[edit]

Type: Sound


Internal variables[edit]

AmmoCharge[edit]

Type: int

Array size: 2


AmmoClass[edit]

Type: class<Ammunition>

Array size: 2


bBerserk[edit]

Type: bool


bDebugging[edit]

Type: bool


bEndOfRound[edit]

Type: bool

don't allow firing

bInitOldMesh[edit]

Type: bool


bMatchWeapons[edit]

Type: bool

OBSOLETE - see WeaponAttachment

bNoAmmoInstances[edit]

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

bNoInstagibReplace[edit]

Type: bool


bNotInDemo[edit]

Type: bool


bNoVoluntarySwitch[edit]

Type: bool


bPendingSwitch[edit]

Type: bool

Modifiers: transient


BringUpTime[edit]

Type: float


Default value: 0.33

bShowChargingBar[edit]

Type: bool


bSpectated[edit]

Type: bool


bUseOldWeaponMesh[edit]

Type: bool

Modifiers: config


CurrentRating[edit]

Type: float

rating result from most recent RateSelf()

Default value: 0.5

CustomCrosshair[edit]

Type: int

Modifiers: config


CustomCrossHairColor[edit]

Type: Object.Color

Modifiers: config


Default value:

Member Value
A 255
B 255
G 255
R 255

CustomCrossHairScale[edit]

Type: float

Modifiers: config


Default value: 1.0

CustomCrossHairTexture[edit]

Type: Texture


CustomCrossHairTextureName[edit]

Type: string

Modifiers: config


Default value: "Crosshairs.Hud.Crosshair_Cross1"

DemoReplacement[edit]

Type: class<Weapon>


DownDelay[edit]

Type: float


Hand[edit]

Type: float


HudColor[edit]

Type: Object.Color


Default value:

Member Value
A 255
B 0
G 255
R 255

MinReloadPct[edit]

Type: float

Used to delay putting down weapons which have jsut been fired

Default value: 0.5

OldMesh[edit]

Type: Mesh


OldPickup[edit]

Type: string


OldWeapon[edit]

Type: Weapon


PutDownTime[edit]

Type: float


Default value: 0.33

RenderedHand[edit]

Type: float


Default values[edit]

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