Disable lit fires when townGenerator is off

If townGenerator is enabled lit fires will be created everywhere except
blacklisted areas.
This commit is contained in:
ebaydayz
2016-04-06 20:08:28 -04:00
parent 6a42ef40d3
commit 0f4aa05753
3 changed files with 7 additions and 3 deletions

View File

@@ -283,7 +283,7 @@ publicVariable "sm_done";
[] execVM "\z\addons\dayz_server\compile\server_spawnCarePackages.sqf";
[] execVM "\z\addons\dayz_server\compile\server_spawnCrashSites.sqf";
if ((toLower worldName) == "chernarus") then {execVM "\z\addons\dayz_server\system\lit_fireplaces.sqf";};
if (dayz_townGenerator && {toLower worldName == "chernarus"}) then {execVM "\z\addons\dayz_server\system\lit_fireplaces.sqf";};
"PVDZ_sec_atp" addPublicVariableEventHandler {
_x = _this select 1;