From 9e152e21ad2c8caad9553e9b7df7fe68f2a895c3 Mon Sep 17 00:00:00 2001 From: kuplion Date: Thu, 23 Mar 2017 06:30:33 +0000 Subject: [PATCH] Added more options for Static Spawns --- pre-packaged pbo/a3_exile_occupation.pbo | Bin 226061 -> 226279 bytes source/a3_exile_occupation/config.sqf | 2 ++ .../scripts/functions/fnc_spawnStatics.sqf | 2 +- .../scripts/occupationStatic.sqf | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pre-packaged pbo/a3_exile_occupation.pbo b/pre-packaged pbo/a3_exile_occupation.pbo index 3e65ed225f4c7f8a6b03e7ab466afdd7d0bbf2a4..62cd6ccca6356c28fdfdf5dc0212bb77914d1605 100644 GIT binary patch delta 378 zcmeBu#{2v^?}UxKd!{jfflt=uh&>zktz+VgV}*#^&%7KF$2wV&Nn~>$Gann@6>*4o z9#G{K@yYp|5|j0xa&JD%*%(;wnVy$ll&5kds)MT2#zwtB{tMQ=Dq8udfhX zkXW9lkXn|Sr;wSZPykV&kXV$ekO$Vn73>^eT#{IlnG7+=(bGA#mf+5 kn9Z0ywtJZ|ueT9794RRum%ChQrMZyRvnpLxvr89k0IouR`~Uy| delta 167 zcmaF_ zzV+e=$@Sus^Eo9pAL8r@-25bZn;N5W^X#VWvzr)Inx@ZDVf2~KZ^F#gZoBQApigX diff --git a/source/a3_exile_occupation/config.sqf b/source/a3_exile_occupation/config.sqf index 9e6f5b0..5a1a9d1 100644 --- a/source/a3_exile_occupation/config.sqf +++ b/source/a3_exile_occupation/config.sqf @@ -96,6 +96,8 @@ SC_occupyTraderDetails = [ // Occupy Static Setup ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +SC_staticIgnoreNearbyPlayers = false;// Spawn even if players are nearby +SC_staticIgnoreAICount = false;// Ignore the AI count for Static AI Spawns SC_staticBandits = [ //[[pos],ai count,radius,search buildings] ]; diff --git a/source/a3_exile_occupation/scripts/functions/fnc_spawnStatics.sqf b/source/a3_exile_occupation/scripts/functions/fnc_spawnStatics.sqf index 57b649e..b6fdb8d 100644 --- a/source/a3_exile_occupation/scripts/functions/fnc_spawnStatics.sqf +++ b/source/a3_exile_occupation/scripts/functions/fnc_spawnStatics.sqf @@ -41,7 +41,7 @@ if(_side == "survivor") then { _currentSide = SC_SurvivorSide }; // Don't spawn additional AI if there are players in range - if([_spawnPosition, 250] call ExileClient_util_world_isAlivePlayerInRange) exitwith + if(!(SC_staticIgnoreNearbyPlayers) && ([_spawnPosition, 250] call ExileClient_util_world_isAlivePlayerInRange)) exitwith { _okToSpawn = false; if(_debug) then diff --git a/source/a3_exile_occupation/scripts/occupationStatic.sqf b/source/a3_exile_occupation/scripts/occupationStatic.sqf index aab0900..f08f2e7 100644 --- a/source/a3_exile_occupation/scripts/occupationStatic.sqf +++ b/source/a3_exile_occupation/scripts/occupationStatic.sqf @@ -29,7 +29,7 @@ if(diag_fps < _minFPS) exitWith _aiActive = { !isPlayer _x } count allunits; -if(_aiActive > _maxAIcount) exitWith +if(!(SC_staticIgnoreAICount) && (_aiActive > _maxAIcount)) exitWith { _logDetail = format ["[OCCUPATION Static]:: %1 active AI, so not spawning AI this time",_aiActive]; [_logDetail] call SC_fnc_log;