Classes:WeaponGiver
		
		
		
		
		
		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:
  | 
| Weapon giver | |||
|---|---|---|---|
| Actor type | Internal | Game | |
| DoomEd Number | None | Class Name | 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.
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 }
Categories: 
- Chex Quest actors
 - Chex Quest internal actors
 - Chex Quest 3 actors
 - Chex Quest 3 internal actors
 - Doom actors
 - Doom internal actors
 - Doom II actors
 - Doom II internal actors
 - Heretic actors
 - Heretic internal actors
 - Hexen actors
 - Hexen internal actors
 - Strife actors
 - Strife internal actors
 - ZDoom actors
 - ZDoom internal actors
 - Internal