Skip to content

Commit

Permalink
fix #190 : disable BIS randomization for civs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fusselwurm authored Apr 24, 2023
1 parent 7ae6688 commit c798a0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/lifecycle/functions/fnc_spawnCivilian.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ params [
["_civClasses", [], [[]]]
];

ISNILS(GVAR(enableBISRandomization), false);

if (_civClasses isEqualTo []) then {
_civClasses = call FUNC(config_getCivClasses);
};
Expand All @@ -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];
Expand Down

0 comments on commit c798a0a

Please sign in to comment.