Improve Reload TakeEH (#6242)

* Improve Reload TakeEH

* Simplify explosives take EH
This commit is contained in:
Dedmen Miller 2018-04-11 15:53:23 +02:00 committed by PabstMirror
parent 7634f4657b
commit 3ca8105e9e
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class Extended_Killed_EventHandlers {
class Extended_Take_EventHandlers { class Extended_Take_EventHandlers {
class CAManBase { class CAManBase {
GVAR(takeHandler) = QUOTE([ARR_3(_this select 0, _this select 1, _this select 2)] call FUNC(onInventoryChanged)); GVAR(takeHandler) = QUOTE(call FUNC(onInventoryChanged));
}; };
}; };
class Extended_Put_EventHandlers { class Extended_Put_EventHandlers {

View File

@ -20,7 +20,7 @@ class Extended_PostInit_EventHandlers {
class Extended_Take_EventHandlers { class Extended_Take_EventHandlers {
class CAManBase { class CAManBase {
class ACE_AmmoIndicatorReload { class ACE_AmmoIndicatorReload {
clientTake = QUOTE(if (_this select 0 == ACE_player && {GVAR(DisplayText)} && {(_this select 1) in [ARR_3(uniformContainer (_this select 0), vestContainer (_this select 0), backpackContainer (_this select 0))]} && {_this select 2 == currentMagazine (_this select 0)}) then {[ARR_2(_this select 0, vehicle (_this select 0))] call FUNC(displayAmmo)};); clientTake = QUOTE(params ['_unit']; if (_unit == ACE_player && {GVAR(DisplayText)} && {(_this select 1) in [ARR_3(uniformContainer _unit, vestContainer _unit, backpackContainer _unit)]} && {_this select 2 == currentMagazine _unit}) then {[ARR_2(_unit, vehicle _unit)] call FUNC(displayAmmo)};);
}; };
}; };
}; };