Classes:StrifeGrenadeLauncher2

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.
Dual grenade launcher
Actor type Weapon Game MiniStrifeLogoIcon.png (Strife)
DoomEd Number None Class Name StrifeGrenadeLauncher2


Classes: InventoryWeaponStrifeWeaponStrifeGrenadeLauncherStrifeGrenadeLauncher2
This mode of the Grenade Launcher fires Phosphorous Grenades, which burst into a pillar of erratically-moving flame for about 45 seconds.

DECORATE definition

ACTOR StrifeGrenadeLauncher2 : StrifeGrenadeLauncher
{
  Weapon.SelectionOrder 3200
  Weapon.AmmoUse1 1
  Weapon.AmmoGive1 0
  Weapon.AmmoType1 "PhosphorusGrenadeRounds"
  Weapon.SisterWeapon "StrifeGrenadeLauncher"
  Tag "$TAG_GLAUNCHER2" // "Grenade Launcher"
  States
  {
  Ready:
    GREN D 1 A_WeaponReady
    Loop
  Deselect:
    GREN D 1 A_Lower
    Loop
  Select:
    GREN D 1 A_Raise
    Loop
  Fire:
    GREN D 5 A_FireGrenade("PhosphorousGrenade", -90, "Flash")
    GREN E 10
    GREN D 5 A_FireGrenade("PhosphorousGrenade", 90, "Flash2")
    GREN F 10
    GREN A 0 A_ReFire
    Goto Ready
  Flash:
    GREF C 5 Bright A_Light1
    Goto LightDone
  Flash2:
    GREF D 5 Bright A_Light2
    Goto LightDone
  }
}