Update POI spawning again

Vanilla commits:

d98cc5d700

e2afec6a21

5b85b311ed

55518ed792

4a5cb525ef
This commit is contained in:
ebaydayz
2016-12-07 12:57:06 -05:00
parent 2160437e79
commit dab70963d6
29 changed files with 382 additions and 359 deletions

View File

@@ -105,7 +105,7 @@ call compile preprocessFileLineNumbers "server_traders.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\mission\panthera2.sqf"; //Add trader city objects locally on each machine early
initialized = true;
setTerrainGrid 25; //grass draw distance (50=no grass, 25=normal, 12.5=far)
setTerrainGrid 25;
if (dayz_REsec == 1) then {call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\REsec.sqf";};
execVM "\z\addons\dayz_code\system\DynamicWeatherEffects.sqf";
@@ -113,19 +113,21 @@ if (isServer) then {
call compile preprocessFileLineNumbers "\z\addons\dayz_server\system\dynamic_vehicle.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\traders\panthera2.sqf"; //Add trader agents
call compile preprocessFileLineNumbers "\z\addons\dayz_server\system\server_monitor.sqf";
//Must be global spawned, so players don't fall through buildings (might be best to spilt these to important, not important)
if (dayz_POIs && (toLower worldName == "chernarus")) then { execVM "\z\addons\dayz_code\system\mission\chernarus\poi\init.sqf"; };
//Get the server to setup what waterholes are going to be infected and then broadcast to everyone.
if (dayz_infectiousWaterholes && (toLower worldName == "chernarus")) 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"; };
};
// Lootable objects from CfgTownGeneratorDefault.hpp
if (dayz_townGenerator) then { execVM "\z\addons\dayz_code\system\mission\chernarus\LegacyTownGenerator\MainLootableObjects.sqf"; };
if (!isDedicated) then {
if (dayz_antiWallHack != 0) then {
//Enables Map Plug items
execVM "\z\addons\dayz_code\system\mission\chernarus\security\init.sqf";
if (toLower worldName == "chernarus") then { execVM "\z\addons\dayz_code\system\mission\chernarus\antiwallhack.sqf"; };
//Enables Plant lib fixes
call compile preprocessFileLineNumbers "\z\addons\dayz_code\system\antihack.sqf";
};