Gah - a solution with more questions. – EntropicLqd
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[edit]
Property group 'ONSWeapon'[edit]
See ONSWeapon property group ONSWeapon.
Internal variables[edit]
AIInfo[edit]
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[edit]
Type: float
when this time is reached gun can move again
AimTraceRange[edit]
Type: float
AmbientEffectEmitter[edit]
Type: ONSWeaponAmbientEmitter
bActive[edit]
Type: bool
bCallInstigatorPostRender[edit]
Type: bool
if Instigator exists, during this actor's native PostRender(), call Instigator->PostRender() (used when weapon is visible but owner is bHidden)
bCorrectAim[edit]
Type: bool
Modifiers: const
Default value: True
bDoOffsetTrace[edit]
Type: bool
trace from outside vehicle's collision back towards weapon to determine firing offset
bForceCenterAim[edit]
Type: bool
bInstantRotation[edit]
Type: bool
NOTE: Gradual rotation via RotationsPerSecond still used for non-owning net clients to smooth rotation changes
bIsAltFire[edit]
Type: bool
bIsRepeatingFF[edit]
Type: bool
bShowChargingBar[edit]
Type: bool
CurrentAim[edit]
Type: Object.Rotator
CurrentHitLocation[edit]
Type: Object.Vector
DamageMax[edit]
Type: int
Default value: 6
DamageMin[edit]
Type: int
Default value: 6
DamageType[edit]
Type: class<DamageType>
Default value: Class'XWeapons.DamTypeMinigunBullet'
DebugInfo[edit]
Type: string
EffectEmitter[edit]
Type: Emitter
FireCountdown[edit]
Type: float
FlashCount[edit]
Type: byte
Incremented each frame of firing
FlashEmitter[edit]
Type: Emitter
HitCount[edit]
Type: byte
Incremented each time a hit effect occurs
LastHitLocation[edit]
Type: Object.Vector
Location of the last hit effect
LastRotation[edit]
Type: Object.Rotator
Momentum[edit]
Type: float
Default value: 1.0
OldFlashCount[edit]
Type: byte
Stores the last FlashCount received
OldHitCount[edit]
Type: byte
Projectiles[edit]
Type: array<Projectile>
RotateSoundThreshold[edit]
Type: float
threshold in rotator units for RotateSound to play
Default value: 50.0
RotationsPerSecond[edit]
Type: float
Default value: 0.75
SavedFireProperties[edit]
Type: Actor.FireProperties
Array size: 2
Spread[edit]
Type: float
Team[edit]
Type: byte
TraceRange[edit]
Type: float
Default value: 10000.0
WeaponFireLocation[edit]
Type: Object.Vector
WeaponFireRotation[edit]
Type: Object.Rotator
WeaponOffset[edit]
Type: Object.Vector
YawConstraintDelta[edit]
Type: float
Default values[edit]
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[edit]
ONSWeaponAIInfo[edit]
Modifiers: native
- bool bTossed
- bool bTrySplash
- bool bLeadTarget
- bool bInstantHit
- bool bFireOnRelease
- float AimError
- float WarnTargetPct
- float RefireRate
Functions[edit]
Static functions[edit]
StaticPrecache[edit]
Native functions[edit]
LimitPitch[edit]
Events[edit]
AttemptFire[edit]
ClientSpawnHitEffects[edit]
Destroyed[edit]
Overrides: Actor.Destroyed
FlashMuzzleFlash[edit]
OwnerEffects[edit]
PostBeginPlay[edit]
Overrides: Actor.PostBeginPlay
PostNetBeginPlay[edit]
Overrides: Actor.PostNetBeginPlay
Other instance functions[edit]
AdjustAim[edit]
AltFire[edit]
BestMode[edit]
CalcWeaponFire[edit]
CanAttack[edit]
CeaseFire[edit]
ChargeBar[edit]
ClientPlayForceFeedback[edit]
ClientStartFire[edit]
ClientStopFire[edit]
DestroyEffects[edit]
DisplayDebug[edit]
Overrides: Actor.DisplayDebug
DoCombo[edit]
Fire[edit]
InitEffects[edit]
MaxRange[edit]
SetFireRateModifier[edit]
SetGRI[edit]
Overrides: Actor.SetGRI
SetTeam[edit]
ShakeView[edit]
SimulateTraceFire[edit]
SpawnBeamEffect[edit]
SpawnHitEffects[edit]
SpawnProjectile[edit]
StopForceFeedback[edit]
TraceFire[edit]
WeaponCeaseFire[edit]
States[edit]
InstantFireMode[edit]
InstantFireMode.ClientSpawnHitEffects[edit]
Overrides: ClientSpawnHitEffects (global)
InstantFireMode.AltFire[edit]
Overrides: AltFire (global)
InstantFireMode.Fire[edit]
Overrides: Fire (global)
InstantFireMode.SpawnHitEffects[edit]
Overrides: SpawnHitEffects (global)
ProjectileFireMode[edit]
ProjectileFireMode.AltFire[edit]
Overrides: AltFire (global)
ProjectileFireMode.Fire[edit]
Overrides: Fire (global)