AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Throwables Stay Ignited (1.9) [28-Dec-2022] (https://forums.alliedmods.net/showthread.php?t=333679)

Silvers 07-28-2021 17:36

[L4D & L4D2] Throwables Stay Ignited (1.9) [28-Dec-2022]
 
12 Attachment(s)
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.

KoMiKoZa 07-28-2021 17:38

Re: [L4D & L4D2] Throwables Stay Ignited (1.0) [29-Jul-2021]
 
Woot!

Iizuka07 07-29-2021 10:44

Re: [L4D & L4D2] Throwables Stay Ignited (1.0) [29-Jul-2021]
 
Finally, a bug fix to propane tanks and oxygen tanks

Maur0 08-02-2021 14:43

Re: [L4D & L4D2] Throwables Stay Ignited (1.0) [29-Jul-2021]
 
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.

Silvers 08-04-2021 07:03

Re: [L4D & L4D2] Throwables Stay Ignited (1.1) [04-Aug-2021]
 
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.

Maur0 08-04-2021 16:21

Re: [L4D & L4D2] Throwables Stay Ignited (1.1) [04-Aug-2021]
 
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 :)

Silvers 08-04-2021 16:51

Re: [L4D & L4D2] Throwables Stay Ignited (1.1) [04-Aug-2021]
 
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.


Maur0 08-04-2021 17:50

Re: [L4D & L4D2] Throwables Stay Ignited (1.1) [04-Aug-2021]
 
Quote:

Originally Posted by silvers (Post 2754528)
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! :D

Silvers 09-28-2021 21:20

Re: [L4D & L4D2] Throwables Stay Ignited (1.3) [29-Sep-2021]
 
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.


Toranks 06-01-2022 02:25

Re: [L4D & L4D2] Throwables Stay Ignited (1.5) [10-Oct-2021]
 
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


All times are GMT -4. The time now is 17:33.

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