# SFVehicle.SFVehicle

Spatial Fear
Name: SFVehicle
Description: Core Vehicle code
A SFVehicle brush can be controlled by means of a SFSFVehicleControl Pickup item.
The link: the Tag of the SFVehicle equals the ControlledTag of the pickup.
A SFVehicle brush can have other actors attached (Child's Event Tag equals SFVehicle's ChildTag),
including other SFVehicles, dependent or independent.
Author: Gert Jen Peltenburg

Extends:
Modifiers:
Source code

    SFVehicle.SFVehicle

%%

## Variables

%function_comment% |  |  | sound | ActivationSound
%function_comment% |  |  | AimingMethod | Aiming
%function_comment% |  |  | float | AirTraction
%function_comment% |  |  | rotator | angularvelocity
%function_comment% |  |  | int | Armor
%function_comment% |  |  | bool | bAimPlayerTarget
%function_comment% |  |  | bool | bBot_ShowTurretLocation
%function_comment% |  |  | bool | bBot_ShowVehicleLocation
%function_comment% |  |  | bool | bChildInitialized
%function_comment% |  |  | bool | bClamped
%function_comment% |  |  | bool | bControllable
%function_comment% |  |  | bool | bCriticalComponent
%function_comment% |  |  | bool | bDestroyed
%function_comment% |  |  | bool | bDoesBallisticCalculation
%function_comment% |  |  | bool | bFullTimePhysics
%function_comment% |  |  | bool | bHideOnDestruction
%function_comment% |  |  | bool | bHUD_ShowsPitch
%function_comment% |  |  | bool | bHUD_ShowsRoll
%function_comment% |  |  | bool | bHUD_ShowsSpeed
%function_comment% |  |  | bool | bHUD_ShowsYaw
%function_comment% |  |  | bool | bIndependent
%function_comment% |  |  | bool | bPhysics
%function_comment% |  |  | bool | bRepairable
%function_comment% |  |  | bool | bRepairing
%function_comment% |  |  | bool | bRestrictPitch
%function_comment% |  |  | bool | bRestrictRoll
%function_comment% |  |  | bool | bRestrictYaw
%function_comment% |  |  | bool | bStabilized
%function_comment% |  |  | bool | bUseFeedBack
%function_comment% |  |  | name | ChildTag[20]
%function_comment% |  |  | float | ClientPitch
%function_comment% |  |  | float | ClientRoll
%function_comment% |  |  | float | ClientX
%function_comment% |  |  | float | ClientY
%function_comment% |  |  | float | ClientYaw
%function_comment% |  |  | float | ClientZ
%function_comment% |  |  | sound | CollideSound
%function_comment% |  |  | float | ControlFactorSpeed
%function_comment% |  |  | float | ControlFactorTurretTurn
%function_comment% |  |  | float | ControlFactorTurretUp
%function_comment% |  |  | float | ControlFactorVehicleTurn
%function_comment% |  |  | float | ControlFactorVehicleUp
%function_comment% |  |  | float | controlinputPitch
%function_comment% |  |  | float | controlinputRoll
%function_comment% |  |  | float | controlinputYaw
%function_comment% |  |  | pawn | controllingplayer
%function_comment% |  |  | sound | CrashingSound
%function_comment% |  |  | bool | CtlbAltFire
%function_comment% |  |  | bool | CtlbDuck
%function_comment% |  |  | bool | CtlbFire
%function_comment% |  |  | bool | CtlbJump
%function_comment% |  |  | SFVehicleControl | currentcontroller
%function_comment% |  |  | vector | CurrentLocation
%function_comment% |  |  | float | currentlocationX
%function_comment% |  |  | float | CurrentLocationY
%function_comment% |  |  | float | CurrentLocationZ
%function_comment% |  |  | bool | CurrentlyOnGround
%function_comment% |  |  | rotator | CurrentRotation
%function_comment% |  |  | float | CurrentRotationPitch
%function_comment% |  |  | float | CurrentRotationRoll
%function_comment% |  |  | float | CurrentRotationYaw
%function_comment% |  |  | float | CurrentSpeed
%function_comment% |  |  | float | currenttraction
%function_comment% |  |  | sound | DeactivationSound
%function_comment% |  |  | float | debuglastchecked
%function_comment% |  |  | float | DesiredSpeed
%function_comment% |  |  | sound | DestroyedSound
%function_comment% |  |  | class<effects> | DestructionEffect
%function_comment% |  |  | float | Elasticity
%function_comment% |  |  | int | FeedbackCount
%function_comment% |  |  | name | FeedbackTag
%function_comment% |  |  | SFVehicleChildInfo | Feedback[40]
%function_comment% |  |  | int | FullHitPoints
%function_comment% |  |  | vector | gravityinducedvelocity
%function_comment% |  |  | int | GroundFeedbackIndex
%function_comment% |  |  | int | Health
%function_comment% |  |  | int | HitPoints
%function_comment% |  |  | int | InitialHitPoints
%function_comment% |  |  | vector | LastGoodLocation
%function_comment% |  |  | rotator | LastGoodRotation
%function_comment% |  |  | vector | linearvelocity
%function_comment% |  |  | SFVehicle | MainSFVehicle
%function_comment% |  |  | float | MaxAcceleration
%function_comment% |  |  | float | MaxDeceleration
%function_comment% |  |  | float | maxfeedbackX
%function_comment% |  |  | float | maxfeedbackY
%function_comment% |  |  | float | maxfeedbackZ
%function_comment% |  |  | float | MaxPitch
%function_comment% |  |  | float | MaxReverseAcceleration
%function_comment% |  |  | float | MaxRoll
%function_comment% |  |  | float | MaxSpeed
%function_comment% |  |  | float | MaxYaw
%function_comment% |  |  | float | minfeedbackX
%function_comment% |  |  | float | minfeedbackY
%function_comment% |  |  | float | minfeedbackZ
%function_comment% |  |  | float | MinPitch
%function_comment% |  |  | float | MinRoll
%function_comment% |  |  | float | MinSpeed
%function_comment% |  |  | float | MinYaw
%function_comment% |  |  | rotator | offsetrotation
%function_comment% |  |  | sound | OperatingSound
%function_comment% |  |  | vector | Origin
%function_comment% |  |  | float | originX
%function_comment% |  |  | float | originY
%function_comment% |  |  | float | OriginZ
%function_comment% |  |  | SFVehicle | parentdrv
%function_comment% |  |  | float | passedaimingdelay
%function_comment% |  |  | float | passedgroundtime
%function_comment% |  |  | mover | PassengerOf
%function_comment% |  |  | rotator | PhysicalRotationRate
%function_comment% |  |  | bool | PhysicsFlatBottom
%function_comment% |  |  | bool | PhysicsHover
%function_comment% |  |  | SFVehiclePhysicsMethod | PhysicsType
%function_comment% |  |  | bool | PhysicsUseful
%function_comment% |  |  | float | PitchDownRate
%function_comment% |  |  | float | PitchUpRate
%function_comment% |  |  | rotator | PlaneAngles
%function_comment% |  |  | float | planeanglesPitch
%function_comment% |  |  | float | planeanglesRoll
%function_comment% |  |  | float | planeanglesYaw
%function_comment% |  |  | bool | PreviousbAltFire
%function_comment% |  |  | bool | PreviousbFire
%function_comment% |  |  | vector | PreviousLocation
%function_comment% |  |  | vector | PreviousOrigin
%function_comment% |  |  | rotator | PreviousPlaneAngles
%function_comment% |  |  | rotator | PreviousRotation
%function_comment% |  |  | zoneinfo | PreviousZone
%function_comment% |  |  | float | ProjectileSpeed
%function_comment% |  |  | float | RepairTime
%function_comment% |  |  | float | RollLeftRate
%function_comment% |  |  | float | RollRightRate
%function_comment% |  |  | float | SavedDeltaTime
%function_comment% |  |  | int | SFVehicleChildCount
%function_comment% |  |  | SFVehicleChildInfo | SFVehicleChild[50]
%function_comment% |  |  | rotator | StabilizedRotation
%function_comment% |  |  | sound | StationarySound
%function_comment% |  |  | float | WaterTraction
%function_comment% |  |  | float | YawLeftRate
%function_comment% |  |  | float | YawRightRate

## Enums

%function_comment% | AimingMethod |  | Manual, Stabilized, InstantHit, BallisticHigh, BallisticLow
%function_comment% | SFVehiclePhysicsMethod |  | StaticMover, FloatAndBlock, OrientToFloor, TerrainFollowing, ForceCalculation

## Structs

%function_comment% | SFVehicleChildInfo | { var actor Act; var vector OriginOffset; // used to calculate Origin var rotator planeangles; // angles (Pitch,Yaw and Roll) between plane of parentdrv and plane of this child var vector Origin; var rotator originangles; var float origindistance; };

## Functions

|  |  | Activation ()
|  | float | atan2 (float Y, float X)
| auto |  | BallisticCalculation (float latitude, float longitude, float altitude, out float yaw, out float hightraj, out float flighttime)
|  |  | BeginPlay ()
| Deactivated |  | BeginState ()
| Repairing |  | BeginState ()
| DestroyedState |  | BeginState ()
| Crashing |  | BeginState ()
| auto |  | BeginState ()
| Activated |  | BeginState ()
|  | vector | CalculateChildLocation (SFVehiclechildinfo child, vector ownlocation, rotator ownrotation)
|  | rotator | CalculateChildRotation (SFVehiclechildinfo child, vector ownlocation, rotator ownrotation)
|  | rotator | CalculateChildViewRotation (SFVehiclechildinfo child, vector ownlocation, rotator ownrotation)
|  | vector | CalculateOwnLocation ()
|  | rotator | CalculateOwnRotation ()
|  | bool | CheckForCollision (float deltatime)
| auto | bool | CheckForFeedBack (float deltatime, out rotator TotalAngularAcceleration, out vector TotalLinearAcceleration, out vector NewLocation, out float bouncetime)
|  |  | ControlVehicle (bool bJustFired, bool bFire, bool bJustAltFired, bool bAltFire, float aVehicleSpeedControl, float aTurretTurn, float aVehicleTurn, float aVehicleUp, float aTurretUp, bool bJustJumped, bool bJustDucked)
|  |  | Deactivation ()
|  | actor | DebugSFVehicleTrace (out vector HitLocation, out vector HitNormal, vector End, vector Start, vector Extent)
| auto |  | DetermineBaseChange ()
| auto |  | DirectFireBallisticSolution (float l, float h, out float low_angle)
|  |  | DoClose ()
|  |  | DoOpen ()
| auto |  | DoPhysics (float DeltaTime)
|  | float | drv_atan2 (float Y, float X)
|  | bool | EncroachingOn (actor Other)
| Activated |  | EndState ()
| auto |  | FABPhysics (float DeltaTime)
| auto | bool | FindEdge (vector StartPoint, vector EndPoint, out vector Edge)
| auto |  | ForceCalculationPhysics (float DeltaTime)
|  | rotator | GetPlaneRotation (vector Xaxis, vector Yaxis)
| auto |  | HighBallisticSolution (float l, float h, out float high_angle, out float flighttime)
| auto |  | InheritStuff ()
| auto |  | InterpretControls (bool bJustFired, bool bFire, bool bJustAltFired, bool bAltFire, float aVehicleSpeedControl, float aTurretTurn, float aVehicleTurn, float aVehicleUp, float aTurretUp, bool bJustJumped, bool bJustDucked)
|  | bool | IsDriver (actor Other)
|  |  | ModifyAmbientSound ()
|  |  | MoveChildOrigin (SFVehiclechildinfo child, vector baseloc, rotator baserot)
|  | float | normalizeangle (float inangle)
|  | bool | OKToMove (vector Origin, rotator planeangles)
| auto |  | OTFPhysics (float DeltaTime)
|  | bool | parentdrvOKToMove (vector Origin, rotator planeangles)
|  |  | PostBeginPlay ()
| auto | float | pow (float base, float exponent)
| auto |  | predict_distance_travelled (float h, float g, float v, float a, out float l1, out float l2)
|  | vector | qtz (vector invect)
|  | vector | RealWorldLocation (vector oldpoint, rotator rotateby)
|  | rotator | RealWorldRotation (rotator CurrentRotation, rotator planeangles)
| auto |  | RotationPhysics (float DeltaTime)
|  | actor | SFVehicleTrace (out vector HitLocation, out vector HitNormal, vector End, vector Start, vector Extent)
|  | int | sign (float value)
|  |  | SplitAcceleration (vector offset, vector acceleration, out vector LinearAcceleration, out rotator angularacceleration)
|  |  | StoreSFVehicleChildInfo (out SFVehicleChildInfo dest, Actor Act)
|  |  | TakeDamage (int Damage, Pawn EventInstigator, vector HitLocation, vector Momentum, name DamageType)
| auto |  | TFPhysics (float DeltaTime)
|  |  | Tick (float DeltaTime)
|  |  | Touch (Actor Other)
|  |  | UpdateAll (float DeltaTime)
|  |  | UpdateOwnLocation ()
| auto |  | UpdateSpeed (float DeltaTime, float traction)
|  | vector | VirtualLocation (vector oldpoint, rotator rotateby)
|  | rotator | VirtualRotation (rotator CurrentRotation, rotator planeangles)

## Default properties

    {
         DestructionEffect=Class'UnrealShare.BallExplosion'
         PhysicsType=FloatAndBlock
         PhysicalRotationRate=(Pitch=8192,Yaw=8192,Roll=8192)
         ControlFactorTurretTurn=1.000000
         ControlFactorSpeed=1.000000
         ControlFactorTurretUp=1.000000
         ControlFactorVehicleUp=1.000000
         ControlFactorVehicleTurn=1.000000
         Elasticity=0.250000
         bPhysics=True
         bRepairable=True
         RepairTime=15.000000
         InitialState=None
         Tag=SFVehicle
         bDirectional=True
         CollisionRadius=0.000000
         CollisionHeight=0.000000
         bProjTarget=True
    }

class file time: 12/7/2003 3:58:24 PM - creation time: 12/7/2003 4:03:42 PM
Created with UnCodeX