Skip to content

Commit a6fa8f6

Browse files
authored
Merge pull request #113 from GNCLORD-MDB/fix_autorespawn_revive
Erweiterung Sicherung für Autorepawn bei Revive
2 parents 6080cc2 + 43a609f commit a6fa8f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)