About:- Thanks to "backwards" for the idea.
- Allows grenades to explode when damaged or ignite into flames when caught on fire and then detonate.
CVars:
Saved to
l4d_explode_grenades.cfg in your servers
\left4dead\cfg\sourcemod\ folder.
PHP Code:
// 0=Plugin off, 1=Plugin on.
l4d_explode_grenades_allow "1"
// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_explode_grenades_modes ""
// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_explode_grenades_modes_off ""
// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_explode_grenades_modes_tog "0"
// 0=Off. 1=Boomer explosions can also explode grenades.
l4d_explode_grenades_boomer "0"
// 0.0=Instant. Delay exploding when damaged.
l4d_explode_grenades_delay_molo "1.5"
// 0.0=Instant. Delay exploding when damaged.
l4d_explode_grenades_delay_pipe "1.5"
// 0.0=Instant. Delay exploding when damaged.
l4d_explode_grenades_delay_vomi "0.0"
// "0=No explosion when picking up a damaged grenade. 1=Explode after the _delay cvars when picking up a damaged grenade.
l4d_explode_grenades_detonate "1"
// 0=Off. 1=On. Should _spawn grenades (those which can have multiple grenades in 1 spawn) be allowed to ignite or explode.
l4d_explode_grenades_spawners "1"
// After how many seconds does an ignited grenade detonate.
l4d_explode_grenades_time "5.0"
// Which types of grenades can ignite and then detonate. 1=Molotovs, 2=PipeBombs, 4=Vomit Jars. 7=All. Add numbers together.
l4d_explode_grenades_type "7"
// Which types of grenades can take damage and detonate. 1=Molotovs, 2=PipeBombs, 4=Vomit Jars. 7=All. Add numbers together.
l4d_explode_grenades_types "7"
// L4D2 only. Which types of upgrade ammo can detonate grenades. 0=None. 1=Incendiary ammo. 2=Explosive ammo. 3=Both.
l4d_explode_grenades_upgrade "3"
// Damage Explodes Grenades plugin version.
l4d_explode_grenades_version
Changes:
Code:
1.11 (10-Jan-2024)
- Changed the plugins on/off/mode cvars to use the "Left 4 DHooks" method instead of creating an entity.
1.10 (04-May-2022)
- Added cvars "l4d_explode_grenades_delay_molo", "l4d_explode_grenades_delay_pipe" and "l4d_explode_grenades_delay_vomi" to delay explosion. Requested by "Voevoda".
- Added cvar "l4d_explode_grenades_detonate" to determine if grenades can explode after being picked up.
1.9 (01-May-2022)
- L4D2: Added cvar "l4d_explode_grenades_upgrade" to control if upgrade ammo can detonate grenades. Requested by "Voevoda".
1.8 (23-Apr-2022)
- Compatibility update for "PipeBomb Damage Modifier" plugin. Thanks to "Shao" for reporting.
1.7 (27-Jan-2022)
- Fixed copy paste mistake from last update sometimes throwing errors.
1.6 (26-Jan-2022)
- Fixed spawners detonating when no grenades are visible. Thanks to "Shao" for reporting.
1.5 (23-Oct-2021)
- Fixed error from invalid clients.
1.4 (07-Oct-2021)
- Fixed not ignoring Boomer explosions. Thanks to "swiftswing1" for reporting.
1.3 (07-Oct-2021)
- Changed the Boomer detection method to allow Pipe Bombs to explode nearby grenades.
- Fixed some errors when attacker was invalid. Thanks to "swiftswing1" for reporting.
1.2 (07-Oct-2021)
- Fixed invalid entity errors. Thanks to "swiftswing1" for reporting.
1.1 (06-Oct-2021)
- Added cvar "l4d_explode_grenades_boomer" to control if Boomer explosions can explode grenades. Requested by "Shao".
- Consolidated some code.
1.0 (29-Sep-2021)
- Initial release.
- Requires Left4DHooks 1.58 or newer.
Requirements:- Left 4 DHooks Direct 1.58 or newer.
Installation:DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires Left4DHooks!
- Download the .smx file and put into your servers \addons\sourcemod\plugins folder.