AircraftClass

classlabel: "aircraft"

Class Tree: Entity->GameObject->Craft->Aircraft

Supported Animations:
  • Forward
  • Neutral
  • Reverse
  • Deploy

Description:
Aircraft Class is a flying unit that is not effected by Gravity, and depending on physics settings, can spin/tilt any direction. It flies similar to a flight simulator. It starts out Undeployed (landed), and can use the Deploy function to takeoff/land.

Aircraft Class has 3 movement states: Low, Medium, and High. Low is used when pressing the Reverse key. Medium is neutral, neither pressing Forward or Reverse. High is used when pressing the Forward.

Recommmended AI Process:
aiName = "AirCraftFriend"
aiName2 = "AirCraftEnemy"

ODF Properties:
  • [AirCraftClass]

    velocSet(L) = 10.0f
    Velocity while pressing Reverse

    velocSet(M) = 30.0f
    Velocity while idling.

    velocSet(H) = 100.0f
    Velocity while pressing Forward.

    accelThrust = 10.0f
    Acceleration while moving Forward.

    accelBrake = 20.0f
    Acceleration while Braking.

    accelDrag = 30.0f
    Acceleration Drag.

    omegaSteer(L) = 1.0f
    Steering rate at Low speed.

    omegaSteer(M) = 1.5f
    Steering rate at Medium speed.

    omegaSteer(H) = 2.0f
    Steering turn rate at High speed.

    omegaStrafe(L) = 2.0f
    Srafing turn rate at Low speed.

    omegaStrafe(M) = 3.0f
    Srafing turn rate at Medium speed.

    omegaStrafe(H) = 4.0f
    Srafing turn rate at High speed.

    alphaSteer = 3.0f
    Steering acceleration.

    alphaStrafe = 5.0f
    Strafing acceleration.

    minAltitude = 10.0f
    Minimum Altitude this unit can fly at.

    maxAltitude = 100.0f
    Maximum altitude above ground this unit can fly at.

    alphaLevel = 10.0f
    Leveling acceleration.

    alphaDamp = 5.0f
    Damping acceleration.

    pitchPitch = 1.0f
    Min/Max Pitch angle.

    rollStrafe = 0.0f
    Roll angle while strafing.

    rollSteer = 0.2f
    Roll angle while steering.

    timeDeploy = 5.0f
    Time, in seconds, to deploy.

    timeUndeploy = 5.0f
    Time, in seconds, to undeploy.

    aiAltitude = minAltitude + ((maxAltitude - minAltitude) * 0.25f);

    LiftSpring = Gravity Setting.
    Takeoff/Landing lift spring.

    AILiftSpring = 2.0f
    AI Takeoff/Landing lift spring.

    flameName1 .. flameName16 = "flame_1" .. "flame_16"
    flameTextureName1 .. flameTextureName16 = "trail.tga"
    flameSpriteName1 .. flameSpriteName16 = "splash.0"
    Engine flame override settings.

    soundThrust = "engthrst.wav"
    Engine Thrust sound.

    soundBrake = "wmflame.wav"
    Engine steering sound.

    soundDeploy = "wmflame.wav"
    Deploy sound.

    soundUndeploy = "wmflame.wav"
    Undeploy sound.

    OverWaterFlying = true
    If Min/MaxAltitude uses Water height, or Terrain height.

    OverWaterLanded = true
    If landing uses Water height or Terrain height.

    AlwaysDeployed = false
    If true, always deployed.

    AlwaysUndeployed = false
    If true, always undeployed.

    AltitudeLookahead = 2.0f
    # of seconds it will look ahead for adjusting altitude.

    MaxTakeoffSpeed = 5.0f
    Highest speed you can be going to Takeoff.
On this page