Skip to content

Commit 43a609f

Browse files
committed
Erweiterung Sicherung für Autorepawn bei Revive
1 parent 6080cc2 commit 43a609f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

addons/OPT/REVIVE/fn_clientInitEH.sqf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ DFUNC(playerHandleDamage) =
121121
_unit setDamage GVAR(MAX_DAMAGE);
122122
};
123123

124+
if (getDammage _unit >= GVAR(MAX_DAMAGE)) then
125+
{
126+
_unit setDamage GVAR(MAX_DAMAGE);
127+
};
128+
124129
[FUNC(playercheckINCAPACITATED), 1,""] call CLib_fnc_wait;
125130
};
126131

0 commit comments

Comments
 (0)