Raised This Month: $39 Target: $400
 9% 

L4D2 Damage Reduction


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xiaolon
New Member
Join Date: Mar 2017
Old 04-26-2017 , 16:34   L4D2 Damage Reduction
Reply With Quote #1

Hello there everyone
well this is the thing would anyone kind enough to make a simple damage reduction plugin for me?
like the kevlar armor from (survivors upgrades reloaded) wich reduces the damage taken in half but instead of earning such upgrade,make it always active for the survivor team including bots
with a configurable damage reduction amount if possible.Thanks in advance
Xiaolon is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 04-27-2017 , 00:42   Re: L4D2 Damage Reduction
Reply With Quote #2

Try this attached plugin.

ConVar is sv_damage_reduction defaults to 50.0 which is 50% damage reduction. So if you enter 75 = 75% and so on.
Attached Files
File Type: sp Get Plugin or Get Source (dmg_reduction.sp - 703 views - 1.2 KB)
xerox8521 is offline
Xiaolon
New Member
Join Date: Mar 2017
Old 04-27-2017 , 05:08   Re: L4D2 Damage Reduction
Reply With Quote #3

Thank you so much worked like a charm
had to change it to 0.50 as any value beyond 1.0 gives god mode
Edit:
Just a headsup it seems that after map loads everyone gets into a god mode state regardless the compiled setting
have to change value in game (not the same as compiled) or alternatively just put sv_damage_reduction on the sourcemod.cfg
i compiled it with 0.51 and put 0.50 at the sourcemod.cfg to solve it

Last edited by Xiaolon; 04-27-2017 at 05:40.
Xiaolon is offline
BloodyBlade
Senior Member
Join Date: Feb 2018
Old 10-02-2019 , 11:05   Re: L4D2 Damage Reduction
Reply With Quote #4

...
Attached Files
File Type: sp Get Plugin or Get Source (dmg_reduction.sp - 110 views - 1.0 KB)

Last edited by BloodyBlade; 07-21-2020 at 09:56. Reason: Updated
BloodyBlade 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 16:47.


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