Item weapon (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{ent not in fgd}}
{{ent not in fgd}}
{{cD|CItemAmmoWeapon|goldsrc=1}}
{{cD|CItemAmmoWeapon|goldsrc=1}}
{{this is a|point entity|name=item_weapon<!--sprite=1-->|engine=GoldSrc|game=Deathmatch Classic}} This entity can be used to spawn ammo.
{{this is a|point entity|name=item_weapon<!--sprite=1-->|game=Deathmatch Classic}} This entity can be used to spawn ammo.


== Keyvalues ==
== Keyvalues ==

Revision as of 08:22, 18 March 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.
C++ Class hierarchy
CItemAmmoWeapon
CItemAmmo
CQuakeItem
CBaseEntity
C++ quake_items.cpp

item_weapon is a point entity available in Deathmatch Classic Deathmatch Classic. This entity can be used to spawn ammo.

Keyvalues

Target (target) <targetname>
The targetname of an entity this entity will trigger when activated.

Flags

Shells : [1]
Same as spawning item_shells.
Rocket : [2]
Same as spawning item_rockets.
Spikes : [4]
Same as spawning item_spikes.
Big : [8]
Grant double the amount of ammunition.
Not In Deathmatch : [2048]
Prevent this entity from attempting to spawn when deathmatch (multiplayer) is enabled.