startLoadingScreen ["","RscDisplayLoadCustom"];
cutText ["","BLACK OUT"];
enableSaving [false, false];
dayZ_instance = 1;
hiveInUse = true;
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "compiles.sqf";
progressLoadingScreen 1.0;
zombie_generate = compile preprocessFileLineNumbers "scripts\zombie_generate.sqf";
"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 {
// For settings involving the factions, go to scripts\add_unit_server.sqf and adjust the settings at the top of the file
_factions = [] execVM "scripts\set_unit_faction.sqf";
//_aispawnpos - Worldspace location
//_wpradius - Distance you want units to be able to travel
//_wpnum - Number of waypoints to place withing that distance. The higher the number, the more extensively the units will travel
//_numunits - Number of units to place. Keep in mind that squads will be placed in multiples of this number
//_unitType - Type of unit to place. 0: Random, 1: Sniper, 2: Gunner, 3: Militia, 4: Squad of the previous 3 types
//_faction - The type of faction you want this unit to adhere to. 0: RESISTANCE, 1: EAST, 2: WEST. Factions loyalties are set in scripts\set_unit_faction.sqf
//_baseSkill - Lowest possible skill that the units can posess from 1 to 10
//_potentialSkill - Highes possible skill that the units can posess from 1 to 10
//_gearSet - Which set of gear your units will use. To set the types of gear, edit the variables at the top of scripts\add_units_server.sqf
//_respawnTime - How long to wait until NPCs respawn (in seconds)
_aispawn = [[4598.66,10197.7,0],650,12,4,0,0,1,5,0,1800] execVM "scripts\add_unit_server.sqf";
_aispawn = [[6689.49,2623.59,0],160,8,4,0,0,1,5,1,1800] execVM "scripts\add_unit_server.sqf";//Stary Sabor
_aispawn = [[10447.5,2246.96,0],180,3,3,0,1,1,5,0,1800] execVM "scripts\add_unit_server.sqf";//Stary Sabor
_aispawn = [[4334.96,10496.3,0],500,20,4,0,1,1,5,1,1800] execVM "scripts\add_unit_server.sqf";//Stary Sabor
};
if (isServer) then {
hiveInUse = true;
_serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
};
if (!isDedicated) then {[] execVM "Scripts\kh_actions.sqf";
0 fadeSound 0;
0 cutText [(localize "STR_AUTHENTICATING"), "BLACK FADED",60];
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
_playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
};