Classes:StrifeGrenadeLauncher

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 154 Class Name StrifeGrenadeLauncher
Conversation ID 195, 189, 193 Puzzle Item ID N/A


Classes: InventoryWeaponStrifeWeaponStrifeGrenadeLauncher
 →StrifeGrenadeLauncher2
A double barreled grenade launcher, with two modes of fire. This mode fires Explosive Grenades, which do exactly that after three or four bounces.

DECORATE definition

ACTOR StrifeGrenadeLauncher : StrifeWeapon
{
  +FLOORCLIP
  Weapon.SelectionOrder 2400
  Weapon.AmmoUse1 1
  Weapon.AmmoGive1 12
  Weapon.AmmoType1 "HEGrenadeRounds"
  Weapon.SisterWeapon "StrifeGrenadeLauncher2"
  Inventory.Icon "GRNDA0"
  Tag "$TAG_GLAUNCHER1" // "Grenade Launcher"
  Inventory.PickupMessage "$TXT_GLAUNCHER" // "You picked up the Grenade launcher."

  action native A_FireGrenade(class<Actor> grenadetype, float angleofs, state flash);

  States
  {
  Spawn:
    GRND A -1
    Stop
  Ready:
    GREN A 1 A_WeaponReady
    Loop
  Deselect:
    GREN A 1 A_Lower
    Loop
  Select:
    GREN A 1 A_Raise
    Loop
  Fire:
    GREN A 5 A_FireGrenade("HEGrenade", -90, "Flash")
    GREN B 10
    GREN A 5 A_FireGrenade("HEGrenade", 90, "Flash2")
    GREN C 10
    GREN A 0 A_ReFire
    Goto Ready
  Flash:
    GREF A 5 Bright A_Light1
    Goto LightDone
  Flash2:
    GREF B 5 Bright A_Light2
    Goto LightDone
  }
}