Classes:FlameThrower

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.
Flamethrower
Actor type Weapon Game MiniStrifeLogoIcon.png
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
  }
}