AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] ReverseBurn and ThrowableAnnouncer [v1.2.2a (09-Sep-2023)] (https://forums.alliedmods.net/showthread.php?t=331166)

Mystik Spiral 03-08-2021 18:07

[L4D & L4D2] ReverseBurn and ThrowableAnnouncer [v1.2.2a (09-Sep-2023)]
 
2 Attachment(s)
.
ReverseBurn and ThrowableAnnouncer (l4d_ReverseBurn_and_ThrowableAnnouncer) by Mystik Spiral

Smart reverse of burn damage from throwables (molotovs) if the victim is burned instantly and continuously.
It was created to help mitigate the damage by griefers attempting to kill/incap their teammates by burning them.

Reverses the following throwable burn types: molotov
Announces the following throwable types: molotov, pipe bomb, bile jar


Features:
  • Burn damage is reversed only if victim(s) are burned instantly (within 0.75 second of ignition) and continuously (takes burn damage more than once per second).
  • If player runs into fire more than 0.75 seconds after ignition, burn damage is treated normally.
  • When burn damage is reversed, during each burn cycle (approximately 6x per second):
    • Attacker takes 70% damage for each instantly/continuously burned victim
    • Standing burn victims lose 1PermHP which is converted to 2TempHP as incentive to move out of the fire quickly.
    • Before ignition, any players already incapped or with only 1TotalHP do not take any burn damage.
  • Bots do not take burn damage but do move out of the fire as quickly as possible.
  • Griefers cannot kill or incap a victim by burning them (victims still take some damage as stated above).
  • In all other scenarios, burn damage behaves normally.
  • Option to reverse burn/blast damage if attacker is an admin. [RBaTA_admin, default: 0/false]
  • Option to reverse blast/explosion damage. [RBaTA_blast, default: 1/true]
    • If both RBaEA and RBaTA plugins are loaded, RBaEA takes precedence to avoid both plugins reversing blast/explosion damage.
  • Option to ban attacker (griefer) that disconnects during reverse burn. [RBaTA_banburndisconnect, default: 1/true]
  • Option to set ban duration in minutes. [RBaTA_banduration, default: 2880 (2 days)]


Common Scenarios:
  • Griefer attempts to kill the whole team by burning them.
    Usual end result: Griefer takes 210% damage (70% per victim x 3 victims) plus possible additional self-damage and everyone else takes relatively minor damage.
  • Player starts fire (which does not burn anyone within 0.75 seconds) and griefer runs into it.
    Usual end result: Griefer takes normal damage and player that started the fire takes no damage.

Suggestion:

To minimize griefer impact, use the ReverseBurn and ThrowableAnnouncer plugin along with...

ReverseBurn and ExplosionAnnouncer (l4d_ReverseBurn_and_ExplosionAnnouncer)
  • Smart reverse of burn damage from explodables, like gascans.
  • Option to reverse blast damage, like propane tanks.
Reverse Friendly-Fire (l4d_reverse_ff)
  • Reverse friendly-fire weapon damage. Attacker takes damage, victim does not.
When these three plugins are combined, griefers will usually get frustrated and leave since they cannot damage anyone other than themselves.
Although griefers will take significant damage, other players may not notice any difference in game play (except laughing at stupid griefer fails).


Credits:

This plugin began life as Throwable Announcer by Marttt. The original plugin kept track of throwable entities, when they were thrown, and announced who did it. I hooked on to that announcement to track whether that throwable (molotov) instantly burned any other players, and if so, to ensure the attacker took the vast majority of the damage. If no other players are instantly burned, then burn damage is treated normally.

Want to contribute code enhancements?
Create a pull request using this GitHub repository:
https://github.com/Mystik-Spiral/l4d...wableAnnouncer

Plugin discussion: https://forums.alliedmods.net/showthread.php?t=331164


Most recent update:
Code:

09-Sep-2023 v1.2.2a
- Maintenance release (no new features or bug fixes)
-- resolve warnings during compile with SourceMod 11


Update history for older versions:
Spoiler


The phrases file was updated in version 1.2, is REQUIRED and must be copied to the "addons\sourcemod\translations" directory.
.

Mystik Spiral 03-08-2021 19:04

Re: [L4D & L4D2] ReverseBurn and ThrowableAnnouncer [v1.0 (08-Mar-2021)]
 
If you want to see how this plugin works, connect to the server linked in my signature. Feel free to burn bots all you want (they will not take damage anyway), but please do not burn human players.

Krufftys Killers 03-10-2021 08:36

Re: [L4D & L4D2] ReverseBurn and ThrowableAnnouncer [v1.0 (08-Mar-2021)]
 
Got this error
L 03/09/2021 - 20:08:37: SourceMod error session started
L 03/09/2021 - 20:08:37: Info (map "beldurra2_4") (file "C:\servers\kruffty\left4dead2\addons\sourcem od\logs\errors_20210309.log")
L 03/09/2021 - 20:08:37: [SM] Exception reported: Translation string formatted incorrectly - missing at least 1 parameters (arg 5)
L 03/09/2021 - 20:08:37: [SM] Blaming: l4d_ReverseBurn_and_ThrowableAnnouncer.smx
L 03/09/2021 - 20:08:37: [SM] Call stack trace:
L 03/09/2021 - 20:08:37: [SM] [0] VFormat
L 03/09/2021 - 20:08:37: [SM] [1] Line 861, /home/forums/content/files/3/0/4/6/6/5/187938.attach::CPrintToChat
L 03/09/2021 - 20:08:37: [SM] [2] Line 1043, /home/forums/content/files/3/0/4/6/6/5/187938.attach::FinishBurnTimer
L 03/09/2021 - 20:10:22: Error log file session closed.

Mystik Spiral 03-10-2021 10:47

Re: [L4D & L4D2] ReverseBurn and ThrowableAnnouncer [v1.0 (08-Mar-2021)]
 
Quote:

Originally Posted by Krufftys Killers (Post 2739989)
Got this error
L 03/09/2021 - 20:08:37: SourceMod error session started
L 03/09/2021 - 20:08:37: Info (map "beldurra2_4") (file "C:\servers\kruffty\left4dead2\addons\sourcem od\logs\errors_20210309.log")
L 03/09/2021 - 20:08:37: [SM] Exception reported: Translation string formatted incorrectly - missing at least 1 parameters (arg 5)
L 03/09/2021 - 20:08:37: [SM] Blaming: l4d_ReverseBurn_and_ThrowableAnnouncer.smx
L 03/09/2021 - 20:08:37: [SM] Call stack trace:
L 03/09/2021 - 20:08:37: [SM] [0] VFormat
L 03/09/2021 - 20:08:37: [SM] [1] Line 861, /home/forums/content/files/3/0/4/6/6/5/187938.attach::CPrintToChat
L 03/09/2021 - 20:08:37: [SM] [2] Line 1043, /home/forums/content/files/3/0/4/6/6/5/187938.attach::FinishBurnTimer
L 03/09/2021 - 20:10:22: Error log file session closed.

Found and fixed the problem. Requires new smx and phrases file.

Mystik Spiral 03-10-2021 10:48

Re: [L4D & L4D2] ReverseBurn and ThrowableAnnouncer [v1.0 (08-Mar-2021)]
 
New version 1.0.1 released, see original post for download.

10-Mar-2021 v1.0.1
- Fixed bug with one of the translation messages, requires new smx and phrases download.

Thank you to Krufftys Killers for reporting.

Mystik Spiral 03-16-2021 23:47

Re: [L4D & L4D2] ReverseBurn and ThrowableAnnouncer [v1.1 (16-Mar-2021)]
 
New version 1.1 released, see original post for download.

16-Mar-2021 v1.1
- When burn damage is reversed, victims now take half the damage of previous version.

Krufftys Killers 03-24-2021 21:28

Re: [L4D & L4D2] ReverseBurn and ThrowableAnnouncer [v1.1 (16-Mar-2021)]
 
Started getting this error
L 03/24/2021 - 20:09:29: SourceMod error session started
L 03/24/2021 - 20:09:29: Info (map "rmstitanic_m2") (file "C:\servers\madhouse\left4dead2\addons\source mod\logs\errors_20210324.log")
L 03/24/2021 - 20:09:29: [SM] Exception reported: Translation string formatted incorrectly - missing at least 1 parameters (arg 5)
L 03/24/2021 - 20:09:29: [SM] Blaming: l4d_ReverseBurn_and_ThrowableAnnouncer.smx
L 03/24/2021 - 20:09:29: [SM] Call stack trace:
L 03/24/2021 - 20:09:29: [SM] [0] VFormat
L 03/24/2021 - 20:09:29: [SM] [1] Line 861, /home/forums/content/files/3/0/4/6/6/5/187938.attach::CPrintToChat
L 03/24/2021 - 20:09:29: [SM] [2] Line 1043, /home/forums/content/files/3/0/4/6/6/5/187938.attach::FinishBurnTimer
L 03/24/2021 - 20:14:15: Error log file session closed.

Mystik Spiral 03-25-2021 09:32

Re: [L4D & L4D2] ReverseBurn and ThrowableAnnouncer [v1.1 (16-Mar-2021)]
 
Quote:

Originally Posted by Krufftys Killers (Post 2741692)
Started getting this error
L 03/24/2021 - 20:09:29: SourceMod error session started
L 03/24/2021 - 20:09:29: Info (map "rmstitanic_m2") (file "C:\servers\madhouse\left4dead2\addons\source mod\logs\errors_20210324.log")
L 03/24/2021 - 20:09:29: [SM] Exception reported: Translation string formatted incorrectly - missing at least 1 parameters (arg 5)
L 03/24/2021 - 20:09:29: [SM] Blaming: l4d_ReverseBurn_and_ThrowableAnnouncer.smx
L 03/24/2021 - 20:09:29: [SM] Call stack trace:
L 03/24/2021 - 20:09:29: [SM] [0] VFormat
L 03/24/2021 - 20:09:29: [SM] [1] Line 861, /home/forums/content/files/3/0/4/6/6/5/187938.attach::CPrintToChat
L 03/24/2021 - 20:09:29: [SM] [2] Line 1043, /home/forums/content/files/3/0/4/6/6/5/187938.attach::FinishBurnTimer
L 03/24/2021 - 20:14:15: Error log file session closed.

Please verify you are using version 1.1 of the plugin. From the server console, type in...

sm plugins list

...and verify it returns...

"[L4D & L4D2] ReverseBurn and ThrowableAnnouncer" (1.1)

Krufftys Killers 03-25-2021 11:19

Re: [L4D & L4D2] ReverseBurn and ThrowableAnnouncer [v1.1 (16-Mar-2021)]
 
Mystik Spiral Sorry I forgot to replace it on both servers

Shao 04-06-2021 23:33

Re: [L4D & L4D2] ReverseBurn and ThrowableAnnouncer [v1.1 (16-Mar-2021)]
 
So people have been complaining about friendly fire with bots, I've tested it and have found that it does indeed happen. Any hints to what could be wrong? The cfg or other things don't lead to much.


All times are GMT -4. The time now is 00:03.

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