Classes:StrifeCrossbow2

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.
Crossbow
Actor type Weapon Game MiniStrifeLogoIcon.png (Strife)
DoomEd Number None Class Name StrifeCrossbow2


Classes: InventoryWeaponStrifeWeaponStrifeCrossbowStrifeCrossbow2
The crossbow's second mode, this fires poisoned bolts. These are about as useful as a scrunched up ball of paper against mechanical opponents, but are fatal (and stealthy!) to humans and humanoids.

DECORATE definition

ACTOR StrifeCrossbow2 : StrifeCrossbow
{
  Weapon.SelectionOrder 2700
  Weapon.AmmoUse1 1
  Weapon.AmmoGive1 0
  Weapon.AmmoType1 "PoisonBolts"
  Weapon.SisterWeapon "StrifeCrossbow"
  Tag "$TAG_STRIFECROSSBOW2" // "Crossbow"
  States
  {
  Ready:
    XBOW H 1 A_WeaponReady
    Loop
  Deselect:
    XBOW H 1 A_Lower
    Loop
  Select:
    XBOW H 1 A_Raise
    Loop
  Fire:
    XBOW H 3
    XBOW B 6 A_FireArrow("PoisonBolt")
    XBOW C 4
    XBOW D 6
    XBOW E 3
    XBOW I 5
    XBOW J 5 A_CheckReload
    Goto Ready
  Flash:
    Stop
  }
}