Stock (grenade launcher):Default explosion with no effects. The speed and gravity is affected by this plugins cvar.

Flare (stock explosion):As above but with Flare and Light effects.

Sticky Flare (no explosion):Flare projectile which sticks to world surfaces and illuminates the area.

Bounce (ignites, no explosion):Projectile which bounces and sets explosives/infected/special infected/survivors on fire.

Jump Launcher:Flare projectiles which stick to world surfaces. Players who jump over their own projectiles and shove (right click) will be teleported away. Players are limited to 3 shots which multiply the force.

Sensor Bomb:These proximity bombs stick to world surfaces and explode when common or special infected walk near.

Timed Bomb:Flare projectiles stick to world surfaces and explode after time set by l4d2_flare_gun_time_timed.

Details:

The !flaregun command displays a menu to select the Grenade Launcher type. Admins with these flags l4d2_flare_gun_menu_admin have access to all types.

Non-admins can be limited to which types are allowed by setting the cvar: l4d2_flare_gun_types.

The menu can be displayed when players first pickup the Grenade Launcher, set by l4d2_flare_gun_auto_menu.

Total shot projectiles are limited to 16 for admins. Total projectiles limited by l4d2_flare_gun_max_total. Non-admins are limited by l4d2_flare_gun_max.

When the maximum cvar is reached, projectiles which are shot will be deleted and the Grenade Launcher reloaded.

The plugin also checks the command access overrides for 'sm_flaregun' to allow/disallow the menu to players.

The projectile speed and gravity can be changed. Negative gravity values will make the projectile fly up and negative speed values will make the projectile fly in the opposite direction from where it was shot.

Damage from the Jump, Remote, Sensor and Timed explosions is applied in a radius set by l4d2_flare_gun_distance. The further away someone is the less damage is applied.

The Sensor type has a set trigger radius. To change you must edit the source and replace "models/props/cs_assault/box_stack2.mdl" with a new model of different size.

Projectiles can ignite players/special infected/explosives when they touch. Damage is applied twice a second on multiple touches and can be controlled by l4d2_flare_gun_hurt and for special infected l4d2_flare_gun_hurt_infected.

Code: 2.0 - Plugin separated and taken from the "Flare and Light Package" plugin. - Added Jump type which launches players into the air. - Added Remote type which sticks and detonates when players right click (shove). - Added Sensor bombs which detonate when infected or special infected go near. - Added Sticky type which sticks and has no explosion. - Added Timed bombs which detonate after l4d2_flare_gun_time_timed - Added and changed many cvars. - Changed the command "sm_flaregun" to show players a menu of Grenade Launcher types. - Changed the cvar "l4d2_flare_gun_type", add the numbers together to choose allowed Grenade Launcher types for non-admins. - Changed cvar "l4d2_flare_gun_max" to limit how many simultaneous flares players are allowed. (Admins limited by cvar below). - Added cvar "l4d2_flare_gun_max_total" to limit the total amount of flares at one time. - Projectiles which have been shot after the max limits will be removed. - Removed cvar "l4d2_flare_gun_bounce". - Removed cvar "l4d2_flare_gun_time".

1.0.3 - Added "l4d2_flare_gun_bounce 3" to make grenade launcher projectiles stick to surfaces. - Added "l4d2_flare_gun_bounce 4" to do the same as above and explode after "l4d2_flare_gun_time". - Added a new cvar to change the grenade launcher projectile bounciness (l4d2_flare_gun_elasticity).

1.0.2 - Fixed the Flare Gun hint text displaying when the game mode is disallowed.