Skip to content

Commit

Permalink
Umstellung
Browse files Browse the repository at this point in the history
  • Loading branch information
GNCLORD-MDB committed Nov 21, 2023
1 parent b70655d commit 80722c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addons/main/REVIVE/fn_clientInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ DFUNC(SelfCare) =
// Var setzen
player setVariable ["OPT_isUnconscious", 0, true];
player setVariable ["OPT_isStabilized", 0, true];
player setVariable ["OPT_PlayerOnMap", time, true];
player setVariable ["OPT_SpawnTime", time, true];
GVAR(OPT_isDragging) = false;
player setVariable ["OPT_isDragged", 0, true];

Expand Down
2 changes: 1 addition & 1 deletion addons/main/REVIVE/fn_clientInitEH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ DFUNC(HandleDamage) =
_newPlayer setVariable ["OPT_isUnconscious", 0, true];
_newPlayer setVariable ["OPT_isStabilized", 0, true];
_newPlayer setVariable ["OPT_isDragged", 0, true];
_newPlayer setVariable ["OPT_isOnMap", time, true];
_newPlayer setVariable ["OOPT_SpawnTime", time, true];
_newPlayer allowDamage true;
_newPlayer setVariable ["tf_unable_to_use_radio", false];

Expand Down
8 changes: 4 additions & 4 deletions addons/main/REVIVE/fn_dialog.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ GVAR(startzeit) = time;
} forEach _units;
};

//Dynamische Respawnzeit
private _PlayerOnMapTime = player getVariable ['OPT_PlayerOnMap',GVAR(Respawnzeit)];
private _PlayerRespawnTime = GVAR(Respawnzeit) - (Time - _PlayerOnMapTime);

//Dynamische Respawnzeit
if (GVAR(Respawnzeitdynamisch)) then
{
//Dynamische Respawnzeit
private _PlayerOnMapTime = player getVariable ['OPT_SpawnTime',GVAR(Respawnzeit)];
private _PlayerRespawnTime = GVAR(Respawnzeit) - (Time - _PlayerOnMapTime);

// Respawnzeit setzen
if (_PlayerRespawnTime <= 0) then
{
Expand Down

0 comments on commit 80722c8

Please sign in to comment.