- Converts the Grenade Launcher into 1 of 8 types and provides a menu to select the type. Projectiles can ignite infected/players/explosives.
- This plugin was originally part of the Flare and Light Package. I have seperated the Flare, Flashlight and Flare Gun into new plugins.
Stock (grenade launcher):
- SilentBr - for the idea and request.
- Mr.RuyC - For recording a video of the first version and playing for hours and hours testing the plugin on his server.
- nakashimakun - Who came up with the plugin name and the clientprefs code for !flaregun. Also testing the plugin on their server.
- honorcode23, DJ_WEST, AtomicStryker, Boikinov, pimpinjuice and FoxMulder for source code (full credits inside the source).
- Downtown1, ProdigySim and psychonic - For "[EXTENSION] Left 4 Downtown 2" gamedata to stumble players.
- januto - Lots of testing on their server, Spanish translations and the idea for the Sensor type.
- [Resistance] Yoshi - Lots of help testing and ideas about balancing.
- disawar1 - For Russian translations.
- januto - For Spanish translations.
- Dont Fear The Reaper - For German translations.
- NanX, japan555, CeeJ, Farmer, SilentBr, sapphire989, Visual77, Mr. Man, disawar1, alexip121093, xioSlayer and everyone else who helped testing, it's been fun!
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.
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.
Remote (right click):
The Remote bomb sticks to world surfaces and explodes when the owner shoves (right clicks).
These proximity bombs stick to world surfaces and explode when common or special infected walk near.
Flare projectiles stick to world surfaces and explode after time set by l4d2_flare_gun_time_timed
- 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.
sm_flaregun // Opens the Flare Gun menu to select different types.
Saved to l4d2_flare_gun.cfg
in your servers \left4dead\cfg\sourcemod\
// 0=Plugin off, 1=Plugin on.
// 0=Unlimited ammo, 1=Default ammo, else how many grenades are given in Grenade Launchers.
// 0=Off, 1=Display the !flaregun menu when players first pickup Grenade Launchers.
// Scales friendly fire damage to other players.
// Scales friendly fire damage to yourself.
// Maximum damage the Homing Rocket explosions can cause.
// Maximum damage the Jump explosions can cause.
// Maximum damage the Remote Bomb explosions can cause.
// Maximum damage the Sensor Bomb explosions can cause.
// Maximum damage the Timed explosions can cause.
// How far can the explosions cause damage.
// Changes the projectile bounciness. Valve default: 1.0.
// How much force is applied to the Jump type.
// 0=Off, When using the jump type: 1=Prevent Ledge Grab, 2=Prevent fall damage, 3=Both.
// Changes the projectile gravity, negative numbers make it fly upwards!
// 0=Off, Hurt survivors this much and ignite zombies/infected/explosives when bouncing. This enables l4d2_flare_gun_hurt_special.
// Hurt special infected this much when they touch the flare. Damage is limited to once per second, same as above.
// Stumble survivors/special infected in explosions (does not affect stock types).
// Turn on/off the attached light_dynamic glow.
// The light color. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
l4d2_flare_gun_light_color "200 20 15"
// Max simultaneous flares a player can shoot.
// Limit the total number of simultaneous grenade flares to this many.
// Players with these flags have access to flare gun type menu. (Empty = All).
// Players with these flags have access to all the flare gun types in the menu.
// 0=Off. 1=Use ZOOM (scope) key to open the menu. Only accessible to players with l4d2_flare_gun_menu flags.
// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
// 0=No reloading, quick shooting, 1=Default reloading after 1 shot.
// 0=Off, 1=Turn on the attached firework particle effect.
// The grenade launcher projectile speed.
// The homing rocket projectile speed.
// 0=Off, 1=The Sacrifice flare smoke, 2=Flare smoke but RPG smoke on Bounce type.
// Turn on/off the attached glowing sprite.
// Set the glowing sprite color. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
l4d2_flare_gun_sprite_color "200 20 15"
// How many seconds before removing Bounce projectiles.
// How many seconds before removing Homing Rockets (explodes on time up).
// How many seconds before removing Jump projectiles.
// How many seconds before removing Remote Bomb projectiles.
// How many seconds before removing Sensor projectiles.
// How many seconds before removing Sticky Flare projectiles.
// How many seconds before removing Timed projectiles.
// Which types can players use (admins can use all). 1=Stock, 2=Flare, 4=Bounce, 8=Sticky Flare, 16=Jump, 32=Remote Bomb, 64=Sticky Bomb Timed, 128=Sensor Bomb, 256=Homing Rocket, 511=All.
// The default type of grenade launcher new players receive. Same as types but only use 1 value, do not add up.
// Flare Gun plugin version.
- Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
- Added cvar "l4d2_flare_gun_menu_button" to enable opening the menu instead of using the console command.
- Attempt to fix godmode bug.
- Gamedata signatures file updated. No other changes.
- Fixed the damage cvars not applying full damage to special infected - Thanks to "disawar1" for bug report.
- Fixed the Timed Bomb type not following the damage cvar settings.
- Fixed the Homing Type breaking the total number of projectiles.
- Fixed errors reported by "Dont Fear The Reaper".
- New gamedata "l4d2_flare_gun.txt" file required.
- The cvar "l4d2_flare_gun_hurt_stumble" now stumbles survivors and infected away from the explosion origin.
- Added "Homing" type to direct the projectile movement.
- Added cvar "l4d2_flare_gun_modes_off" to control which game modes the plugin works in.
- Added cvar "l4d2_flare_gun_modes_tog" same as above.
- Added cvar "l4d2_flare_gun_god" to prevent ledge grab and fall damage when using the Jump type.
- Added cvar "l4d2_flare_gun_damage_homing" to control the Homing Rocket explosion damage.
- Added cvar "l4d2_flare_gun_time_homing" to control how long the Homing Rocket lasts.
- Added cvar "l4d2_flare_gun_speed_homing" to control how fast Homing Rockets travel.
- Prevents shooting the Grenade Launcher when limiting the number of projectiles.
- Should no longer explode when using a sticky type too close to a wall.
- Small changes and fixes.
- Fixed a bug in the menu which gave the wrong Flare Gun type to non-admins.
- Increased a string size to better support translations.
- 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 Bomb type which detonates 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".
- 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).
- Fixed the Flare Gun hint text displaying when the game mode is disallowed.
- Fixed Flare Gun hint text displaying when Flare Gun is off.
- Change the default Flare Gun Speed (l4d2_flare_gun_speed) cvar from 600 to 1000.
- Initial release.
- Put the colors.inc include into your \addons\sourcemod\scripting\include\ folder.
- Put the plugins .sp file into your scripting folder and compile the plugin.
Updating from 2.1 or older:
- Download the .zip and extract the files to their respective folders in your servers \addons\sourcemod\ folder.
- New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
: English (en), German (de), Russian (ru), Spanish (es).