The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
UE2:ONSWeaponPawn (UT2004)
Contents
- 1 Constants
- 2 Properties
- 2.1 Property group 'ONSWeaponPawn'
- 2.2 Internal variables
- 2.2.1 bCustomAiming
- 2.2.2 bHasAltFire
- 2.2.3 bHasAltFireImpulse
- 2.2.4 bHasFireImpulse
- 2.2.5 bHasOwnHealth
- 2.2.6 bHistoryWarmup
- 2.2.7 CameraHistory
- 2.2.8 CrosshairColor
- 2.2.9 CrosshairTexture
- 2.2.10 CrosshairX
- 2.2.11 CrosshairY
- 2.2.12 CustomAim
- 2.2.13 DebugInfo
- 2.2.14 Gun
- 2.2.15 GunClass
- 2.2.16 NextHistorySlot
- 2.2.17 PitchAccel
- 2.2.18 VehicleBase
- 2.2.19 YawAccel
- 2.3 Default values
- 3 Functions
- Package:
- Onslaught
- Direct subclasses:
- ONSArtillerySideGunPawn, ONSDualACGatlingGunPawn, ONSMASSideGunPawn, ONSPRVRearGunPawn, ONSPRVSideGunPawn, ONSStationaryWeaponPawn, ONSTankSecondaryTurretPawn
Please help improve this article or section by expanding it. |
Dummy vehicle for vehicle passenger guns and stationary turrets, i.e. any kind of Onslaught vehicle that can't move on its own.
Constants[edit]
FilterFrames[edit]
Value: 5
Properties[edit]
Property group 'ONSWeaponPawn'[edit]
AltFireImpulse[edit]
Type: Object.Vector
CameraBone[edit]
Type: name
DestroyEffectClass[edit]
FireImpulse[edit]
Type: Object.Vector
GunnerPos[edit]
Type: Object.Vector
GunnerRot[edit]
Type: Object.Rotator
Internal variables[edit]
bCustomAiming[edit]
Type: bool
If true, the weapon aiming will be controlled by setting CustomAim.
bHasAltFire[edit]
Type: bool
Whether the weapon has an alt-fire mode. Otherwise alt-fire just zooms.
Default value: True
bHasAltFireImpulse[edit]
Type: bool
bHasFireImpulse[edit]
Type: bool
bHasOwnHealth[edit]
Type: bool
If false, damage to this pawn is done to Driver instead.
bHistoryWarmup[edit]
Type: bool
Default value: True
CameraHistory[edit]
Type: Object.Vector
Array size: 5 (FilterFrames
)
CrosshairColor[edit]
Type: Object.Color
Modifiers: config
Default value:
Member | Value |
---|---|
A | 255 |
B | 0 |
G | 255 |
R | 0 |
CrosshairTexture[edit]
Type: Texture
Modifiers: config
Default value: Texture'ONSInterface-TX.tankBarrelAligned'
CrosshairX[edit]
Type: float
Modifiers: config
Default value: 32.0
CrosshairY[edit]
Type: float
Modifiers: config
Default value: 32.0
CustomAim[edit]
Type: Object.Rotator
Custom aim direction if bCustomAiming is True.
DebugInfo[edit]
Type: string
Gun[edit]
Type: ONSWeapon
The current instance of this gunner position's weapon.
GunClass[edit]
The type of weapon available in this gunner position.
NextHistorySlot[edit]
Type: int
PitchAccel[edit]
Type: float
VehicleBase[edit]
Type: ONSVehicle
The vehicle this gun belongs to, if any.
YawAccel[edit]
Type: float
Default values[edit]
Property | Value |
---|---|
bAcceptsProjectors | False |
bBlockActors | False |
bBlockNonZeroExtentTraces | False |
bBlockZeroExtentTraces | False |
bCollideActors | False |
bCollideWorld | False |
bCrawler | True |
bDrawDriverInTP | True |
bDrawMeshInFP | True |
bDrawVehicleShadow | False |
bFollowLookDir | True |
bIgnoreEncroachers | True |
bIgnoreForces | True |
bNetInitialRotation | True |
bNetNotify | True |
bPCRelativeFPRotation | False |
bProjTarget | False |
bSetPCRotOnPossess | False |
bSpecialCalcView | True |
bSpecialHUD | True |
bStationary | True |
bTurnInPlace | True |
bZeroPCRotOnEntry | False |
DrawType | DT_None |
EntryRadius | 50.0 |
LandMovementState | 'PlayerTurreting' |
NetPriority | 0.5 |
Functions[edit]
Static functions[edit]
StaticPrecache[edit]
Overrides: Vehicle.StaticPrecache
Events[edit]
ApplyFireImpulse[edit]
BaseChange[edit]
Overrides: Pawn.BaseChange
BeginPlay[edit]
Overrides: Actor.BeginPlay
Destroyed[edit]
Overrides: Vehicle.Destroyed
EncroachedBy[edit]
Overrides: Vehicle.EncroachedBy
KDriverLeave[edit]
Overrides: Vehicle.KDriverLeave
PostNetBeginPlay[edit]
Overrides: Pawn.PostNetBeginPlay
PostNetReceive[edit]
Overrides: Actor.PostNetReceive
TakeDamage[edit]
Overrides: Vehicle.TakeDamage
TeamChanged[edit]
Overrides: Vehicle.TeamChanged