diff --git a/@ExileServer/addons/a3_dms/scripts/fn_OnKilled.sqf b/@ExileServer/addons/a3_dms/scripts/fn_OnKilled.sqf index 2bd99fc..67128fd 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_OnKilled.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_OnKilled.sqf @@ -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; diff --git a/Pre-Packed PBO/a3_dms.pbo b/Pre-Packed PBO/a3_dms.pbo index a41fe15..863eafb 100644 Binary files a/Pre-Packed PBO/a3_dms.pbo and b/Pre-Packed PBO/a3_dms.pbo differ diff --git a/README.md b/README.md index 4e454e9..dcc50cb 100644 --- a/README.md +++ b/README.md @@ -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.