Upgrade ammo incendiary: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Classifying as model entity)
(It is in the FGD)
Line 1: Line 1:
{{ent not in fgd}}
{{CD|CUpgradeAmmoIncendiary}}
{{CD|CUpgradeAmmoIncendiary}}
{{this is a|model entity|name=upgrade_ammo_incendiary|game=Left 4 Dead 2}}<br>
{{This is a|model entity|name=upgrade_ammo_incendiary|game=Left 4 Dead 2}}
This entity will spawn an already deployed box of incendiary ammunition, which will still only allow four uses.<br>
This entity will spawn an already deployed box of incendiary ammunition, which will still only allow four uses.
 
==FGD Code==
To add this entity to the FGD, and to use it in [[Hammer]], add the following lines to the left4dead2.FGD (or any custom FGD, loaded by Hammer).
<pre>@PointClass base(WeaponSpawnSingle) studioprop("models/props/terror/incendiary_ammo.mdl") = upgrade_ammo_incendiary : "Deployed Upgrade Pack - Incendiary" []
</pre>


== See Also ==
== See Also ==

Revision as of 17:32, 13 December 2025

C++ Class hierarchy
CUpgradeAmmoIncendiary
CBaseUpgradeItem
CWeaponSpawn
CItem
CBaseAnimating
CBaseEntity

upgrade_ammo_incendiary is a model entity available in Left 4 Dead 2 Left 4 Dead 2. This entity will spawn an already deployed box of incendiary ammunition, which will still only allow four uses.

See Also