TorpedoClass

Classlabel: "torpedo"

Class Tree: Entity->GameObject->Torpedo

Description:
Torpedo Class is a GameObject that moves towards a Target, and explodes upon Collision.

Default ODF Properties:
[GameObjectClass]
canCollide = true
boxCollide = false
useVehicleCrashOnDeath = false
numChunks = 0

Recommended AI Process:
aiName = "TorpedoProcess"
aiName2 = "TorpedoProcess"

ODF Properties:
  • [TorpedoClass]

    setAltitude = 1.0f
    Altitude that this object flies at.

    alphaTrack = 20.0f
    Terrain Tracking acceleration.

    alphaDamp = 5.0f
    Dampening acceleration.

    velocForward = 25.0f
    Forward velocity from Thrust.

    accelThrust = 10.0f
    Thrusting acceleration.

    omegaTurn = 1.0f
    Turn speed.

    alphaSteer = 5.0f
    Steering Acceleration.

    lifeSpan = 60.0f
    Time in seconds until it expires.

    xplBlast = ""
    ODF name for the Explosion Class triggered when this object Detonates.

    soundThrust = ""
    Sound file for this object's Engine thrust.

    LIFT_SPRING = 40.0f
    Lift Spring.

    LIFT_DAMP = 15.0f
    Life Dampening.

    SlowFall = true
    If this is False, the torpedo is effected by Gravity similar to hovercraft.
On this page