Units on / under water spawn with proper gear.

This commit is contained in:
Chris Cardozo 2020-09-29 23:58:24 -04:00
parent d7ff9bc275
commit a23a9aad3c
2 changed files with 13 additions and 2 deletions

View File

@ -186,7 +186,12 @@ for "_i" from 1 to (count blck_activeMissionsList) do
if !(_scubaGroupParameters isEqualTo []) then
{
_temp = [_coords, _minNoAI,_maxNoAI,_noAIGroups,_scubaGroupParameters,_difficulty,_uniforms,_headGear,_vests,_backpacks,_weaponList,_sideArms,_isScubaMission] call blck_fnc_spawnMissionAI;
//_umsUniforms = blck_UMS_uniforms;
//_umsHeadgear = blck_UMS_headgear;
//_umsWeapons = blck_UMS_weapons;
//_umsVests = blck_UMS_vests;
_temp = [_coords, _minNoAI,_maxNoAI,_noAIGroups,_scubaGroupParameters,_difficulty,blck_UMS_uniforms,blck_UMS_headgear,blck_UMS_vests,_backpacks,blck_UMS_weapons,_sideArms,true] call blck_fnc_spawnMissionAI;
_temp params["_ai","_abort"];
if (_abort) throw 1;
_blck_AllMissionAI append (_ai);

View File

@ -63,7 +63,13 @@ if (_scuba) then
_skin = "";
_counter = 1;
_unit forceAddUniform (selectRandom _uniforms);
if (surfaceIsWater (getPos _unit)) then
{
_uniforms = blck_UMS_uniforms;
_headGear = blck_UMS_headgear;
_weaponList = blck_UMS_weapons;
_vests = blck_UMS_vests;
};
//Sets AI Tactics
_unit enableAI "ALL";