mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Add SecondaryWeapon to TraderArray (untested !!!)
This commit is contained in:
parent
001c49f148
commit
c5abeed9f7
@ -25,6 +25,9 @@ if (alive _target) then {
|
||||
if (primaryWeapon player != "") then {
|
||||
EPOCH_NpcTradePlayerItems pushback primaryWeapon player;
|
||||
};
|
||||
if (secondaryWeapon player != "") then {
|
||||
EPOCH_NpcTradePlayerItems pushback secondaryWeapon player;
|
||||
};
|
||||
if (count backpackItems player == 0 && count backpackmagazines player == 0 && backpack player != "") then {
|
||||
EPOCH_NpcTradePlayerItems pushback backpack player;
|
||||
};
|
||||
|
@ -45,7 +45,7 @@ if (alive _this) then {
|
||||
_added = true;
|
||||
}
|
||||
else {
|
||||
if (_item == primaryweapon player) then {
|
||||
if (_item in [primaryweapon player, secondaryweapon player]) then {
|
||||
player removeweapon _item;
|
||||
_arrayIn pushBack [_item,_rounds];
|
||||
_added = true;
|
||||
|
Loading…
Reference in New Issue
Block a user