From 064fa8c8d00f91b88f3a68089329f0249aca42dc Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Sun, 30 Oct 2016 15:47:01 -0400 Subject: [PATCH] Only spawn wild dogs if dayz_tameDogs is enabled --- SQF/dayz_code/system/scheduler/sched_animals.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/system/scheduler/sched_animals.sqf b/SQF/dayz_code/system/scheduler/sched_animals.sqf index 014230411..bf092eb00 100644 --- a/SQF/dayz_code/system/scheduler/sched_animals.sqf +++ b/SQF/dayz_code/system/scheduler/sched_animals.sqf @@ -45,7 +45,8 @@ sched_animals = { //diag_log [ dayz_maxGlobalAnimals / (1 max count playableUnits), ceil(1.2*(dayz_maxGlobalAnimals - _global) / (1 max count playableUnits)) min (dayz_maxAnimals - _count), _global,dayz_maxAnimals, _count, dayz_maxGlobalAnimals, _global ]; for "_x" from 0 max (2 min (ceil(1.5*(dayz_maxGlobalAnimals - _global) / (1 max count playableUnits)) min (dayz_maxAnimals - _count))) to 1 step -1 do { - _animalssupported = ["hen","hen","hen","Cow","Sheep","WildBoar","WildBoar","WildBoar","Goat","Rabbit","Rabbit","Dog"]; + _animalssupported = ["hen","hen","hen","Cow","Sheep","WildBoar","WildBoar","WildBoar","Goat","Rabbit","Rabbit"]; + if (dayz_tameDogs) then {_animalssupported set [count _animalssupported,"Dog"];}; _type = _animalssupported select floor random count _animalssupported; if (_type == "Cow") then { _animalssupported = ["Cow01","Cow02","Cow03","Cow04","Cow01_EP1"];