Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Throwables Stay Ignited (1.9) [28-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
7736
Plugin Version:
1.9
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Keeps ignited throwables on fire and prevents them from randomly extinguishing. Adjust burning duration. Can also block picking up ignited.
    Old 07-28-2021 , 18:36   [L4D & L4D2] Throwables Stay Ignited (1.9) [28-Dec-2022]
    Reply With Quote #1

    About:
    • Keeps ignited throwables on fire (Firework Crates, Gascans, Oxygen Tanks, Propane Tanks) when picked up and prevents them from randomly extinguishing.
    • Fixes the Oxygen Tank from not exploding when picked up after damage and the whistling sound is playing.
    • Can adjust burning duration of each throwable type.
    • Can prevent picking up ignited throwables.
    • This is slightly hackish especially for L4D1, but should work fine.



    Related Plugins:


    Thanks:
    • KoMiKoZa - The idea and request.
    • Lux - Ideas how to fix L4D1 issues.
    • Eärendil - Providing a server to test on.
    • Dragokas - Helped testing in L4D1.



    CVars:

    Saved to l4d_ignited.cfg in your servers \left4dead\cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d_ignited_allow "1"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d_ignited_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_ignited_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d_ignited_modes_tog "0"

    // What to do with damaged Oxygen Tanks that are about to explode: 0=Prevent picking up. 1=Explode in players hands.
    l4d_ignited_oxygen "1"

    // How many seconds after a Scavenge Gascan is destroyed until it respawns
    l4d_ignited_respawn "20.0"

    // How many seconds should Firework Crates stay ignited on fire before exploding.
    l4d_ignited_time_fireworks "2.0"

    // How many seconds should Gascans stay ignited on fire before exploding.
    l4d_ignited_time_gascan "2.0"

    // How many seconds should Oxygen Tanks stay ignited on fire before exploding.
    l4d_ignited_time_oxygen "2.0"

    // How many seconds should Propane Tanks stay ignited on fire before exploding.
    l4d_ignited_time_propane "2.0"

    // Which throwables can be picked up while ignited, otherwise they cannot. 0=All, 1=GasCan, 2=Oxygen Tank, 4=Propane Tank, 8=Firework Crate, 15=All. Add numbers together.
    l4d_ignited_types "15"

    // Throwables Stay Ignited plugin version.
    l4d_ignited_version 


    Changes:
    Code:
    1.9 (28-Dec-2022)
        - Fixed not respawning Scavenge gascans under certain conditions. Thanks to "thewintersoldier97" for reporting.
    
    1.8 (27-Dec-2022)
        - Fixed not respawning Scavenge gascans on the first map from server start. Thanks to "HarryPotter" for reporting.
        - Fixed not respawning Scavenge gascans when "Scavenge Score Fix - Gascan Pouring" plugin is installed.
    
    1.7 (06-Nov-2022)
        - Fixed Oxygen Tanks not whistling before exploding. Thanks to "Iizuka07" for reporting.
    
    1.6 (14-Jul-2022)
        - Changes to fix warnings when compiling on SourceMod 1.11.
    
    1.5 (10-Oct-2021)
        - Fixed an error that could occur with invalid clients.
    
    1.4 (07-Oct-2021)
        - Fixed not respawning Scavenge gascans correctly.
        - Minor changes to code to clean and fix a potential issue with respawning gascans.
        - Prevents conflicts with "Scavenge Score Fix" plugin version 2.3+ when using "l4d2_scavenge_score_respawn" feature.
    
    1.3 (29-Sep-2021)
        - Changed method of creating an explosive to prevent it being visible (still sometimes shows, but probably less).
        - L4D2: Fixed GasCans not registering the thrower for damage credit when exploding.
    
    1.2 (04-Aug-2021)
        - L4D2: Made the plugin compatible with "Saferoom Lock: Scavenge" plugin by "Eärendil". Thanks to "Maur0" for reporting.
    
    1.1 (04-Aug-2021)
        - Fixed Scavenge GasCans not respawning and skin not showing when held. Thanks to "Maur0" for reporting.
        - Fixed throwables exploding in hand when owner take damage. Thanks to "Maur0" for reporting.
        - L4D2: Added cvar "l4d_ignited_respawn" to control when to respawn Scavenge gascans after they are destroyed.
    
    1.0 (28-Jul-2021)
        - Initial release.


    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    2. Highly recommend installing Physics Fix by "raziEiL [disawar1]" to fix non-explodable throwables.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_ignited_stay.sp - 433 views - 39.9 KB)
    __________________

    Last edited by Silvers; 12-28-2022 at 06:33.
    Silvers is offline
    KoMiKoZa
    Senior Member
    Join Date: Dec 2017
    Location: Thy old times.
    Old 07-28-2021 , 18:38   Re: [L4D & L4D2] Throwables Stay Ignited (1.0) [29-Jul-2021]
    Reply With Quote #2

    Woot!
    KoMiKoZa is offline
    Iizuka07
    Senior Member
    Join Date: Aug 2018
    Location: Underground
    Old 07-29-2021 , 11:44   Re: [L4D & L4D2] Throwables Stay Ignited (1.0) [29-Jul-2021]
    Reply With Quote #3

    Finally, a bug fix to propane tanks and oxygen tanks
    __________________
    死が待っている
    Iizuka07 is offline
    Maur0
    Senior Member
    Join Date: Aug 2020
    Old 08-02-2021 , 15:43   Re: [L4D & L4D2] Throwables Stay Ignited (1.0) [29-Jul-2021]
    Reply With Quote #4

    Silvers - I loved what you did with the plugin and it worked very well. Even so I found two drawbacks:

    1) During Scavenge mode, if you set the cans on fire or take acid damage from the Spitter (with the Spitter Acid Damage plugin) they will no longer be able to spawn again and you run out of cans to continue Scavenge.

    2) I do not know if it is part of the plugin, but it happens to me that having grabbed the objects, for example the can or propanotank. When passing over fire or the acid Spitter (again your plugin) at a given moment of time it explodes in my hands. I do not know if it is part of the plugin, but it may be good to add an option that allows detecting when the survivors has it in hand and wants the fire to contact it and allow it to explode.

    That is all that. I hope you find that solution. More than anything important the first, the second is nothing more as a suggestion or to see if it is a mistake or normal. Thanks.
    Maur0 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-04-2021 , 08:03   Re: [L4D & L4D2] Throwables Stay Ignited (1.1) [04-Aug-2021]
    Reply With Quote #5

    Code:
    1.1 (04-Aug-2021)
        - Fixed Scavenge GasCans not respawning and skin not showing when held. Thanks to "Maur0" for reporting.
        - Fixed throwables exploding in hand when owner take damage. Thanks to "Maur0" for reporting.
        - L4D2: Added cvar "l4d_ignited_respawn" to control when to respawn Scavenge gascans after they are destroyed.
    Hopefully the issues are solved. If not, please let me know the steps on how to cause the issue or maybe provide a video if you have one.
    __________________

    Last edited by Silvers; 08-04-2021 at 08:04.
    Silvers is offline
    Maur0
    Senior Member
    Join Date: Aug 2020
    Old 08-04-2021 , 17:21   Re: [L4D & L4D2] Throwables Stay Ignited (1.1) [04-Aug-2021]
    Reply With Quote #6

    Silvers - Yeah! Now if it works perfectly. The only bad thing is that I have the Earendil plugin Saferoom Lock: Scavenge and it still has the same error that I told you before. I do not know if you can give the codes to him to update it or send him by message to let him know that he can update it so that they are compatible without errors.

    Anyway, thank you very much for the arrangement
    Maur0 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-04-2021 , 17:51   Re: [L4D & L4D2] Throwables Stay Ignited (1.1) [04-Aug-2021]
    Reply With Quote #7

    Edit: Done

    Code:
    1.2 (04-Aug-2021)
        - L4D2: Made the plugin compatible with "Saferoom Lock: Scavenge" plugin by "Eärendil". Thanks to "Maur0" for reporting.
    __________________

    Last edited by Silvers; 08-04-2021 at 18:37.
    Silvers is offline
    Maur0
    Senior Member
    Join Date: Aug 2020
    Old 08-04-2021 , 18:50   Re: [L4D & L4D2] Throwables Stay Ignited (1.1) [04-Aug-2021]
    Reply With Quote #8

    Quote:
    Originally Posted by silvers View Post
    edit: Done

    Code:
    1.2 (04-aug-2021)
        - l4d2: Made the plugin compatible with "saferoom lock: Scavenge" plugin by "eärendil". Thanks to "maur0" for reporting.
    you are a genious! Thanks a lot!

    Last edited by Maur0; 08-04-2021 at 18:51.
    Maur0 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-28-2021 , 22:20   Re: [L4D & L4D2] Throwables Stay Ignited (1.3) [29-Sep-2021]
    Reply With Quote #9

    Code:
    1.3 (29-Sep-2021)
        - Changed method of creating an explosive to prevent it being visible (still sometimes shows, but probably less).
        - L4D2: Fixed GasCans not registering the thrower for damage credit when exploding.
    Code:
    1.4 (07-Oct-2021)
        - Fixed not respawning Scavenge gascans correctly.
        - Minor changes to code to clean and fix a potential issue with respawning gascans.
        - Prevents conflicts with "Scavenge Score Fix" plugin version 2.3+ when using "l4d2_scavenge_score_respawn" feature.
    
    1.5 (10-Oct-2021)
        - Fixed an error that could occur with invalid clients.
    __________________

    Last edited by Silvers; 10-10-2021 at 06:54.
    Silvers is offline
    Toranks
    Senior Member
    Join Date: Dec 2021
    Location: Spain
    Old 06-01-2022 , 03:25   Re: [L4D & L4D2] Throwables Stay Ignited (1.5) [10-Oct-2021]
    Reply With Quote #10

    This changes the time the Oxygen tank whistle after being shot, atracting commons?
    The time it takes seems very short to me

    EDIT: No, not changes the time. Another idea for a future plugin xD

    Last edited by Toranks; 06-02-2022 at 01:13.
    Toranks 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 13:25.


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