mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Prevent 'name' error when player is killed while logging in
Prevents WARNING: Function 'name' - x is dead when player is killed while logging in.
This commit is contained in:
@@ -1942,12 +1942,13 @@ class FSM
|
||||
itemno = 106;
|
||||
init = /*%FSM<STATEINIT""">*/"if (_debug == 1) then {diag_log [diag_tickTime,'Finish'];};" \n
|
||||
"" \n
|
||||
"PVDZ_plr_LoginRecord = [_playerUID,_charID,0,toArray (name vehicle player)];" \n
|
||||
"dayz_playerName = if (alive player) then {name player} else {'unknown'};" \n
|
||||
"PVDZ_plr_LoginRecord = [_playerUID,_charID,0,toArray dayz_playerName];" \n
|
||||
"" \n
|
||||
"" \n
|
||||
"progressLoadingScreen 1;" \n
|
||||
"" \n
|
||||
"diag_log format ['Sent to server PVDZ_plr_LoginRecord: [%1, %2, %3, %4]',_playerUID,_charID,0,(name vehicle player)]; " \n
|
||||
"diag_log format ['Sent to server PVDZ_plr_LoginRecord: [%1, %2, %3, %4]',_playerUID,_charID,0,dayz_playerName]; " \n
|
||||
"" \n
|
||||
"_world = toUpper(worldName); //toUpper(getText (configFile >> ""CfgWorlds"" >> (worldName) >> ""description""));" \n
|
||||
"_nearestCity = nearestLocations [getPos player, [""NameCityCapital"",""NameCity"",""NameVillage"",""NameLocal""],1000];" \n
|
||||
|
||||
@@ -11,7 +11,6 @@ while {true} do {
|
||||
};
|
||||
if ((!isNil "Dayz_loginCompleted") and {(Dayz_loginCompleted)}) exitWith {
|
||||
//diag_log [ __FILE__, __LINE__, "End loop"];
|
||||
dayz_playerName = if (alive player) then {name player} else {"unknown"};
|
||||
if (dayz_groupSystem) then {execVM "\z\addons\dayz_code\groups\init.sqf";};
|
||||
};
|
||||
_display = uiNameSpace getVariable "BIS_loadingScreen";
|
||||
|
||||
Reference in New Issue
Block a user