Skip to content

Commit

Permalink
Improved AI Spawn and Fix Surrender punishment
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Apricot-ale committed Mar 2, 2023
1 parent 83b78b7 commit efd5a4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Missionframework/functions/fn_spawnRegularSquad.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
File: fn_spawnRegularSquad.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2019-12-03
Last Update: 2020-05-10
Last Update: 2023-02-03
License: MIT License - http://www.opensource.org/licenses/MIT
Description:
Expand Down Expand Up @@ -44,7 +44,7 @@ private _corrected_amount = round ((count _classnames) * ([] call KPLIB_fnc_getO
private _grp = createGroup [KPLIB_side_enemy, true];
{
if (_forEachIndex < _corrected_amount) then {
[_x, _spawnPos, _grp] call KPLIB_fnc_createManagedUnit;
[_x, _spawnPos, _grp, "PRIVATE", 10] call KPLIB_fnc_createManagedUnit;
};
} forEach _classnames;

Expand Down
2 changes: 1 addition & 1 deletion Missionframework/scripts/server/ai/prisonner_ai.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if ((_unit isKindOf "Man") && (alive _unit) && (side group _unit == KPLIB_side_e
_unit removeItem "NVGoggles_INDEP";
_unit setUnitPos "UP";
sleep 1;
private _grp = createGroup [KPLIB_side_civilian, true];
private _grp = createGroup [KPLIB_side_enemy, true];
[_unit] joinSilent _grp;
if (KPLIB_ace) then {
["ace_captives_setSurrendered", [_unit, true], _unit] call CBA_fnc_targetEvent;
Expand Down

0 comments on commit efd5a4a

Please sign in to comment.