mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 17:20:26 +03:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user