Missing ACE function for civ informant

This commit is contained in:
Christian 2018-04-05 13:10:14 +02:00
parent 65b4d60817
commit 7b65c5332a
No known key found for this signature in database
GPG Key ID: 2D3FEE0019ED51F5
2 changed files with 16 additions and 7 deletions

View File

@ -27,11 +27,15 @@ while {true} do {
_informant setPos (selectRandom (_house buildingPos -1));
_informant setUnitPos "UP";
sleep 1;
_informant disableAI "ANIM";
_informant disableAI "MOVE";
_informant playmove "AmovPercMstpSnonWnonDnon_AmovPercMstpSsurWnonDnon";
sleep 2;
_informant setCaptive true;
if (KP_liberation_ace) then {
[_informant, true] call ACE_captives_fnc_setSurrendered;
} else {
_informant disableAI "ANIM";
_informant disableAI "MOVE";
_informant playmove "AmovPercMstpSnonWnonDnon_AmovPercMstpSsurWnonDnon";
sleep 2;
_informant setCaptive true;
};
if (KP_liberation_civinfo_debug > 0) then {private _text = format ["[KP LIBERATION] [CIVINFO] Informant %1 spawned on: %2 - Position: %3", name _informant, debug_source, getPos _informant];_text remoteExec ["diag_log",2];};
@ -53,8 +57,12 @@ while {true} do {
if (_waiting_time > 0) then {
if (alive _informant) then {
_informant enableAI "ANIM";
_informant enableAI "MOVE";
if (KP_liberation_ace) then {
[_informant, false] call ACE_captives_fnc_setSurrendered;
} else {
_informant enableAI "ANIM";
_informant enableAI "MOVE";
};
sleep 1;
[_informant] remoteExec ["civinfo_escort"];
} else {

View File

@ -172,6 +172,7 @@ class Missions
* Tweaked: Guerilla forces event chances, strength gain values and unit amounts.
* Fixed: Placement of buildings after save/load. Thanks to [Cre8or](https://github.com/Cre8or)
* Fixed: Sometimes helicopters exploded when spawning on the deck of the USS Freedom.
* Fixed: Players couldn't ziptie the civilian informant, if playing with ACE.
### 0.963 (05th January 2018)
* Added: Some missing RHS vehicles for the ACE medical system.