Removed weapons from NPCs on death
Edited CreatePBOs.bat to create a3eai files.
This commit is contained in:
parent
6e0f1c440d
commit
4486beeb78
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user