Grenade launcher projectile: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Classifying as model entity) |
||
(12 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{ | {{ent not in fgd|nolink=1|because=cannot function as intended if spawned manually}} | ||
[[File:W models-weapons-w he grenade.jpg|thumb|right|{{File:W models-weapons-w he grenade.jpg}}]] | |||
{{CD|CGrenadeLauncher_Projectile}} | |||
{{this is a|model entity|name=grenade_launcher_projectile|game=Left 4 Dead 2}} It is the grenade shot by [[weapon_grenade_launcher]]. On surface contact, it explodes with a large flash unless the surface is part of the [[Tool_textures#Sky_and_Fog_-_Common|skybox]], which then the grenade gets deleted. | |||
If this entity is spawned manually, it will stay put and deal no damage, pushing away players that stand on it. Therefore, this entity is of better interest to [[VScript]] users. | |||
== | == NetProps == | ||
<!-- Keep only ones that are of interest and don't have exceedingly few use cases --> | |||
{{KV|m_flDamage|intn=0|float|Damage dealt. Defaults to <code>grenadelauncher_damage</code> cvar.}} | |||
{{KV|m_hThrower|intn=0|ehandle| Player that shot the grenade. Determines who should take damage and who should be credited for any damage.}} | |||
== Cvars == | |||
=== General Attributes === | |||
{{varcom|start}} | |||
{{varcom|grenadelauncher_damage|400|Damage|Default damage of the grenade.}} | |||
{{varcom|grenadelauncher_ff_scale|0.12|Multiplier ([[float]])|Friendly fire scale for grenade launcher damage to other players.}} | |||
{{varcom|grenadelauncher_ff_scale_self|0.12|Multiplier ([[float]])|Friendly fire scale for grenade launcher damage to self.}} | |||
{{varcom|grenadelauncher_force_kill|2000.0|[[Unit]]s|}} | |||
{{varcom|grenadelauncher_radius_kill|180|[[Unit]]s|Kills commons in given radius.}} | |||
{{varcom|grenadelauncher_radius_stumble|250|[[Unit]]s|Stumbles commons in given radius.}} | |||
{{varcom|grenadelauncher_startpos_forward|16.0|[[Unit]]s|Forward offset from the shooter.}} | |||
{{varcom|grenadelauncher_startpos_right|4.0|[[Unit]]s|Right-side offset from the shooter.}} | |||
{{varcom|grenadelauncher_startpos_up|0.0|[[Unit]]s|Upwards offset from the shooter.}} | |||
{{varcom|grenadelauncher_vel_up|100.0f|[[Unit]]s|Within the first second, how high should the grenade reach before slowly descending.}} | |||
{{varcom|grenadelauncher_vel_variance|10.0|[[Unit]]s|}} | |||
{{varcom|grenadelauncher_velocity|1200|[[Unit]]s|Amount of units the grenade travels per second.}} | |||
{{varcom|end}} | |||
=== Tank-specific === | |||
{{varcom|start}} | |||
{{varcom|z_tank_grenade_damage|750|Damage|How much damage a Tank takes from a grenade.}} | |||
{{varcom|z_tank_grenade_launcher_dmg_scale|3.0|Multiplier ([[float]])|percent increase in damage done to the tank by grenade launcher}} | |||
{{varcom|z_tank_grenade_roll|-10||}} | |||
{{varcom|z_tank_grenade_slowdown|0||The speed setting put on a Tank when hit by a grenade.}} | |||
{{varcom|end}} | |||
== See also == | |||
* {{ent|weapon_grenade_launcher}} | |||
* {{ent|molotov_projectile}} | |||
* {{ent|pipe_bomb_projectile}} | |||
* {{ent|vomitjar_projectile}} | |||
* {{ent|spitter_projectile}} |
Latest revision as of 04:31, 19 May 2025

![]() |
---|
CGrenadeLauncher_Projectile |
grenade_launcher_projectile
is a model entity available in Left 4 Dead 2. It is the grenade shot by weapon_grenade_launcher. On surface contact, it explodes with a large flash unless the surface is part of the skybox, which then the grenade gets deleted.
If this entity is spawned manually, it will stay put and deal no damage, pushing away players that stand on it. Therefore, this entity is of better interest to VScript users.
NetProps
- m_flDamage <float>
- Damage dealt. Defaults to
grenadelauncher_damage
cvar.
- m_hThrower <targetname*>
- Player that shot the grenade. Determines who should take damage and who should be credited for any damage.
Cvars
General Attributes
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
grenadelauncher_damage | 400 | Damage | Default damage of the grenade. |
grenadelauncher_ff_scale | 0.12 | Multiplier (float) | Friendly fire scale for grenade launcher damage to other players. |
grenadelauncher_ff_scale_self | 0.12 | Multiplier (float) | Friendly fire scale for grenade launcher damage to self. |
grenadelauncher_force_kill | 2000.0 | Units | |
grenadelauncher_radius_kill | 180 | Units | Kills commons in given radius. |
grenadelauncher_radius_stumble | 250 | Units | Stumbles commons in given radius. |
grenadelauncher_startpos_forward | 16.0 | Units | Forward offset from the shooter. |
grenadelauncher_startpos_right | 4.0 | Units | Right-side offset from the shooter. |
grenadelauncher_startpos_up | 0.0 | Units | Upwards offset from the shooter. |
grenadelauncher_vel_up | 100.0f | Units | Within the first second, how high should the grenade reach before slowly descending. |
grenadelauncher_vel_variance | 10.0 | Units | |
grenadelauncher_velocity | 1200 | Units | Amount of units the grenade travels per second. |
Tank-specific
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
z_tank_grenade_damage | 750 | Damage | How much damage a Tank takes from a grenade. |
z_tank_grenade_launcher_dmg_scale | 3.0 | Multiplier (float) | percent increase in damage done to the tank by grenade launcher |
z_tank_grenade_roll | -10 | ||
z_tank_grenade_slowdown | 0 | The speed setting put on a Tank when hit by a grenade. |