Weapon grenade launcher: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(De-stubbed)
No edit summary
 
Line 4: Line 4:
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}}.
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}}.
{{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]].}}
{{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]].}}
== Keyvalues ==
{{KV Targetname}}
{{KV WeaponSpawnSingle|l4d2only=1}}
== Flags ==
{{Fl WeaponSpawnSingle|l4d2only=1}}


== See Also ==
== See Also ==
* {{ent|weapon_grenade_launcher_spawn}}
* {{ent|weapon_grenade_launcher_spawn}}
* {{ent|weapon_item_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