Reduce damage

Reduce damage

« posted: May 04, 2018, 01:44 PM »
is there a way to reduce the damage taken in far_revive  as it seems its like 1 shot kills all the time and i would like to make gun battles last a little longer -  could not find out where the damage is checked

thanks
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2489

Re: Reduce damage

« Reply #1 posted: May 04, 2018, 02:09 PM »
In unitHandleDamage.sqf, add

Code: [Select]
_oldDamage = [_unit getHit _selection, damage _unit] select (_selection isEqualTo "");
if (!isNil "_oldDamage") then { _damage = ((_damage - _oldDamage) * 0.25) + _oldDamage };

right above

Code: [Select]
// Revive stuff
call FAR_HandleDamage_EH;

0.25 is the damage multiplier, change it to your liking

Re: Reduce damage

« Reply #2 posted: May 06, 2018, 10:34 AM »
Many thanks worked a treat !