Classes:WeaponGiver
Classes: Inventory→Weapon→WeaponGiver→AssaultGunStanding
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.
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
|
Weapon giver | |||
---|---|---|---|
Actor type | Internal | Game | ![]() |
DoomEd Number | None | Class Name | WeaponGiver |
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 }
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.