diff --git a/addons/respawn/functions/fnc_respawnUnit.sqf b/addons/respawn/functions/fnc_respawnUnit.sqf index 89324c0..ef5aa25 100644 --- a/addons/respawn/functions/fnc_respawnUnit.sqf +++ b/addons/respawn/functions/fnc_respawnUnit.sqf @@ -20,6 +20,7 @@ private _respawnPosition = getMarkerPos ((_respawnPointsHash get _side) select 0 [_unit, false, _side] call FUNC(updateWaitingRespawnList); _unit setVariable [QGVAR(isWaitingRespawn), false, true]; +player setVariable [QGVAR(skipNextWave), nil]; private _text = localize "STR_tunres_Respawn_FNC_moveRespawnText"; diff --git a/addons/respawn/functions/fnc_updateWaitingRespawnList.sqf b/addons/respawn/functions/fnc_updateWaitingRespawnList.sqf index a454b7f..1747868 100644 --- a/addons/respawn/functions/fnc_updateWaitingRespawnList.sqf +++ b/addons/respawn/functions/fnc_updateWaitingRespawnList.sqf @@ -28,6 +28,7 @@ if (isnull _player || !(_player in allPlayers) || !alive _player ) exitWith { } forEach [GVAR(waitingRespawnListHash), GVAR(waitingRespawnDelayedListHash)]; if (isNil {_player getVariable [QGVAR(skipNextWave), nil]}) then { + LOG("Check if unit needs to be at delayed respawn"); [_player, _side] call FUNC(delayedRespawn) }; diff --git a/addons/respawn/functions/fnc_waitingArea.sqf b/addons/respawn/functions/fnc_waitingArea.sqf index c44d3e4..8fd3414 100644 --- a/addons/respawn/functions/fnc_waitingArea.sqf +++ b/addons/respawn/functions/fnc_waitingArea.sqf @@ -21,6 +21,7 @@ LOG("Start waiting area"); //tell server to add this player to list if (!isNil QGVAR(uselesBody)) then { + LOG("Delete old body"); deleteVehicle GVAR(uselesBody); GVAR(uselesBody) = nil; };