Raised This Month: $106 Target: $400
 26% 

[L4D1 & L4D2] Add Prop Explosion [v1.0.7 | 26-February-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7394
Plugin Version:
1.0.7
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Creates additional explosions on destroyed props
    Old 11-28-2020 , 08:58   [L4D1 & L4D2] Add Prop Explosion [v1.0.7 | 26-February-2021]
    Reply With Quote #1

    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.0"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_add_prop_explosion_barricadegascan_chance "100.0"

    // 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.0"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_add_prop_explosion_fireworkscrate_chance "100.0"

    // 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.0"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_add_prop_explosion_fuelbarrel_chance "100.0"

    // 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.0"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_add_prop_explosion_gascan_chance "100.0"

    // 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.0"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_add_prop_explosion_gaspump_chance "100.0"

    // 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.0"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_add_prop_explosion_oildrumexplosive_chance "100.0"

    // 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.0"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_add_prop_explosion_oxygentank_chance "100.0"

    // 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.0"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_add_prop_explosion_propanecanister_chance "100.0" 
    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

    Spoiler


    Notes
    • This plugin precache some entities.
    • Explosions occur in the next frame to prevent crashes.
    • 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!

    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_add_prop_explosion.sp - 34 views - 39.2 KB)
    __________________

    Last edited by Marttt; 10-11-2021 at 22:29.
    Marttt is offline
    user2000
    Member
    Join Date: Nov 2015
    Location: Peru - Lima
    Old 11-28-2020 , 20:05   Re: [L4D1 & L4D2] Add Props Explosion [v1.0.0 | 28-November-2020]
    Reply With Quote #2

    I just tried two campaigns and it works fine
    user2000 is offline
    user2000
    Member
    Join Date: Nov 2015
    Location: Peru - Lima
    Old 11-29-2020 , 00:37   Re: [L4D1 & L4D2] Add Props Explosion [v1.0.1 | 28-November-2020]
    Reply With Quote #3

    version 1.0.1
    Gas tank does not work even if you change the settings
    user2000 is offline
    Maur0
    Member
    Join Date: Aug 2020
    Old 11-30-2020 , 15:46   Re: [L4D1 & L4D2] Add Props Explosion [v1.0.2 | 28-November-2020]
    Reply With Quote #4

    Hello, I wanted to tell you that it is a very good plugin that you have made, I liked it a lot. Now I have a little problem, it is that I just downloaded the new version that you have added and I just skipped a precache error when the Tank throws an explosive rock at me. I know, I have another plugin that allows you to give the Tank an explosive rock and when it explodes it crash game.

    I do not know if you know how to solve this, or I have to configure to deactivate or I do not allow including the Tank rock explosive plugin.

    Tank's Burning Rock ---> https://forums.alliedmods.net/showthread.php?p=1315173

    Edit: Ok right now this error is giving me a lot that when I shoot the propanetank, I crash game and it tells me a precache error.

    Last edited by Maur0; 11-30-2020 at 16:19.
    Maur0 is offline
    Maur0
    Member
    Join Date: Aug 2020
    Old 11-30-2020 , 19:17   Re: [L4D1 & L4D2] Add Props Explosion [v1.0.3 | 30-November-2020]
    Reply With Quote #5

    I downloaded it again and it keeps throwing me crash game. And I also have the plugin that you showed "Detonation Force"

    As much as the Tank threw an explosive rock at me or shot the propanetank, the game crashed. Here are these messages that they threw at me:

    181/ - prop_fuel_barrel: UTIL_SetModel: not precached:
    models/props_industrial/barrel_fuel.mdl

    36/ - prop_fuel_barrel: UTIL_SetModel: not precached:
    models/props_industrial/barrel_fuel.mdl

    Last edited by Maur0; 11-30-2020 at 19:18.
    Maur0 is offline
    Maur0
    Member
    Join Date: Aug 2020
    Old 11-30-2020 , 22:33   Re: [L4D1 & L4D2] Add Props Explosion [v1.0.4 | 30-November-2020]
    Reply With Quote #6

    Quote:
    Originally Posted by Marttt View Post
    Thanks for the message error, helped a lot.
    I added a missing precache for the fuel barrel. Fixed on 1.0.4.
    Now if it works perfect !!! Sorry I had not sent you the error message.

    And thanks for recommending the "Detonation Force" plugin, along with the other Tank burning rock plugin, it makes it more challenging and fun now.

    Thank you very much and great plugin !!!
    Maur0 is offline
    Maur0
    Member
    Join Date: Aug 2020
    Old 12-02-2020 , 19:30   Re: [L4D1 & L4D2] Add Props Explosion [v1.0.4 | 30-November-2020]
    Reply With Quote #7

    Hi. I have another crashing game problem. It turns out that when the gascan got shot, the game immediately stopped and I was crashing.

    And this time I didn't get any error warning messages. The rest of the objects: propanetank, oxygentank, fireworks, fuel barrel and gascan barricade work fine. Even the Tank Burning Rock plugin. But they don't burn it, since like I said before, it crashes when I just shoot it
    Maur0 is offline
    Maur0
    Member
    Join Date: Aug 2020
    Old 12-02-2020 , 20:19   Re: [L4D1 & L4D2] Add Props Explosion [v1.0.4 | 30-November-2020]
    Reply With Quote #8

    Quote:
    Originally Posted by Marttt View Post
    Try version 1.0.5, I uploaded it now (didn't change the thread name cause may still have issues).
    Yes finally! Now if it works perfectly. And that I had to put the value at 15 to test to see if it did not crash due to exploding a propane or fuel barrel.

    Many thanks!
    Maur0 is offline
    KoMiKoZa
    Senior Member
    Join Date: Dec 2017
    Location: Thy old times.
    Old 06-23-2021 , 15:24   Re: [L4D1 & L4D2] Add Prop Explosion [v1.0.7 | 26-February-2021]
    Reply With Quote #9

    Thank you for the great plugins, Marttt!

    I have a little report. I wasn't able to replicate it 100%, but I suspect this plugin makes any breakable windows sometimes burn/explode if shot at. May have something to do with the first chapter start only.

    I've noticed that when playing through the second chapter of Dead Air ("The Crane") and got a video.
    KoMiKoZa is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 06-23-2021 , 16:42   Re: [L4D1 & L4D2] Add Prop Explosion [v1.0.7 | 26-February-2021]
    Reply With Quote #10

    Well, I did some tests and wasn't able to reproduce at my end.
    Tested in the same map/spot and is normal.
    Maybe you have some addon/plugin/stripper conflicting with this plugin.
    I really don't remember any that would do that.
    I would recommend you changing the cvars from my plugin to check which config is being affected.
    Btw if you find a plugin that is conflicting please tell me.
    Be sure to use the latest version in the main thread.
    Thanks for reporting BTW.
    __________________

    Last edited by Marttt; 06-23-2021 at 20:54.
    Marttt is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 19:12.


    Powered by vBulletin®
    Copyright ©2000 - 2021, vBulletin Solutions, Inc.
    Theme made by Freecode