Properly disable town generator and plant spawner loops

Stops intensive loop from running unnecessarily when dayz_townGenerator
= false; The comfrey plants are pointless atm since the only thing they
may be used for is crafting a sepsis bandage.

Also added waterHoleProxy for Napf and Namalsk placed by @skigoggles

Vanilla commit:

b5a9125086
This commit is contained in:
ebaydayz
2017-01-21 21:44:43 -05:00
parent cc3b8801b7
commit 26c1bd9a86
37 changed files with 409 additions and 43 deletions

View File

@@ -146,6 +146,11 @@ if (!isDedicated) then {
//System
player_spawn_2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\player_spawn_2.sqf";
//Spawn waterHoleProxies manually if townGenerator is disabled
if (!dayz_townGenerator && {toLower worldName in ["chernarus","namalsk","napf"]}) then {
execVM ("\z\addons\dayz_code\system\mission\" + (toLower worldName) + "\waterHoleProxy.sqf");
};
//Crafting
fn_updateCraftUI = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_updateCraftUI.sqf";
@@ -658,7 +663,9 @@ DZ_KeyDown_EH = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\k
fn_shuffleArray = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_shuffleArray.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_code\traps\init.sqf";
call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\psrnd.sqf"; // pseudo random for plantSpanwer
if (dayz_townGenerator) then {
call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\psrnd.sqf"; // pseudo random for plantSpanwer
};
// EPOCH ADDITIONS
BIS_fnc_numberDigits = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_numberDigits.sqf";