Bodies should clear if configured to do so

It was a silly mistake
This commit is contained in:
eraser1 2015-09-07 19:13:50 -05:00
parent c03fda44be
commit 31890b0015
3 changed files with 15 additions and 0 deletions

View File

@ -42,6 +42,17 @@ if (isPlayer _player) then
};
} forEach allUnits;
};
if (DMS_clear_AI_body && {(random 100) <= DMS_clear_AI_body_chance}) then
{
removeAllWeapons _unit;
removeAllAssignedItems _unit;
removeAllItemsWithMagazines _unit;
removeHeadgear _unit;
removeUniform _unit;
removeVest _unit;
removeBackpack _unit;
};
}
else
{
@ -60,6 +71,7 @@ else
removeAllWeapons _unit;
removeAllAssignedItems _unit;
removeAllItemsWithMagazines _unit;
removeHeadgear _unit;
removeUniform _unit;
removeVest _unit;
removeBackpack _unit;

Binary file not shown.

View File

@ -75,6 +75,9 @@ if (!hasInterface && !isServer) then
## Changelog:
#### September 7, 2015 (7:00 PM CST-America):
* AI bodies should now be cleared if configured to do so with "DMS_clear_AI_body" and "DMS_clear_AI_body_chance".
#### September 5, 2015 (1:00 AM CST-America):
* Created new function "DMS_fnc_IsPlayerNearby" to replace "ExileServer_util_position_isPlayerNearby".
* Fix IR Strobes spawning inside the crate and not appearing.