From ZDoom Wiki
Jump to navigation Jump to search
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.
Weapon giver
Actor type Internal Game MiniZDoomLogoIcon.png
DoomEd Number None Class Name WeaponGiver

Classes: InventoryWeaponWeaponGiverAssaultGunStanding
A class that is used to define alternate pickups for weapons. A weapon giver is affected by game modes like a weapon (for respawning, staying, and so on) but isn't, itself, a weapon. Instead, it gives the last weapon defined in its DropItem list. For this reason, a weapon giver should have only one entry in its DropItem list.

Like a weapon, a WeaponGiver can be specified a certain amount of ammo. By default (for the -1 value), it will give the same amount as the weapon it gives; but a value of 0 or more is given it overrides the weapon's normal ammo quantity. This can be used to create fully-loaded or fully-depleted variant of weapons.

DECORATE definition

ACTOR WeaponGiver : Weapon native
  Weapon.AmmoGive1 -1
  Weapon.AmmoGive2 -1