Classes: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.

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

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
  }
}
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.