My program doesn't have bugs. It just develops random features.
UE2:Weapon internal variables (UE2Runtime)
Contents
- 1 Internal variables
- 1.1 AdjustedAim
- 1.2 Affector
- 1.3 AimError
- 1.4 AIRating
- 1.5 AmmoName
- 1.6 AmmoType
- 1.7 AutoSwitchPriority
- 1.8 bAutoFire
- 1.9 bCanThrow
- 1.10 bChangeWeapon
- 1.11 bDrawMuzzleFlash
- 1.12 bForceAltFire
- 1.13 bForceFire
- 1.14 bForceReload
- 1.15 bMeleeWeapon
- 1.16 bMuzzleFlash
- 1.17 bMuzzleFlashParticles
- 1.18 bPointing
- 1.19 bRapidFire
- 1.20 bSetFlashTime
- 1.21 bSniping
- 1.22 bSpectated
- 1.23 bSteadyToggle
- 1.24 bWeaponUp
- 1.25 CrossHair
- 1.26 CurrentRating
- 1.27 DisplayFOV
- 1.28 FireAdjust
- 1.29 FireOffset
- 1.30 FlashCount
- 1.31 FlashTime
- 1.32 LeftHandedMesh
- 1.33 MaxRange
- 1.34 MFTexture
- 1.35 MuzzleFlashMesh
- 1.36 MuzzleFlashScale
- 1.37 MuzzleFlashStyle
- 1.38 MuzzleFlashTexture
- 1.39 NameColor
- 1.40 OldWeapon
- 1.41 PickupAmmoCount
- 1.42 ReloadCount
- 1.43 ShakeMag
- 1.44 ShakeSpeed
- 1.45 ShakeTime
- 1.46 ShakeVert
- 1.47 StopFiringTime
- 1.48 TraceAccuracy
- 1.49 TraceDist
- 1.50 WeaponDescription
- Weapon internal variables in other games:
- U2, U2XMP
- Other member categories for this class:
- instance functions, states
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Internal variables[edit]
AdjustedAim[edit]
Type: Object.Rotator
Affector[edit]
Type: Powerups
powerup chain currently affecting this weapon
AimError[edit]
Type: float
Aim Error for bots (note this value doubled if instant hit weapon)
Default value: 550.0
AIRating[edit]
Type: float
Default value: 0.5
AmmoName[edit]
Type: class<Ammunition>
Type of ammo used.
AmmoType[edit]
Type: Ammunition
Modifiers: travel
Inventory Ammo being used.
AutoSwitchPriority[edit]
Type: int
Default value: 1
bAutoFire[edit]
Type: bool
when changed, draw muzzle flash for current frame
bCanThrow[edit]
Type: bool
if true, player can toss this weapon out
Default value: True
bChangeWeapon[edit]
Type: bool
Used in Active State
bDrawMuzzleFlash[edit]
Type: bool
bForceAltFire[edit]
Type: bool
bForceFire[edit]
Type: bool
bForceReload[edit]
Type: bool
bMeleeWeapon[edit]
Type: bool
Weapon is only a melee weapon
bMuzzleFlash[edit]
Type: bool
if !=0 show first-person muzzle flash
bMuzzleFlashParticles[edit]
Type: bool
bPointing[edit]
Type: bool
Indicates weapon is being pointed
bRapidFire[edit]
Type: bool
used by pawn animations in determining firing animation, and for net replication
bSetFlashTime[edit]
Type: bool
reset FlashTime clock when false
bSniping[edit]
Type: bool
weapon useful for sniping
bSpectated[edit]
Type: bool
bSteadyToggle[edit]
Type: bool
bWeaponUp[edit]
Type: bool
Used in Active State
CrossHair[edit]
Type: Texture
CurrentRating[edit]
Type: float
Default value: 0.5
DisplayFOV[edit]
Type: float
Default value: 85.0
FireAdjust[edit]
Type: float
Default value: 1.0
FireOffset[edit]
Type: Object.Vector
Offset from first person eye position for projectile/trace start
FlashCount[edit]
Type: byte
when incremented, draw muzzle flash for current frame
FlashTime[edit]
Type: float
time when muzzleflash will be cleared (set in RenderOverlays())
LeftHandedMesh[edit]
Type: string
string of name of left-handed view mesh (if different)
MaxRange[edit]
Type: float
max range of weapon for non-trace hit attacks
Default value: 8000.0
MFTexture[edit]
Type: Texture
first-person muzzle flash sprite
MuzzleFlashMesh[edit]
Type: Mesh
MuzzleFlashScale[edit]
Type: float
MuzzleFlashStyle[edit]
Type: Actor.ERenderStyle
MuzzleFlashTexture[edit]
Type: Texture
NameColor[edit]
Type: Object.Color
used when drawing name on HUD
Default value:
Member | Value |
---|---|
A | 255 |
B | 255 |
G | 255 |
R | 255 |
OldWeapon[edit]
Type: Weapon
PickupAmmoCount[edit]
Type: int
Amount of ammo initially in pick-up item.
ReloadCount[edit]
Type: byte
ShakeMag[edit]
Type: float
Default value: 300.0
ShakeSpeed[edit]
Type: Object.Vector
Default value:
Member | Value |
---|---|
X | 100.0 |
Y | 100.0 |
Z | 100.0 |
ShakeTime[edit]
Type: float
Default value: 0.1
ShakeVert[edit]
Type: Object.Vector
Default value:
Member | Value |
---|---|
Z | 5.0 |
StopFiringTime[edit]
Type: float
repeater weapons use this
TraceAccuracy[edit]
Type: float
TraceDist[edit]
Type: float
how far instant hit trace fires go
Default value: 10000.0
WeaponDescription[edit]
Type: string
Modifiers: localized