Classes:FlameThrower

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
  1. This actor is already defined in GZDoom, there's no reason to define it again.
  2. In fact, trying to define an actor with the same name will cause an error (because it already exists).
  3. If you want to make your own version of this actor, use inheritance.
  4. Definitions for existing actors are put on the wiki for reference purpose only.
Flamethrower
Actor type Weapon Game MiniStrifeLogoIcon.png (Strife)
DoomEd Number 2005 Class Name FlameThrower
Conversation ID 190, 184, 188 Puzzle Item ID N/A


Classes: InventoryWeaponStrifeWeaponFlameThrower
A flamethrower, reverse-engineered from Crusader parts for human use. Especially effective against humans and humanoids!

DECORATE definition

ACTOR FlameThrower : StrifeWeapon
{
  +FLOORCLIP
  Weapon.SelectionOrder 2100
  Weapon.Kickback 0
  Weapon.AmmoUse1 1
  Weapon.AmmoGive1 100
  Weapon.UpSound "weapons/flameidle"
  Weapon.ReadySound "weapons/flameidle"
  Weapon.AmmoType1 "EnergyPod"
  Inventory.Icon "FLAMA0"
  Tag "$TAG_FLAMER" // "Flame Thrower"
  Inventory.PickupMessage "$TXT_FLAMER" // "You picked up the flame thrower."

  action native A_FireFlamer();

  States
  {
  Spawn:
    FLAM A -1
    Stop
  Ready:
    FLMT AB 3 A_WeaponReady
    Loop
  Deselect:
    FLMT A 1 A_Lower
    Loop
  Select:
    FLMT A 1 A_Raise
    Loop
  Fire:
    FLMF A 2 A_FireFlamer
    FLMF B 3 A_ReFire
    Goto Ready
  }
}