Consolidate isServer checks for poi

Vanilla commit:

https://github.com/DayZMod/DayZ/commit/fbcabc6d602088a7843da793378703ff4e7524dc
This commit is contained in:
ebaydayz
2016-11-11 15:19:57 -05:00
parent 00b09a86c5
commit f43348ebf6
24 changed files with 55 additions and 80 deletions
@@ -113,14 +113,13 @@ if (isServer) then {
call compile preprocessFileLineNumbers "\z\addons\dayz_server\system\dynamic_vehicle.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_server\traders\smd_sahrani_a2.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";};
//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"; };
// Lootable objects from CfgTownGeneratorDefault.hpp
if (dayz_townGenerator) then { execVM "\z\addons\dayz_code\system\mission\chernarus\LegacyTownGenerator\MainLootableObjects.sqf"; };