mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix throwing from map screen - global XEH (#4449)
* Fix throwing from map screen - global XEH * Fix Capitalization
This commit is contained in:
parent
b7dfdc6c84
commit
f23e5d33fc
@ -12,6 +12,6 @@ class Extended_PreInit_EventHandlers {
|
|||||||
|
|
||||||
class Extended_PostInit_EventHandlers {
|
class Extended_PostInit_EventHandlers {
|
||||||
class ADDON {
|
class ADDON {
|
||||||
clientInit = QUOTE(call COMPILE_FILE(XEH_postInitClient));
|
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
// Fired XEH
|
||||||
|
[QGVAR(throwFiredXEH), FUNC(throwFiredXEH)] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
// Exit on HC
|
// Exit on HC
|
||||||
if (!hasInterface) exitWith {};
|
if (!hasInterface) exitWith {};
|
||||||
|
|
||||||
@ -63,6 +66,13 @@ GVAR(ammoMagLookup) = call CBA_fnc_createNamespace;
|
|||||||
[_this select 1, "Player changed"] call FUNC(exitThrowMode);
|
[_this select 1, "Player changed"] call FUNC(exitThrowMode);
|
||||||
}] call CBA_fnc_addPlayerEventhandler;
|
}] call CBA_fnc_addPlayerEventhandler;
|
||||||
|
|
||||||
|
["visibleMap", {
|
||||||
|
if (visibleMap && {ACE_player getVariable [QGVAR(inHand), false]}) then {
|
||||||
|
[ACE_player, "Opened Map"] call FUNC(exitThrowMode);
|
||||||
|
};
|
||||||
|
}] call CBA_fnc_addPlayerEventhandler;
|
||||||
|
|
||||||
|
|
||||||
["ace_interactMenuOpened", {
|
["ace_interactMenuOpened", {
|
||||||
// Exit if advanced throwing is disabled (pick up only supports advanced throwing)
|
// Exit if advanced throwing is disabled (pick up only supports advanced throwing)
|
||||||
if (!GVAR(enabled)) exitWith {};
|
if (!GVAR(enabled)) exitWith {};
|
||||||
@ -80,9 +90,6 @@ GVAR(ammoMagLookup) = call CBA_fnc_createNamespace;
|
|||||||
}] call CBA_fnc_addEventHandler;
|
}] call CBA_fnc_addEventHandler;
|
||||||
|
|
||||||
|
|
||||||
// Fired XEH
|
|
||||||
[QGVAR(throwFiredXEH), FUNC(throwFiredXEH)] call CBA_fnc_addEventHandler;
|
|
||||||
|
|
||||||
// Set last thrown time on Vanilla Throwing and Advanced Throwing
|
// Set last thrown time on Vanilla Throwing and Advanced Throwing
|
||||||
["ace_firedPlayer", {
|
["ace_firedPlayer", {
|
||||||
if (_weapon == "Throw") then {
|
if (_weapon == "Throw") then {
|
Loading…
Reference in New Issue
Block a user