I'm a doctor, not a mechanic
UE2:ONSWeapon (UT2004)
Contents
- 1 Properties
- 1.1 Property group 'ONSWeapon'
- 1.2 Internal variables
- 1.2.1 AIInfo
- 1.2.2 AimLockReleaseTime
- 1.2.3 AimTraceRange
- 1.2.4 AmbientEffectEmitter
- 1.2.5 bActive
- 1.2.6 bCallInstigatorPostRender
- 1.2.7 bCorrectAim
- 1.2.8 bDoOffsetTrace
- 1.2.9 bForceCenterAim
- 1.2.10 bInstantRotation
- 1.2.11 bIsAltFire
- 1.2.12 bIsRepeatingFF
- 1.2.13 bShowChargingBar
- 1.2.14 CurrentAim
- 1.2.15 CurrentHitLocation
- 1.2.16 DamageMax
- 1.2.17 DamageMin
- 1.2.18 DamageType
- 1.2.19 DebugInfo
- 1.2.20 EffectEmitter
- 1.2.21 FireCountdown
- 1.2.22 FlashCount
- 1.2.23 FlashEmitter
- 1.2.24 HitCount
- 1.2.25 LastHitLocation
- 1.2.26 LastRotation
- 1.2.27 Momentum
- 1.2.28 OldFlashCount
- 1.2.29 OldHitCount
- 1.2.30 Projectiles
- 1.2.31 RotateSoundThreshold
- 1.2.32 RotationsPerSecond
- 1.2.33 SavedFireProperties
- 1.2.34 Spread
- 1.2.35 Team
- 1.2.36 TraceRange
- 1.2.37 WeaponFireLocation
- 1.2.38 WeaponFireRotation
- 1.2.39 WeaponOffset
- 1.2.40 YawConstraintDelta
- 1.3 Default values
- 2 Structs
- 3 Functions
- 3.1 Static functions
- 3.2 Native functions
- 3.3 Events
- 3.4 Other instance functions
- 3.4.1 AdjustAim
- 3.4.2 AltFire
- 3.4.3 BestMode
- 3.4.4 CalcWeaponFire
- 3.4.5 CanAttack
- 3.4.6 CeaseFire
- 3.4.7 ChargeBar
- 3.4.8 ClientPlayForceFeedback
- 3.4.9 ClientStartFire
- 3.4.10 ClientStopFire
- 3.4.11 DestroyEffects
- 3.4.12 DisplayDebug
- 3.4.13 DoCombo
- 3.4.14 Fire
- 3.4.15 InitEffects
- 3.4.16 MaxRange
- 3.4.17 SetFireRateModifier
- 3.4.18 SetGRI
- 3.4.19 SetTeam
- 3.4.20 ShakeView
- 3.4.21 SimulateTraceFire
- 3.4.22 SpawnBeamEffect
- 3.4.23 SpawnHitEffects
- 3.4.24 SpawnProjectile
- 3.4.25 StopForceFeedback
- 3.4.26 TraceFire
- 3.4.27 WeaponCeaseFire
- 4 States
- Package:
- Onslaught
- Direct subclasses:
- ONSRVWebLauncher, ONSArtilleryCannon, ONSArtillerySideGun, ONSAttackCraftGun, ONSBombDropper, ONSDualACGatlingGun, ONSHoverBikePlasmaGun, ONSHoverTankCannon, ONSLinkableWeapon, ONSMASCannon, ONSMASRocketPack, ONSMASSideGun, ONSManualGun, ONSPRVRearGun, ONSPRVSideGun, ONSShockTankCannon, ONSTankSecondaryTurret
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. |
Properties
Property group 'ONSWeapon'
See ONSWeapon property group ONSWeapon.
Internal variables
AIInfo
Type: ONSWeaponAIInfo
Array size: 2
Default value, index 0:
Member | Value |
---|---|
AimError | 600.0 |
RefireRate | 0.9 |
Default value, index 1:
Member | Value |
---|---|
AimError | 600.0 |
RefireRate | 0.9 |
AimLockReleaseTime
Type: float
when this time is reached gun can move again
AimTraceRange
Type: float
AmbientEffectEmitter
Type: ONSWeaponAmbientEmitter
bActive
Type: bool
bCallInstigatorPostRender
Type: bool
if Instigator exists, during this actor's native PostRender(), call Instigator->PostRender() (used when weapon is visible but owner is bHidden)
bCorrectAim
Type: bool
Modifiers: const
Default value: True
bDoOffsetTrace
Type: bool
trace from outside vehicle's collision back towards weapon to determine firing offset
bForceCenterAim
Type: bool
bInstantRotation
Type: bool
NOTE: Gradual rotation via RotationsPerSecond still used for non-owning net clients to smooth rotation changes
bIsAltFire
Type: bool
bIsRepeatingFF
Type: bool
bShowChargingBar
Type: bool
CurrentAim
Type: Object.Rotator
CurrentHitLocation
Type: Object.Vector
DamageMax
Type: int
Default value: 6
DamageMin
Type: int
Default value: 6
DamageType
Type: class<DamageType>
Default value: Class'XWeapons.DamTypeMinigunBullet'
DebugInfo
Type: string
EffectEmitter
Type: Emitter
FireCountdown
Type: float
FlashCount
Type: byte
Incremented each frame of firing
FlashEmitter
Type: Emitter
HitCount
Type: byte
Incremented each time a hit effect occurs
LastHitLocation
Type: Object.Vector
Location of the last hit effect
LastRotation
Type: Object.Rotator
Momentum
Type: float
Default value: 1.0
OldFlashCount
Type: byte
Stores the last FlashCount received
OldHitCount
Type: byte
Projectiles
Type: array<Projectile>
RotateSoundThreshold
Type: float
threshold in rotator units for RotateSound to play
Default value: 50.0
RotationsPerSecond
Type: float
Default value: 0.75
SavedFireProperties
Type: Actor.FireProperties
Array size: 2
Spread
Type: float
Team
Type: byte
TraceRange
Type: float
Default value: 10000.0
WeaponFireLocation
Type: Object.Vector
WeaponFireRotation
Type: Object.Rotator
WeaponOffset
Type: Object.Vector
YawConstraintDelta
Type: float
Default values
Property | Value |
---|---|
bBlockNonZeroExtentTraces | False |
bBlockZeroExtentTraces | False |
bIgnoreEncroachers | True |
bNoRepMesh | True |
bReplicateInstigator | True |
DrawType | DT_Mesh |
NetUpdateFrequency | 5.0 |
RemoteRole | ROLE_SimulatedProxy |
SoundRadius | 100.0 |
SoundVolume | 255 |
Structs
ONSWeaponAIInfo
Modifiers: native
- bool bTossed
- bool bTrySplash
- bool bLeadTarget
- bool bInstantHit
- bool bFireOnRelease
- float AimError
- float WarnTargetPct
- float RefireRate
Functions
Static functions
StaticPrecache
Native functions
LimitPitch
Events
AttemptFire
ClientSpawnHitEffects
Destroyed
Overrides: Actor.Destroyed
FlashMuzzleFlash
OwnerEffects
PostBeginPlay
Overrides: Actor.PostBeginPlay
PostNetBeginPlay
Overrides: Actor.PostNetBeginPlay
Other instance functions
AdjustAim
AltFire
BestMode
CalcWeaponFire
CanAttack
CeaseFire
ChargeBar
ClientPlayForceFeedback
ClientStartFire
ClientStopFire
DestroyEffects
DisplayDebug
Overrides: Actor.DisplayDebug
DoCombo
Fire
InitEffects
MaxRange
SetFireRateModifier
SetGRI
Overrides: Actor.SetGRI
SetTeam
ShakeView
SimulateTraceFire
SpawnBeamEffect
SpawnHitEffects
SpawnProjectile
StopForceFeedback
TraceFire
WeaponCeaseFire
States
InstantFireMode
InstantFireMode.ClientSpawnHitEffects
Overrides: ClientSpawnHitEffects (global)
InstantFireMode.AltFire
Overrides: AltFire (global)
InstantFireMode.Fire
Overrides: Fire (global)
InstantFireMode.SpawnHitEffects
Overrides: SpawnHitEffects (global)
ProjectileFireMode
ProjectileFireMode.AltFire
Overrides: AltFire (global)
ProjectileFireMode.Fire
Overrides: Fire (global)