Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- INITILIZATION
- */
- startLoadingScreen ["","RscDisplayLoadCustom"];
- cutText ["","BLACK OUT"];
- enableSaving [false, false];
- //REALLY IMPORTANT VALUES
- dayZ_instance = 1; //The instance
- dayzHiveRequest = [];
- initialized = false;
- dayz_previousID = 0;
- //disable greeting menu
- player setVariable ["BIS_noCoreConversations", true];
- //disable radio messages to be heard and shown in the left lower corner of the screen
- enableRadio true;
- DZE_DeathMsgGlobal = true;
- // DayZ Epoch config
- spawnShoremode = 1; // Default = 1 (on shore)
- spawnArea= 1500; // Default = 1500
- MaxHeliCrashes= 10; // Default = 5
- MaxVehicleLimit = 999; // Default = 50
- MaxDynamicDebris = 100; // Default = 500
- dayz_MapArea = 14000; // Default = 10000
- dayz_maxLocalZombies = 15; // Default = 40
- dayz_fullMoonNights = true; // Full moon
- dayz_tameDogs = true; // Tame dogs
- dayz_zedsAttackVehicles = false;
- DefaultMagazines = ["ItemBandage","ItemMorphine","ItemPainkiller","FoodCanBakedBeans","ItemWaterbottle","ItemAntibiotic"];
- DefaultWeapons = ["ItemMachete","ItemEtool"];
- DefaultBackpack = "DZ_Patrol_Pack_EP1";
- DefaultBackpackWeapon = "";
- //Load in compiled functions
- 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 0.5;
- call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
- call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
- 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 {
- call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
- call compile preprocessFileLineNumbers "custom\variables.sqf";
- // Add trader citys
- _nil = [] execVM "mission.sqf";
- [] execVM "custom\mission\faction.sqf";
- [] execVM "custom\mapedits\chenaid.sqf";
- [] execVM "custom\mapedits\camp_rocket.sqf";
- [] execVM "custom\mapedits\kamybase.sqf";
- [] execVM "custom\mapedits\neaf.sqf";
- [] execVM "custom\mapedits\zubmanor.sqf";
- [] execVM "custom\mapedits\assorted.sqf";
- [] execVM "custom\mapedits\excelsiorbridge.sqf";
- _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
- // UPSMON
- call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
- // SHK
- call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";
- // run SAR_AI
- [] execVM "addons\SARGE\SAR_AI_init.sqf";
- };
- if (!isDedicated) then {
- //Conduct map operations
- 0 fadeSound 0;
- waitUntil {!isNil "dayz_loadScreenMsg"};
- dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
- //Run the player monitor
- _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
- _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
- [] execVM "DamiMods\Adminz\functions.sqf";
- _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf";
- [] execVM "custom\safezone\safezone.sqf";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement