Classes:CrossbowAmmo

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.
Ethereal arrows
Actor type Ammo Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number 18 Class Name CrossbowAmmo
Spawn ID 33 Identifier T_WIMPYCROSSBOWAMMO


Classes: InventoryAmmoCrossbowAmmo
 →CrossbowHefty
Small bundle of five arrows for the ethereal crossbow. Yes, crossbows are supposed to throw bolts rather than arrows, but this crossbow is magical. They are sometimes dropped by undead warriors and by weredragons, the latter drop bundles of ten arrows instead.

DECORATE definition

ACTOR CrossbowAmmo : Ammo
{
  Inventory.PickupMessage "$TXT_AMMOCROSSBOW1"
  Inventory.Amount 5
  Inventory.MaxAmount 50
  Ammo.BackpackAmount 5
  Ammo.BackpackMaxAmount 100
  Inventory.Icon "INAMBOW"
  States
  {
  Spawn:
    AMC1 A -1 
    Stop
  }
}