Removed weapons from NPCs on death

Edited CreatePBOs.bat to create a3eai files.
This commit is contained in:
Zepheris 2020-11-01 08:49:58 -07:00
parent 6e0f1c440d
commit 4486beeb78
2 changed files with 7 additions and 4 deletions

View File

@ -7,8 +7,8 @@ cd d:\Git_Repo\Arma3_Repo\Server
REM Create @A3EAI PBO
:: %PBO% -pack .\@A3EAI\addons\a3eai_config .\@A3EAI\addons\a3eai_config.pbo
:: %PBO% -pack .\@A3EAI\addons\a3eai .\@A3EAI\addons\a3eai.pbo
%PBO% -pack .\@A3EAI\addons\a3eai_config .\@A3EAI\addons\a3eai_config.pbo
%PBO% -pack .\@A3EAI\addons\a3eai .\@A3EAI\addons\a3eai.pbo
REM Create a3_vemf_reloaded
:: %PBO% -pack .\@epochhive\addons\a3_vemf_reloaded .\@epochhive\addons\a3_vemf_reloaded.pbo

View File

@ -19,13 +19,16 @@ _toolLoot = [];
_loadout = _unit getVariable ["loadout",[[],[]]];
_primaryWeapon = [_loadout select 0,0,""] call A3EAI_param;
//addition by Zepheris
_unit removeWeapon _primaryWeapon;
//end addition by Zepheris
//Generate a pistol if one wasn't assigned with loadout script.
if ((getNumber (configFile >> "CfgWeapons" >> _primaryWeapon >> "type")) != 2) then {
_pistol = A3EAI_pistolList call A3EAI_selectRandom;
_magazine = getArray (configFile >> "CfgWeapons" >> _pistol >> "magazines") select 0;
_unit addMagazine _magazine;
_unit addWeapon _pistol;
//_unit addMagazine _magazine;
//_unit addWeapon _pistol;
if (A3EAI_debugLevel > 1) then {
_weaponLoot pushBack _pistol;
_weaponLoot pushBack _magazine