Cogito, ergo sum

UE2:ONSAttackCraft (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> Actor >> Pawn >> Vehicle >> SVehicle >> ONSVehicle >> ONSChopperCraft >> ONSAttackCraft
Package: 
Onslaught
Direct subclass:
ONSDualAttackCraft
Known custom subclasses:
Crusha/DynamicWeather, Crusha/DynamicWeather/DWMeteor

The Raptor aircraft.

Properties[edit]

Property group 'ONSAttackCraft'[edit]

MaxPitchSpeed[edit]

Type: float

Velocity at which the maximum engine pitch is reached.

Default value: 2000.0

StreamerEffectOffset[edit]

Type: array<Object.Vector>

Offsets for the streamer effects displayed when flying faster.

Default value, index 0:

Member Value
X -219.0
Y -35.0
Z 57.0

Default value, index 1:

Member Value
X -219.0
Y 35.0
Z 57.0

Default value, index 2:

Member Value
X -52.0
Y -24.0
Z 142.0

Default value, index 3:

Member Value
X -52.0
Y 24.0
Z 142.0

StreamerOpacityChangeRate[edit]

Type: float

How quickly to change the streamer effects opacity.

Default value: 1.0

StreamerOpacityMax[edit]

Type: float

The maximum opacity to apply to the streamer effects.

Default value: 0.7

StreamerOpacityRamp[edit]

Type: Object.Range

The forward velocity range from zero to maximum streamer effect opacity.

Default value:

Member Value
Max 1600.0
Min 1200.0

TrailEffectPositions[edit]

Type: array<Object.Vector>

Offsets for the thruster trail effect emitters.

Default value, index 0:

Member Value
X -148.0
Y -26.0
Z 51.0

Default value, index 1:

Member Value
X -148.0
Y 26.0
Z 51.0

Internal variables[edit]

StreamerActive[edit]

Type: bool

Whether the streamer effects are currently being drawn.

StreamerCurrentOpacity[edit]

Type: float

The current streamer effects opacity.

StreamerEffect[edit]

Type: array<ONSAttackCraftStreamer>

The streamer effects emitters.

StreamerEffectClass[edit]

Type: class<ONSAttackCraftStreamer>

The streamer effects emitter class.

Default value: Class'Onslaught.ONSAttackCraftStreamer'

TrailEffectClass[edit]

Type: class<ONSAttackCraftExhaust>

The thruster trail emitter class

Default value: Class'Onslaught.ONSAttackCraftExhaust'

TrailEffects[edit]

Type: array<ONSAttackCraftExhaust>

The thruster trail emitters.

Default values[edit]

Property Value
bCanCarryFlag False
bDriverHoldsFlag False
BlueSkin Shader'VMVehicles-TX.AttackCraftGroup.AttackCraftChassisFinalBLUE'
bShowDamageOverlay True
bTurnInPlace True
CollisionHeight 70.0
CollisionRadius 150.0
CrushedDamageType Class'Onslaught.DamTypeAttackCraftPancake'
DamagedEffectOffset
Member Value
X -120.0
Y 10.0
Z 65.0
DestroyedVehicleMesh StaticMesh'ONSDeadVehicles-SM.AttackCraftDead'
DestructionAngularMomentum
Member Value
Max 300.0
Min 100.0
DestructionEffectClass Class'Onslaught.ONSVehicleExplosionEffect'
DestructionLinearMomentum
Member Value
Max 150000.0
Min 50000.0
DisintegrationEffectClass Class'Onslaught.ONSVehDeathAttackCraft'
DriverDamageMult 0.0
DriverWeapons[0]
Member Value
WeaponBone 'PlasmaGunAttachment'
WeaponClass Class'Onslaught.ONSAttackCraftGun'
EntryPosition
Member Value
X -40.0
Y 0.0
Z 0.0
EntryRadius 210.0
ExitPositions[0]
Member Value
X 0.0
Y -165.0
Z 100.0
ExitPositions[1]
Member Value
X 0.0
Y 165.0
Z 100.0
FlagBone 'PlasmaGunAttachment'
FlagOffset
Member Value
Z 80.0
FlagRotation
Member Value
Yaw 32768
GroundSpeed 2000.0
HeadlightCoronaMaterial Material'EpicParticles.flashflare1'
HeadlightCoronaMaxSize 60.0
HeadlightCoronaOffset[0]
Member Value
X 76.0
Y 14.0
Z -24.0
HeadlightCoronaOffset[1]
Member Value
X 76.0
Y -14.0
Z -24.0
Health 300
HealthMax 300.0
HornSounds[0] Sound'ONSVehicleSounds-S.Horn03'
HornSounds[1] Sound'ONSVehicleSounds-S.Horn07'
IdleSound Sound'ONSVehicleSounds-S.AttackCraft.AttackCraftIdle'
ImpactDamageMult 0.0010
KParams KarmaParamsRBFull'KParams0'
LatDamping 0.05
LongDamping 0.05
MaxDesireability 0.6
MaxRandForce 3.0
MaxRiseForce 50.0
MaxStrafeForce 80.0
MaxThrustForce 100.0
MaxYawRate 1.5
Mesh Mesh'ONSVehicles-A.AttackCraft'
PitchDamping 20.0
PitchTorqueFactor 200.0
PitchTorqueMax 35.0
RandForceInterval 0.75
RanOverDamageType Class'Onslaught.DamTypeAttackCraftRoadkill'
RedSkin Shader'VMVehicles-TX.AttackCraftGroup.AttackCraftChassisFinalRED'
RollDamping 30.0
RollTorqueMax 50.0
RollTorqueStrafeFactor 50.0
RollTorqueTurnFactor 450.0
ShutDownForce "AttackCraftShutDown"
ShutDownSound Sound'ONSVehicleSounds-S.AttackCraft.AttackCraftShutDown'
SoundVolume 160
StartUpForce "AttackCraftStartUp"
StartUpSound Sound'ONSVehicleSounds-S.AttackCraft.AttackCraftStartUp'
StopThreshold 100.0
TPCamDistance 500.0
TPCamLookat
Member Value
X 0.0
Y 0.0
Z 0.0
TPCamWorldOffset
Member Value
X 0.0
Y 0.0
Z 200.0
TurnDamping 50.0
TurnTorqueFactor 600.0
TurnTorqueMax 200.0
UpDamping 0.05
UprightDamping 300.0
UprightStiffness 500.0
VehicleMass 4.0
VehicleNameString "Raptor"
VehiclePositionString "in a Raptor"

Subobjects[edit]

KParams0[edit]

Class: Engine.KarmaParamsRBFull

Property Value
bClientOnly False
bDestroyOnWorldPenetrate True
bDoSafetime True
bHighDetailOnly False
bKAllowRotate True
bKDoubleTickRate True
bKNonSphericalInertia True
bKStayUpright True
KActorGravScale 0.0
KAngularDamping 0.0
KCOMOffset
Member Value
X -0.25
Y 0.0
Z 0.0
KFriction 0.5
KImpactThreshold 300.0
KInertiaTensor[0] 1.0
KInertiaTensor[1] 0.0
KInertiaTensor[2] 0.0
KInertiaTensor[3] 3.0
KInertiaTensor[4] 0.0
KInertiaTensor[5] 3.5
KLinearDamping 0.0
KStartEnabled True

Functions[edit]

Static functions[edit]

StaticPrecache[edit]

static function StaticPrecache (LevelInfo L)

Overrides: ONSVehicle.StaticPrecache

Precaches the Raptor debris and projectile meshed as well as the Raptor mesh, debris, particle and projectile textures.

Events[edit]

Destroyed[edit]

simulated event Destroyed ()

Overrides: ONSVehicle.Destroyed

Cleans up thruster and streamer effects.

DrivingStatusChanged[edit]

simulated event DrivingStatusChanged ()

Overrides: Vehicle.DrivingStatusChanged

Spawns or cleans up the thruster and streamer effects.

Tick[edit]

simulated event Tick (float DeltaTime)

Overrides: SVehicle.Tick

Updates the engine pitch and thruster/streamer effects.

Other instance functions[edit]

ClientKDriverEnter[edit]

simulated function ClientKDriverEnter (PlayerController PC)

Overrides: ONSVehicle.ClientKDriverEnter

Sets bHeadingInitialized to False, which tells the native AONSChopperCraft::UpdateVehicle() function to (re-)initialize the heading. This prevents the Raptor from spinning around wildly when a new player enters due to the last heading used before the previous pilot left.

Died[edit]

function Died (Controller Killer, class<DamageTypedamageType, Object.Vector HitLocation)

Overrides: ONSVehicle.Died

Cleans up thruster and streamer effects.

Dodge[edit]

function bool Dodge (Actor.EDoubleClickDir DoubleClickMove)

Overrides: Pawn.Dodge


FastVehicle[edit]

function bool FastVehicle ()

Overrides: ONSVehicle.FastVehicle

Returns True for bot AI. (Used by ONSSquadAI to ensure the freelance squad has a fast vehicle.)

ImpactDamageModifier[edit]

function float ImpactDamageModifier ()

Overrides: ONSVehicle.ImpactDamageModifier

Returns a smaller multiplier for hitting an object from below.

KDriverEnter[edit]

function KDriverEnter (Pawn P)

Overrides: ONSVehicle.KDriverEnter

Sets bHeadingInitialized to False, like in ClientKDriverEnter().

PlaceExitingDriver[edit]

function bool PlaceExitingDriver ()

Overrides: Vehicle.PlaceExitingDriver

Attempts to find an exit where the leaving driver won't be run over by the Raptor if it's still moving.

RecommendLongRangedAttack[edit]

function bool RecommendLongRangedAttack ()

Overrides: Pawn.RecommendLongRangedAttack

Returns True for bot AI.

SpecialCalcBehindView[edit]

simulated function SpecialCalcBehindView (PlayerController PC, out Actor ViewActor, out Object.Vector CameraLocation, out Object.Rotator CameraRotation)

Overrides: Vehicle.SpecialCalcBehindView

Same as Vehicle.SpecialCalcBehindView(), except that this implementation uses Location instead of an offset based on Vehicle.TPCamLookat.

UpdatePrecacheMaterials[edit]

simulated function UpdatePrecacheMaterials ()

Overrides: ONSVehicle.UpdatePrecacheMaterials

Precaches textures for the Raptor mesh, debris, particle and projectiles.

UpdatePrecacheStaticMeshes[edit]

simulated function UpdatePrecacheStaticMeshes ()

Overrides: ONSVehicle.UpdatePrecacheStaticMeshes

Precaches the StaticMeshes for Raptor debris and projectiles.