Classes:ThrowingBomb

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
  1. You do not need to copy that actor, since it is already defined.
  2. In fact, it's not just useless, it's actually harmful as it can cause problems.
  3. If you want to modify it, or use a modified version, using inheritance is the way to go.
  4. The actor definitions here are put on the wiki for reference purpose only. Learn from them, don't copy them.
  5. There is only one exception: if what you want is changing Ammo capacity, you need to create a new type from Ammo.
Fléchette used by a fighter
Actor type Explosive Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number None Class Name ThrowingBomb


Classes: ThrowingBomb

A projectile spawned when a fighter fléchette is used, it bounces on the ground and explodes after a short while or when hitting an actor or a wall.

DECORATE definition

ACTOR ThrowingBomb
{
  Health 48
  Speed 12
  Radius 8
  Height 10
  DamageType "Fire"
  +NOBLOCKMAP
  +DROPOFF
  +MISSILE
  BounceType "HexenCompat"
  SeeSound "FlechetteBounce"
  DeathSound "FlechetteExplode"

  action native A_CheckThrowBomb();
  action native A_CheckThrowBomb2();

  States
  {
  Spawn:
    THRW A 4 A_CheckThrowBomb
    THRW BCDE 3 A_CheckThrowBomb
    THRW F 3 A_CheckThrowBomb2
    Loop
    THRW G 6 A_CheckThrowBomb
    THRW F 4 A_CheckThrowBomb
    THRW H 6 A_CheckThrowBomb
    THRW F 4 A_CheckThrowBomb
    THRW G 6 A_CheckThrowBomb
    THRW F 3 A_CheckThrowBomb
    Wait
  Death:
    CFCF Q 4 Bright A_NoGravity
    CFCF R 3 Bright A_Scream
    CFCF S 4 Bright A_Explode
    CFCF T 3 Bright
    CFCF U 4 Bright
    CFCF W 3 Bright
    CFCF X 4 Bright
    CFCF Z 3 Bright
    Stop
  }
}