grenade_launcher_projectile

From Valve Developer Community
Jump to: navigation, search
English (en)中文 (zh)
... Icon-Important.png

Stub

This article or section is a stub. You can help by adding to it.

Info.png
This entity is not in the FGD by default .
It should not be put directly in a map because cannot function as intended if spawned manually.
class hierarchy
CGrenadeLauncher_Projectile
CBaseCSGrenadeProjectile
CBaseGrenade
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

grenade_launcher_projectile is a point entity available in Left 4 Dead 2 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.
m_hThrower <ehandle>
Player that shot the grenade. Determines who should take damage and who should be credited for any damage.

Cvars

General Attributes

Cvar/CommandParameters or default valueDescriptorEffect
grenadelauncher_damage400DamageDefault damage of the grenade.
grenadelauncher_ff_scale0.12Multiplier (float)Friendly fire scale for grenade launcher damage to other players.
grenadelauncher_ff_scale_self0.12Multiplier (float)Friendly fire scale for grenade launcher damage to self.
grenadelauncher_force_kill2000.0Units
grenadelauncher_radius_kill180UnitsKills commons in given radius.
grenadelauncher_radius_stumble250UnitsStumbles commons in given radius.
grenadelauncher_startpos_forward16.0UnitsForward offset from the shooter.
grenadelauncher_startpos_right4.0UnitsRight-side offset from the shooter.
grenadelauncher_startpos_up0.0UnitsUpwards offset from the shooter.
grenadelauncher_vel_up100.0fUnitsWithin the first second, how high should the grenade reach before slowly descending.
grenadelauncher_vel_variance10.0Units
grenadelauncher_velocity1200UnitsAmount of units the grenade travels per second.

Tank-specific

Cvar/CommandParameters or default valueDescriptorEffect
z_tank_grenade_damage750DamageHow much damage a Tank takes from a grenade.
z_tank_grenade_launcher_dmg_scale3.0Multiplier (float)percent increase in damage done to the tank by grenade launcher
z_tank_grenade_roll-10
z_tank_grenade_slowdown0The speed setting put on a Tank when hit by a grenade.

See also