Launchers and rounds now removed from ai corpses.

This commit is contained in:
Chris Cardozo 2020-11-01 10:18:22 -05:00
parent 1e6d4aeabe
commit dc82f9a362
2 changed files with 11 additions and 2 deletions

View File

@ -13,9 +13,15 @@
params["_unit"]; // = _this select 0;
private _loadout = _unit getVariable["launcher",[[],[]]];
//diag_log format["_removeLaunchers: _loadout = %1",_loadout];
private _mags = magazines _unit;
//diag_log format["_removeLaunchers: _mags = %1",_mags];
{
unit removeMagazineGlobal _x;
if (_forEachIndex > 0) then
{
//diag_log format["_removeLaunchers: _x = %1",_x];
_unit removeMagazines _x;
};
} forEach (_loadout select 1);
private _launcher = _loadout select 0;

View File

@ -70,6 +70,8 @@ _unit allowDammage true;
_unit setBehaviour "COMBAT";
_unit setunitpos "AUTO";
/*
//
if (surfaceIsWater (getPos _unit)) then
{
_uniforms = blck_UMS_uniforms;
@ -77,6 +79,7 @@ if (surfaceIsWater (getPos _unit)) then
_weaponList = blck_UMS_weapons;
_vests = blck_UMS_vests;
};
*/
_unit forceAddUniform (selectRandom _uniforms);
if !(_headGear isEqualTo []) then
{