Weapon propanetank: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Classifying as model entity)
m (Tested in l4d2)
 
Line 4: Line 4:
{{this is a|model entity|name=weapon_propanetank|series=Left 4 Dead}} This entity is created when picking up {{ent|prop_physics}} with model <code>models/props_junk/PropaneCanister001a.mdl</code>. When thrown or dropped this entity is killed and mentioned prop_physics is spawned back which when shot causes an explosion that is achieved by spawning {{ent|pipe_bomb_projectile}} that immediately explodes.
{{this is a|model entity|name=weapon_propanetank|series=Left 4 Dead}} This entity is created when picking up {{ent|prop_physics}} with model <code>models/props_junk/PropaneCanister001a.mdl</code>. When thrown or dropped this entity is killed and mentioned prop_physics is spawned back which when shot causes an explosion that is achieved by spawning {{ent|pipe_bomb_projectile}} that immediately explodes.


{{note|To add propane tank spawns to the map either prop_physics with model <code>models/props_junk/PropaneCanister001a.mdl</code> can be used or {{ent|weapon_item_spawn}} with proper settings}}
{{Note|To add propane tank spawns to the map either prop_physics with model <code>models/props_junk/PropaneCanister001a.mdl</code> can be used or {{ent|weapon_item_spawn}} with proper settings}}
{{note|Default model name: <code>models/props_junk/PropaneCanister001a.mdl</code>}}
{{Note|Default model name: <code>models/props_junk/PropaneCanister001a.mdl</code>}}
{{bug|Taking other carryable while holding this will drop weapon_propanetank to the ground instead of spawning the mentioned prop_physics. This entity doesn't explode when shooting it and cannot be damaged}}
{{Bug|Taking another carryable while holding this will drop the weapon_propanetank to the ground instead of spawning the mentioned prop_physics. This entity doesn't explode when shooting it and cannot be damaged.|tested=l4d2}}


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

Latest revision as of 15:20, 18 August 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.
C++ Class hierarchy
CPropaneTank
CCarriedProp
CBaseBackpackItem
CTerrorWeapon
CWeaponCSBase
CBaseCombatWeapon
CBaseAnimating
CBaseEntity
models/props_junk/propanecanister001a.mdl

weapon_propanetank is a model entity available in Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. This entity is created when picking up prop_physics with model models/props_junk/PropaneCanister001a.mdl. When thrown or dropped this entity is killed and mentioned prop_physics is spawned back which when shot causes an explosion that is achieved by spawning pipe_bomb_projectile that immediately explodes.

Note.pngNote:To add propane tank spawns to the map either prop_physics with model models/props_junk/PropaneCanister001a.mdl can be used or weapon_item_spawn with proper settings
Note.pngNote:Default model name: models/props_junk/PropaneCanister001a.mdl
Icon-Bug.pngBug:Taking another carryable while holding this will drop the weapon_propanetank to the ground instead of spawning the mentioned prop_physics. This entity doesn't explode when shooting it and cannot be damaged.  (tested in: l4d2)

See Also