arma2-epoch-server/MPMissions/DayZ_Epoch_24.Napf/spawn/functions/finish.sqf
stuzer05 61de8f76f3 #15 Upgrade to Epoch 1.7.0.1 (#16)
Closes #15

Reviewed-on: #16
Co-authored-by: stuzer05 <stuzer05@stuzer.link>
Co-committed-by: stuzer05 <stuzer05@stuzer.link>
2023-10-01 21:22:36 +03:00

30 lines
1.2 KiB
Plaintext
Executable File

if (player distance respawn_west_original < 100) then {
// Ground spawn
player setPosATL _grid;
if (surfaceIsWater respawn_west_original) then {
player allowDamage false;
player call fn_exitSwim;
player allowDamage true;
};
// Show infoText if not in HALO spawn
_nearestCity = nearestLocations [_grid, ["NameCityCapital","NameCity","NameVillage","NameLocal"],1000];
Dayz_logonTown = "Wilderness";
if (count _nearestCity > 0) then {Dayz_logonTown = text (_nearestCity select 0)};
[toUpper worldName,Dayz_logonTown,format[localize "str_player_06",Dayz_logonDate]] spawn {
uiSleep 5;
BIS_fnc_infoText = compile preprocessFileLineNumbers "ca\modules_e\functions\GUI\fn_infoText.sqf";
_this spawn BIS_fnc_infoText;
};
};
spawn_camera cameraEffect ["terminate","back"];
camDestroy spawn_camera;
dayz_enableRules = dayz_enableRulesOriginal;
dayz_maxGlobalAnimals = dayz_maxGlobalAnimalsOriginal;
fnc_usec_damageHandler = fnc_usec_damageHandlerOriginal;
player_spawn_2 = player_spawn_2_original;
dayz_slowCheck = [] spawn player_spawn_2;
if (dayz_enableRules && (profileNamespace getVariable ["streamerMode",0] == 0)) then { dayz_rulesHandle = execVM "rules.sqf"; };