From 2f7d7a928769e4d21bc9964218b6bfe7392bac20 Mon Sep 17 00:00:00 2001 From: icomrade Date: Mon, 30 Jun 2014 00:59:42 -0400 Subject: [PATCH] Duplicate define --- SQF/dayz_code/init/variables.sqf | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/SQF/dayz_code/init/variables.sqf b/SQF/dayz_code/init/variables.sqf index e2ecbbab0..c41b9cc9e 100644 --- a/SQF/dayz_code/init/variables.sqf +++ b/SQF/dayz_code/init/variables.sqf @@ -683,18 +683,24 @@ if(!isDedicated) then { dayz_spawnZombies = 0; dayz_swarmSpawnZombies = 0; //Max local - dayz_maxLocalZombies = 30; // max quantity of Z controlled by local gameclient, used by player_spawnCheck. Below this limit we can spawn Z -//Current NearBy dayz_CurrentNearByZombies = 0; //Max NearBy - dayz_maxNearByZombies = 60; // max quantity of Z controlled by local gameclient, used by player_spawnCheck. Below this limit we can spawn Z + if (isNil "dayz_maxNearByZombies") then { + dayz_maxNearByZombies = 60; // max quantity of Z controlled by local gameclient, used by player_spawnCheck. Below this limit we can spawn Z //Current total + }; dayz_currentGlobalZombies = 0; //Max global zeds. - dayz_maxGlobalZeds = 3000; - dayz_spawnDelay = 120; - dayz_spawnWait = -120; - dayz_lootDelay = 3; + if (isNil "dayz_maxGlobalZeds") then { + dayz_maxGlobalZeds = 3000; + }; + if (isNil "dayz_spawnDelay") then { + dayz_spawnDelay = 120; + }; + dayz_spawnWait = -(dayz_spawnDelay); + if (isNil "dayz_lootDelay") then { + dayz_lootDelay = 3; + }; dayz_lootWait = -300; //used to count global zeds around players dayz_CurrentZombies = 0;