mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 11:42:38 +03:00
Fixed Object A2 scenery and converted to compact arrays. Fixed floating objects, objects sticking through walls, and disabled simulation to stop bouncing of some objects. Objects that originally used setPosASL converted to setPosATL. Added some map fixes for Object A2 ladder shaft fall hazards and barracks entrances that required vaulting to enter. Added rail gun spawning with configurable chance. The POI call in init.sqf has the individual POI files listed in an array so server owners can comment them out or remove them if they don't want them.
95 lines
4.2 KiB
Plaintext
95 lines
4.2 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 = 15; //Instance ID of this server
|
|
spawnArea = 800; // Distance around markers to find a safe spawn position
|
|
spawnShoremode = 1; // Random spawn locations 1 = on shores, 0 = inland
|
|
};
|
|
|
|
// Setting for both server and client
|
|
DZE_SafeZonePosArray = [[[6224.7,9164.97,0],100],[[7265.519,5804.69,0],100],[[8887.29,10754.3,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.
|
|
|
|
// 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\namalsk.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 {
|
|
[
|
|
"A2Objects", // Object A2 objects that were included by Sumrak in Namalsk Crisis.
|
|
["A2RailGun",.25], // Spawns rail gun on the second floor of object A2. Default chance: .25 (25%)
|
|
"mapFixes" // Fixes entrances to some barracks and prevents fall hazards in Object A2.
|
|
] call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\namalsk\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\namalsk.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\namalsk.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;
|
|
};
|