SprayBombClass

Classlabel: "spraybomb"

Class Tree: Entity->Ordnance->Bullet->Grenade->SprayBomb

Description:
Spray Bomb is a Grenade that turns into a GameObject when it lands and comes to a stop.

ODF Properties:
  • [SprayBombClass]

    payloadName = ""
    ODF name of the GameObject Class this object turns into when it stops moving.

    bounceRatio = 0.1f
    Percent of Velocity retained after it bounces off the ground.

    soundBounce = "bounce.wav"
    Sound file played when it bounces off the Ground / Buildings.

    HitExplodeTypes = 0
    If this is > 0, it is a Bit Mask for which types of objects it Detonates on. Valid values are:
    • 1 = Building
    • 2 = Craft
    • 4 = Person
    • 8 = Other
    • 16 = Terrain

    BuildSprayOnHit = true
    If this is false, it won't build payloadName when it hits a valid HitType.
    Note: Only applies if HitExplodeTypes is not 0.

    ExplodeOnHit = false
    If true, will generate an Explosion Class when it hits a valid HitType.
    Note: Only applies if HitExplodeTypes is not 0.
On this page