Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
Friendly Fire 50-50 Reflector
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
31.642 KB
3 Oct, 2023 @ 4:42am
1 Change Note ( view )

Subscribe to download
Friendly Fire 50-50 Reflector

In 1 collection by DoubleOSpanky
Zombie Madness V2 Collection Pair
36 items
Description
"Hey y'all! We a team!"
This is a derivative of MANACAT's [Anti-Troll] Friendly Fire Reflector
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2280444652

Instead of reflecting a reduced amount of damage entirely, it will instead deal said reduced value an even split between the attacker and the attackee. (Example, you accidentally hit a teammate for 10 damage. You take 5 and he takes 5.) Ideal for those who jump in your line of fire instead of just shooting you in the back.

Using the "!ff" or "!FF" command in chat will toggle your character to take the full amount of damage when shot, and you will no longer reflect damage dealt to you. Any player can toggle this command for themselves on/off.

Same as MANACAT's, fire/explosion damage is not reflected and this will only work on your own local server. The damage values have been corrected/adjusted from MANACAT's due to a numerical issue I noticed. It will likely not be noticeable outside of meticulous testing.

Note that if you are using modifications to change the damage values of weapons, this script will still likely set friendly fire (and only the friendly fire) to values based on vanilla weapon damage in the script. Otherwise your weapon mod will work as normal. Meaning if you use the "!ff" command, you'll likely be taking the modded value damage in full then.

If there is an issue let me know. I don't exactly have a great environment to test the changes I made with a variety of players in different circumstances.
5 Comments
steeg 30 May, 2024 @ 8:35am 
Like the other person suggest, this would be better if we can adjust the ratio in a config file, like 100-100, 25-25, 75-25, etc, disable/enable for bots, although default value is already good nonetheless
Rogueraccoon 7 Jan, 2024 @ 4:44am 
shouldnt there be one where if the shot is accidental then they dont take damage like give them 3 strikes. but if they keep shooting you after 2 seconds then all the damage gets reflected back towards them fully and to any teammates they try to shoot
DoubleOSpanky  [author] 28 Oct, 2023 @ 10:02am 
Any ratio is possible, but it can become mostly irrelevant when you're trying to divide such small numbers to begin with. MANACAT has a full friendly fire reflector. What ratio were you looking for?
Please don’t shoot!!!!!!! 28 Oct, 2023 @ 6:35am 
Is it possible to set a ratio to do more damage to trolls?
Sasha Pines (no brain) 5 Oct, 2023 @ 10:28pm 
hey that pretty good