From d131498a0ff69f933f68d618cecff5b8b9ba70d5 Mon Sep 17 00:00:00 2001 From: second_coming Date: Mon, 13 Jun 2016 11:54:41 +0100 Subject: [PATCH] V47 --- changeLog.txt | 7 ++++++- config.cpp | 2 +- scripts/occupationLootCrates.sqf | 2 +- scripts/occupationPlaces.sqf | 1 + 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/changeLog.txt b/changeLog.txt index 9702a32..73e3de7 100644 --- a/changeLog.txt +++ b/changeLog.txt @@ -1,5 +1,10 @@ ================================================================================= -V46 (05-06-2016) +V47 (13-06-2016) +================================================================================= +Fixed a bug in Occupation places modules + +================================================================================= +V46 (10-06-2016) ================================================================================= Dynamic Traders are now working (placement of the base can be temperamental) If you want to design your own trader base, traders are automatically placed in front diff --git a/config.cpp b/config.cpp index a81a16f..a33f0d8 100644 --- a/config.cpp +++ b/config.cpp @@ -4,7 +4,7 @@ class CfgPatches units[] = {}; weapons[] = {}; requiredVersion = 0.1; - a3_exile_occupation_version = "v46 (10-06-2016)"; + a3_exile_occupation_version = "v47 (13-06-2016)"; requiredAddons[] = {"a3_dms"}; author[]= {"second_coming"}; }; diff --git a/scripts/occupationLootCrates.sqf b/scripts/occupationLootCrates.sqf index bad0e28..cf285eb 100644 --- a/scripts/occupationLootCrates.sqf +++ b/scripts/occupationLootCrates.sqf @@ -79,7 +79,7 @@ for "_i" from 1 to SC_numberofLootCrates do [_group, _spawnPosition, 100] call bis_fnc_taskPatrol; - _group setBehaviour "AWARE"; + _group setBehaviour "STEALTH"; _group setCombatMode "RED"; _logDetail = format ["[OCCUPATION:LootCrates]:: Creating crate %3 at drop zone %1 with %2 guards",_position,_AICount,_i]; diff --git a/scripts/occupationPlaces.sqf b/scripts/occupationPlaces.sqf index 156c247..a62094c 100644 --- a/scripts/occupationPlaces.sqf +++ b/scripts/occupationPlaces.sqf @@ -80,6 +80,7 @@ _locations = (nearestLocations [_spawnCenter, ["NameVillage","NameCity", "NameCi }; _okToSpawn = [ _pos ] call SC_fnc_isSafePos; + if(isNil "_okToSpawn") then { _okToSpawn = false; }; // Don't spawn additional AI if there are already AI in range _nearBanditAI = { side _x == SC_BanditSide AND _x distance _pos < 500 } count allUnits;