PowerUpClass

Classlabel: "powerup"

Class Tree: Entity->GameObject->PowerUp

Description:
Powerups are objects that can be picked up. They're also mobile and can be pushed by Explosion Kick or launched from an Armory.

Default ODF Properties:
[GameObjectClass]
hitType = 3 //HIT_TYPE_VEHICLE
canCollide = true
boxCollide = false

Recommneded AI Process:
aiName = "PowerUpProcess"

ODF Properties:
  • [PowerUpClass]

    soundPickup = ""
    Sound file played when Picked UIp. Default for is "repair.wav" for Class: ServicePowerup, and "weapon.wav" for Class: WeaponPowerup and MoneyPowerup.

    soundReject = ""
    Sound file played when Rejected for Pickup.

    Physics properties when Moving:
    alphaDamp = 2.0f;
    alphaTrack = 5.0f;
    pitchThrust = 0.5f;
    rollStrafe = 0.5f;
    omegaSpin = 2.0f;
    omegaTurn = 1.5f;
    alphaSteer = 2.0f;
    velocForward = 15.0f;
    velocReverse = 10.0f;
    velocStrafe = 10.0f;
    accelThrust = 10.0f;

    Physics properties when Stationary:
    StationaryAlphaDampX = 10.0f;
    StationaryAlphaDampY = 10.0f;
    StationaryAlphaDampZ = 10.0f;
    StationaryAlphaTrackX = 25.0f;
    StationaryAlphaTrackY = 20.0f;
    StationaryAlphaTrackZ = 25.0f;
    StationaryVelocDampX = 5.0f;
    StationaryVelocDampY = 5.0f;
    StationaryVelocDampZ = 5.0f;

    FLOAT_HEIGHT = 1.0f
    Height above the ground.

    LIFT_SPRING = 25.0f
    Lift Spring.

    LIFT_DAMP = 7.0f
    Lift Dampening.

    SlowFall = true
    If this is false, it uses FallSpeed for vertical fall speed.

    FallSpeed = 10.0f
    This is a limit on how fast it can Fall from Gravity. Only used if slowFall is false. If this is <= 0 it uses Forward/Reverse velocity.

    ExplodeEndOfLifespan = true
    If false, won't explode when lifeSpan is over. Only applies if GameObjectClass::LifeSpan is >= 0.

    HitMask = 2147483647
    Bit Mask of which types of objects can accept this Powerup. If any of these bits are set to 0, an object of that type won't accept the Powerup. Valid values are:
    • 1 : Craft
    • 2 : Person
    • 4 : Building
    • 8 : PoweredBuilding
    • 16 : Deployable
    • 32 : Morphtank
    • 64 : TurretCraft
    • 128 : ServiceTruck
    • 256 : TrackedVehicle
    • 512 : Walker

    ExplodeOnBadHit = false
    If true, will Explode if an object tries to pick it up and is Rejected.

    DestroyOnBadHit = false
    If true, will be Destroyed (not Explode) if an object tries to pick it up and is Rejected.

    PowerupClassMask = 0
    Bit Mask for use in comparison with GameObjectClassPowerUpMatch and GameObjectClassPowerUpProvides for filtering which objects can pick up this object.

    PowerupClassMatch = 0
    Bit Mask for use in comparison with GameObjectClassPowerUpMask and GameObjectClassPowerUpProvides for filtering which objects can pick up this object.

    PowerupClassProvides = 0
    Bit Mask for what this object Provides for use in comparison with GameObjectClassPowerUpMask and GameObjectClassPowerUpMatch for filtering which objects can pick up this object.
On this page