Skip to content

Commit 431f3ae

Browse files
committed
Improved AI Spawn and Fix Surrender punishment
Fixed: Wounded enemy combatants would be counted as civilians upon surrendering and player would be punished for their death Improved: Enemies now spawn in a wider area rekterakathom@fbb13ce
1 parent 786872d commit 431f3ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Missionframework/functions/fn_spawnRegularSquad.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private _corrected_amount = round ((count _classnames) * ([] call KPLIB_fnc_getO
4444
private _grp = createGroup [KPLIB_side_enemy, true];
4545
{
4646
if (_forEachIndex < _corrected_amount) then {
47-
[_x, _spawnPos, _grp] call KPLIB_fnc_createManagedUnit;
47+
[_x, _spawnPos, _grp, "PRIVATE", 10] call KPLIB_fnc_createManagedUnit;
4848
};
4949
} forEach _classnames;
5050

Missionframework/scripts/server/ai/prisonner_ai.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if ((_unit isKindOf "Man") && (alive _unit) && (side group _unit == KPLIB_side_e
2222
_unit removeItem "NVGoggles_INDEP";
2323
_unit setUnitPos "UP";
2424
sleep 1;
25-
private _grp = createGroup [KPLIB_side_civilian, true];
25+
private _grp = createGroup [KPLIB_side_enemy, true];
2626
[_unit] joinSilent _grp;
2727
if (KPLIB_ace) then {
2828
["ace_captives_setSurrendered", [_unit, true], _unit] call CBA_fnc_targetEvent;

0 commit comments

Comments
 (0)