Upgrade ammo incendiary: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(created page)
 
m (Classifying as model entity)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{l4d2 point|Upgrade_ammo_incendiary}}<br>
{{ent not in fgd}}
{{CD|CUpgradeAmmoIncendiary}}
{{this is a|model entity|name=upgrade_ammo_incendiary|game=Left 4 Dead 2}}<br>
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.<br>
In order to see and use this entity in [[Hammer]], you need to edit the [[FGD]] file. How to do so can be found on this [https://steamcommunity.com/sharedfiles/filedetails/?id=1685639284 Steam Guide].
 
==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 ==
* {{ent|upgrade_ammo_explosive}}
* {{ent|upgrade_laser_sight}}
* {{ent|upgrade_spawn}}

Latest revision as of 04:35, 19 May 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.
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.

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).

@PointClass base(WeaponSpawnSingle) studioprop("models/props/terror/incendiary_ammo.mdl") = upgrade_ammo_incendiary : "Deployed Upgrade Pack - Incendiary" []

See Also