Weapon grenade launcher: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Classifying as model entity)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{stub}}
{{ent not in fgd|nolink=1}}
{{CD|CGrenadeLauncher}}
{{CD|CGrenadeLauncher}}
{{this is a|model entity|name=weapon_grenade_launcher|game=Left 4 Dead 2}} To place grenade launcher in a map use [[weapon_grenade_launcher_spawn]] or [[weapon_item_spawn]]
{{This is a|model entity|name=weapon_grenade_launcher|game=Left 4 Dead 2}} It's the actual carriable weapon with physics.


== See also ==
In [[Hammer]], this entity is intended to be used in scripted events where a single item needs to spawn with physics active. The standard way to place grenade launcher in a map is to use {{ent|weapon_grenade_launcher_spawn}} or {{ent|weapon_item_spawn}}.
* [[weapon_grenade_launcher_spawn]]
{{Important|This entity is not affected by <code>[[Left 4 Dead 2/Scripting/Director Scripts/AllowWeaponSpawn|AllowWeaponSpawn]]</code> and <code>[[Left 4 Dead 2/Scripting/Director Scripts/ConvertWeaponSpawn|ConvertWeaponSpawn]]</code>, thus using it may impact some mutations' expected behavior. For example, this entity won't be removed in [[L4D1 Co-op]].}}
* [[weapon_item_spawn]]
 
== See Also ==
* {{ent|weapon_grenade_launcher_spawn}}
* {{ent|weapon_item_spawn}}

Latest revision as of 14:14, 19 November 2025

C++ Class hierarchy
CGrenadeLauncher
CTerrorGun
CTerrorWeapon
CWeaponCSBase
CBaseCombatWeapon
CBaseAnimating
CBaseEntity

weapon_grenade_launcher is a model entity available in Left 4 Dead 2 Left 4 Dead 2. It's the actual carriable weapon with physics.

In Hammer, this entity is intended to be used in scripted events where a single item needs to spawn with physics active. The standard way to place grenade launcher in a map is to use weapon_grenade_launcher_spawn or weapon_item_spawn.

Icon-Important.pngImportant:This entity is not affected by AllowWeaponSpawn and ConvertWeaponSpawn, thus using it may impact some mutations' expected behavior. For example, this entity won't be removed in L4D1 Co-op.

See Also