mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #2515 from acemod/340fixinventoryeh
fix playerInventoryChanged eventhandler triggers when current weapon is changed fix #2513
This commit is contained in:
commit
450ee98004
@ -18,7 +18,6 @@
|
|||||||
* 14-16: pistol (String, Array, Array)
|
* 14-16: pistol (String, Array, Array)
|
||||||
* 17: map, compass, watch, etc. (Array)
|
* 17: map, compass, watch, etc. (Array)
|
||||||
* 18: binocluar (String)
|
* 18: binocluar (String)
|
||||||
* 19: active weapon, active muzzle, active weaponMode (Array)
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
@ -35,8 +34,7 @@ if (isNull _unit) exitWith {[
|
|||||||
"", ["","","",""], [],
|
"", ["","","",""], [],
|
||||||
"", ["","","",""], [],
|
"", ["","","",""], [],
|
||||||
[],
|
[],
|
||||||
"",
|
""
|
||||||
["","",""]
|
|
||||||
]};
|
]};
|
||||||
|
|
||||||
[
|
[
|
||||||
@ -49,6 +47,5 @@ if (isNull _unit) exitWith {[
|
|||||||
secondaryWeapon _unit, secondaryWeaponItems _unit, secondaryWeaponMagazine _unit,
|
secondaryWeapon _unit, secondaryWeaponItems _unit, secondaryWeaponMagazine _unit,
|
||||||
handgunWeapon _unit, handgunItems _unit, handgunMagazine _unit,
|
handgunWeapon _unit, handgunItems _unit, handgunMagazine _unit,
|
||||||
assignedItems _unit,
|
assignedItems _unit,
|
||||||
binocular _unit,
|
binocular _unit
|
||||||
[currentWeapon _unit, currentMuzzle _unit, currentWeaponMode _unit]
|
|
||||||
]
|
]
|
||||||
|
@ -25,6 +25,7 @@ if (ACE_player == _killedUnit) then {
|
|||||||
|
|
||||||
if (GVAR(SavePreDeathGear)) then {
|
if (GVAR(SavePreDeathGear)) then {
|
||||||
GVAR(unitGear) = [_killedUnit] call EFUNC(common,getAllGear);
|
GVAR(unitGear) = [_killedUnit] call EFUNC(common,getAllGear);
|
||||||
|
GVAR(unitGear) pushBack [currentWeapon _killedUnit, currentMuzzle _killedUnit, currentWeaponMode _killedUnit];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user