Skip to content

Commit

Permalink
Merge pull request #113 from GNCLORD-MDB/fix_autorespawn_revive
Browse files Browse the repository at this point in the history
Erweiterung Sicherung für Autorepawn bei Revive
  • Loading branch information
Frozen-byte authored Feb 19, 2021
2 parents 6080cc2 + 43a609f commit a6fa8f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/OPT/REVIVE/fn_clientInitEH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ DFUNC(playerHandleDamage) =
_unit setDamage GVAR(MAX_DAMAGE);
};

if (getDammage _unit >= GVAR(MAX_DAMAGE)) then
{
_unit setDamage GVAR(MAX_DAMAGE);
};

[FUNC(playercheckINCAPACITATED), 1,""] call CLib_fnc_wait;
};

Expand Down

0 comments on commit a6fa8f6

Please sign in to comment.