Skip to content

Commit efd5a4a

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 83b78b7 commit efd5a4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Missionframework/functions/fn_spawnRegularSquad.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
File: fn_spawnRegularSquad.sqf
33
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
44
Date: 2019-12-03
5-
Last Update: 2020-05-10
5+
Last Update: 2023-02-03
66
License: MIT License - http://www.opensource.org/licenses/MIT
77
88
Description:
@@ -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)