mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
- Every missionfile has the configVariables.sqf added now since almost every server admin move their configVariables to the mission folder. Now it comes by default with it. - The missionfile contains by default a custom variables and compiles.sqf too now. This makes it easier for server admins to add scripts. - Having all configVariables in one place makes a map change much easier now. - Only map specifc variables are still in init.sqf and should stay there.
89 lines
4.1 KiB
Plaintext
89 lines
4.1 KiB
Plaintext
// EPOCH CONFIG VARIABLES //
|
|
//#include "\z\addons\dayz_code\configVariables.sqf" // If you have problems with certain variables uncomment this line.
|
|
#include "configVariables.sqf" // Don't remove this line, path in your missionfile
|
|
|
|
// Map Specific Config //
|
|
|
|
if (isServer) then {
|
|
dayZ_instance = 26; //Instance ID of this server
|
|
spawnArea = 2000; // Distance around markers to find a safe spawn position
|
|
spawnShoremode = 0; // Random spawn locations 1 = on shores, 0 = inland
|
|
};
|
|
|
|
// Setting for both server and client
|
|
DZE_SafeZonePosArray = [[[15502,17015,0],100],[[13166,6611,0],100],[[24710,21741,0],100],[[16983,1774,0],100],[[11045,15671,0],100],[[15350,18522,0],100]]; // Format is [[[3D POS],RADIUS],[[3D POS],RADIUS]]; Stops loot and zed spawn, salvage and players being killed if their vehicle is destroyed in these zones.DZE_SelfTransfuse = true; // Allow players to bloodbag themselves
|
|
|
|
// Map Specific Config End //
|
|
|
|
enableRadio false;
|
|
enableSentences false;
|
|
//setTerrainGrid 25;
|
|
|
|
//diag_log 'dayz_preloadFinished reset';
|
|
dayz_preloadFinished=nil;
|
|
onPreloadStarted "dayz_preloadFinished = false;";
|
|
onPreloadFinished "dayz_preloadFinished = true;";
|
|
with uiNameSpace do {RscDMSLoad=nil;}; // autologon at next logon
|
|
|
|
if (!isDedicated) then {
|
|
enableSaving [false, false];
|
|
startLoadingScreen ["","RscDisplayLoadCustom"];
|
|
dayz_progressBarValue = 0;
|
|
dayz_loadScreenMsg = localize 'str_login_missionFile';
|
|
progress_monitor = [] execVM "\z\addons\dayz_code\system\progress_monitor.sqf";
|
|
0 cutText ['','BLACK',0];
|
|
0 fadeSound 0;
|
|
0 fadeMusic 0;
|
|
};
|
|
|
|
initialized = false;
|
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";
|
|
call compile preprocessFileLineNumbers "dayz_code\init\variables.sqf";
|
|
dayz_progressBarValue = 0.05;
|
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
|
|
dayz_progressBarValue = 0.1;
|
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
|
|
dayz_progressBarValue = 0.15;
|
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
|
|
call compile preprocessFileLineNumbers "dayz_code\init\compiles.sqf";
|
|
dayz_progressBarValue = 0.25;
|
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\sauerland.sqf"; //Add trader city objects locally on every machine early
|
|
initialized = true;
|
|
|
|
if (dayz_REsec == 1) then {call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\REsec.sqf";};
|
|
|
|
if (isServer) then {
|
|
if (dayz_POIs) then {call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\chernarus\poi\init.sqf";};
|
|
call compile preprocessFileLineNumbers "\z\addons\dayz_server\system\dynamic_vehicle.sqf";
|
|
call compile preprocessFileLineNumbers "\z\addons\dayz_server\system\server_monitor.sqf";
|
|
execVM "\z\addons\dayz_server\traders\sauerland.sqf"; //Add trader agents
|
|
|
|
//Get the server to setup what waterholes are going to be infected and then broadcast to everyone.
|
|
if (dayz_infectiousWaterholes) then {execVM "\z\addons\dayz_code\system\mission\chernarus\infectiousWaterholes\init.sqf";};
|
|
|
|
// Lootable objects from CfgTownGeneratorDefault.hpp
|
|
if (dayz_townGenerator) then { execVM "\z\addons\dayz_code\system\mission\chernarus\MainLootableObjects.sqf"; };
|
|
};
|
|
|
|
if (!isDedicated) then {
|
|
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\server_traders\sauerland.sqf";
|
|
|
|
if (toLower worldName in ["chernarus","chernarus_winter"]) then {
|
|
execVM "\z\addons\dayz_code\system\mission\chernarus\hideGlitchObjects.sqf";
|
|
};
|
|
|
|
// Enables Plant lib fixes
|
|
execVM "\z\addons\dayz_code\system\antihack.sqf";
|
|
|
|
if (dayz_townGenerator) then {execVM "\z\addons\dayz_code\compile\client_plantSpawner.sqf";};
|
|
execFSM "\z\addons\dayz_code\system\player_monitor.fsm";
|
|
//[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
|
|
//[600,.15,30] execVM "\z\addons\dayz_code\compile\fn_chimney.sqf"; // Smoking chimney effects.
|
|
if (DZE_R3F_WEIGHT) then {execVM "\z\addons\dayz_code\external\R3F_Realism\R3F_Realism_Init.sqf";};
|
|
waitUntil {scriptDone progress_monitor};
|
|
cutText ["","BLACK IN", 3];
|
|
3 fadeSound 1;
|
|
3 fadeMusic 1;
|
|
endLoadingScreen;
|
|
};
|