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 will 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.
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"
  BounceType "HexenCompat"
  SeeSound "FlechetteBounce"
  DeathSound "FlechetteExplode"

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

    THRW A 4 A_CheckThrowBomb
    THRW BCDE 3 A_CheckThrowBomb
    THRW F 3 A_CheckThrowBomb2
    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
    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