Description
This plugin adds more effects to the props below:
- Gascan
- Propane Canister
- Oxygen Tank
- Fireworks Crate (L4D2 only)
- Fuel Barrel
- Barricade with Gascans
- Gas Pump
- Oil Drum Explosive (can be found on GoldenEye 4 Dead custom map)
With the following explosion effects:
- Gascan
- Fuel Barrel
- Propane Canister
- Fireworks Crate (L4D2 only)
By effect, I mean that the plugin creates another entity in the same spot a prop exploded, looking like it was another effect.
Example: Is possible to configure for when a fireworks crate explodes, it also shows up the gascan explosion effect together.
Features- Allow configuring which additional props should explode together on an explosion.
- Allow configuring the chance for the new effect to be applied.
Cvars
A configuration file named "
l4d_add_prop_explosion.cfg" will automatically be created for you upon the first run in the "
\cfg\sourcemod\" folder.
PHP Code:
// Additional prop explosion every time a barricade with gascans explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "4"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_barricadegascan "4"
// Chance to add a prop explosion when a barricade with gascans explodes.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_barricadegascan_chance "100"
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_add_prop_explosion_enable "1"
// Additional prop explosion every time a fireworks crate explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "5"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_fireworkscrate "5"
// Chance to add a prop explosion when a fireworks crate explodes.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_fireworkscrate_chance "100"
// Additional prop explosion every time a fuel barrel explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_fuelbarrel "1"
// Chance to add a prop explosion when a fuel barrel explodes.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_fuelbarrel_chance "100"
// Additional prop explosion every time a gascan explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "4"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_gascan "4"
// Chance to add a prop explosion when a gascan explodes.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_gascan_chance "100"
// Additional prop explosion every time a gas pump explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_gaspump "1"
// Chance to add a prop explosion when a gas pump explodes.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_gaspump_chance "100"
// Additional prop explosion every time an oil drum explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_oildrumexplosive "1"
// Chance to add a prop explosion when an oil drum explodes.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_oildrumexplosive_chance "100"
// Additional prop explosion every time a oxygen tank explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_oxygentank "2"
// Chance to add a prop explosion when an oxygen tank explodes.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_oxygentank_chance "100"
// Additional prop explosion every time a propane canister explodes.
// 0 = OFF, 1 = GASCAN, 2 = FUEL BARREL, 4 = PROPANE CANISTER, 8 = FIREWORKS (L4D2 only).
// Add numbers greater than 0 for multiple options.
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "15.000000"
l4d_add_prop_explosion_propanecanister "2"
// Chance to add a prop explosion when a propane canister.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_add_prop_explosion_propanecanister_chance "100"
Admin Commands
- sm_print_cvars_l4d_add_prop_explosion => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Notes
- This plugin precache some models.
- Created to work together with [L4D/L4D2] Detonation force plugin.
- There is no oxygen tank effect cause it would behave like the propane canister effect.
- The difference between gascan and fuel barrel is that gascan creates a larger area of fire spots.
- The fuel barrel effect doesn't create additional parts on an explosion.
- The fireworks crate is only applied to the L4D2 game since L4D1 doesn't have a fireworks crate.
- Fuel Barrel can be found on Sacrifice, 1st and 2nd maps.
- Barricade with Gascans can be found on Dead Air, 3rd map.
- Gas Pump can be found on No Mercy, 3rd map.
- Oil Drum Explosive can be found on GoldenEye 4 Dead custom map.
Thank you!
- Tonblader - for requesting and testing in his server.
- user2000 - for reporting a bug.
- Maur0 - for reporting a bug.
- ddd123 - for reporting incompatibility with other plugins.
Related Plugins
Post Reply
- Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.
Installation
- Put the "l4d_add_prop_explosion.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.