From 05cb38f4f7734a9239fed777b49a5b79b4529fd9 Mon Sep 17 00:00:00 2001 From: vbawol Date: Tue, 26 Sep 2017 14:21:23 -0500 Subject: [PATCH] force hitpoints to reset --- .../compile/epoch_player/EPOCH_server_loadPlayer.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/epoch_server/compile/epoch_player/EPOCH_server_loadPlayer.sqf b/Sources/epoch_server/compile/epoch_player/EPOCH_server_loadPlayer.sqf index 8b06c317..5b22ca10 100644 --- a/Sources/epoch_server/compile/epoch_player/EPOCH_server_loadPlayer.sqf +++ b/Sources/epoch_server/compile/epoch_player/EPOCH_server_loadPlayer.sqf @@ -129,6 +129,8 @@ if (!isNull _player) then { _alreadyDead = (_deadPlayer || (_damage == 1) || (_hitpoints select 2 == 1) || (_hitpoints select 7 == 1) || (_vars select 12 >= 180)); if (_alreadyDead || _prevInstance != _instanceID || (count _location) < 3 || !(_location isEqualType [])) then { + // reset hitpoints + _hitpoints = [0,0,0,0,0,0,0,0,0,0,0]; _dir = random 360; // try to find respawn point by position _newLocation = _server_vars param [0,[]]; // 0 = RESPAWN POS