View Single Post
Author Message
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 03-08-2021 , 18:07   [L4D & L4D2] ReverseBurn and ThrowableAnnouncer [v1.2.2a (09-Sep-2023)]
Reply With Quote #1

.
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.
.
Attached Files
File Type: txt l4d_ReverseBurn_and_ThrowableAnnouncer.phrases.txt (3.2 KB, 508 views)
File Type: sp Get Plugin or Get Source (l4d_ReverseBurn_and_ThrowableAnnouncer.sp - 207 views - 44.9 KB)
__________________

Last edited by Mystik Spiral; 09-09-2023 at 13:26.
Mystik Spiral is offline