Skip to content

Commit

Permalink
Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tuntematonjr committed Jun 16, 2024
1 parent 1e7cc3c commit df1e159
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/respawn/functions/fnc_respawnUnit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
1 change: 1 addition & 0 deletions addons/respawn/functions/fnc_updateWaitingRespawnList.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};

Expand Down
1 change: 1 addition & 0 deletions addons/respawn/functions/fnc_waitingArea.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit df1e159

Please sign in to comment.