mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 11:42:38 +03:00
59 lines
1.9 KiB
Plaintext
59 lines
1.9 KiB
Plaintext
startLoadingScreen ["","DayZ_loadingScreen"];
|
|
/*
|
|
INITILIZATION
|
|
*/
|
|
enableSaving [false, false];
|
|
|
|
//REALLY IMPORTANT VALUES
|
|
dayZ_instance = 2; //The instance
|
|
hiveInUse = true;
|
|
initialized = false;
|
|
dayz_previousID = 0;
|
|
|
|
// AMP config
|
|
spawnShoremode = 1; // Default = 1 (on shore)
|
|
spawnArea= 1000; // Default = 1500
|
|
MaxHeliCrashes= 2; // Default = 5
|
|
MaxVehicleLimit = 50; // Default = 50
|
|
MaxDynamicDebris = 100; // Default = 100
|
|
dayz_MapArea = 4000; // Default = 10000
|
|
dayz_maxLocalZombies = 40; // Default = 40
|
|
|
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
|
|
progressLoadingScreen 0.1;
|
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
|
|
progressLoadingScreen 0.2;
|
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
|
|
progressLoadingScreen 0.4;
|
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
|
|
progressLoadingScreen 1.0;
|
|
|
|
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
|
|
|
|
if ((!isServer) && (isNull player) ) then
|
|
{
|
|
waitUntil {!isNull player};
|
|
waitUntil {time > 3};
|
|
};
|
|
|
|
if ((!isServer) && (player != player)) then
|
|
{
|
|
waitUntil {player == player};
|
|
waitUntil {time > 3};
|
|
};
|
|
|
|
if (isServer) then {
|
|
//Run the server monitor
|
|
hiveInUse = true;
|
|
_serverMonitor = [] execVM "\z\addons\dayz_server\system\server_monitor.sqf";
|
|
};
|
|
|
|
if (!isDedicated) then {
|
|
//Conduct map operations
|
|
0 fadeSound 0;
|
|
0 cutText [(localize "STR_AUTHENTICATING"), "BLACK FADED",60];
|
|
|
|
//Run the player monitor
|
|
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
|
|
_playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
|
|
}; |