From c798a0a7398d8fc7ae5f96faa98e9abcf4b40492 Mon Sep 17 00:00:00 2001 From: Moritz Schmidt Date: Mon, 24 Apr 2023 11:41:46 +0200 Subject: [PATCH] fix #190 : disable BIS randomization for civs --- addons/lifecycle/functions/fnc_spawnCivilian.sqf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/lifecycle/functions/fnc_spawnCivilian.sqf b/addons/lifecycle/functions/fnc_spawnCivilian.sqf index e6c93b6..7594272 100644 --- a/addons/lifecycle/functions/fnc_spawnCivilian.sqf +++ b/addons/lifecycle/functions/fnc_spawnCivilian.sqf @@ -7,6 +7,8 @@ params [ ["_civClasses", [], [[]]] ]; +ISNILS(GVAR(enableBISRandomization), false); + if (_civClasses isEqualTo []) then { _civClasses = call FUNC(config_getCivClasses); }; @@ -15,6 +17,8 @@ private _civ = _group createUnit [selectRandom _civClasses, _pos, [], 0, "NONE"] GVAR(localCivs) = GVAR(localCivs) + [_civ]; + +_civ setVariable ["BIS_enableRandomization", GVAR(enableBISRandomization)]; _civ setVariable ["grad_civs_primaryTask", _primaryTask, true]; _civ setVariable ["acex_headless_blacklist", true, true]; _civ setVariable ["lambs_danger_disableAI", true, true];