mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Allow interaction menu while sitting
This commit is contained in:
parent
f9d292e9c2
commit
951f9d32c3
@ -31,7 +31,7 @@ addMissionEventHandler ["Draw3D", DFUNC(render)];
|
|||||||
["ACE3 Common", QGVAR(InteractKey), (localize LSTRING(InteractKey)),
|
["ACE3 Common", QGVAR(InteractKey), (localize LSTRING(InteractKey)),
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
if !([ACE_player, objNull, ["isNotInside","isNotDragging", "isNotCarrying", "isNotSwimming", "notOnMap", "isNotEscorting", "isNotSurrendering"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
if !([ACE_player, objNull, ["isNotInside","isNotDragging", "isNotCarrying", "isNotSwimming", "notOnMap", "isNotEscorting", "isNotSurrendering", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||||
// Statement
|
// Statement
|
||||||
[0] call FUNC(keyDown)
|
[0] call FUNC(keyDown)
|
||||||
},{[0,false] call FUNC(keyUp)},
|
},{[0,false] call FUNC(keyUp)},
|
||||||
@ -40,7 +40,7 @@ addMissionEventHandler ["Draw3D", DFUNC(render)];
|
|||||||
["ACE3 Common", QGVAR(SelfInteractKey), (localize LSTRING(SelfInteractKey)),
|
["ACE3 Common", QGVAR(SelfInteractKey), (localize LSTRING(SelfInteractKey)),
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
if !([ACE_player, objNull, ["isNotInside","isNotDragging", "isNotCarrying", "isNotSwimming", "notOnMap", "isNotEscorting", "isNotSurrendering"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
if !([ACE_player, objNull, ["isNotInside","isNotDragging", "isNotCarrying", "isNotSwimming", "notOnMap", "isNotEscorting", "isNotSurrendering", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||||
// Statement
|
// Statement
|
||||||
[1] call FUNC(keyDown)
|
[1] call FUNC(keyDown)
|
||||||
},{[1,false] call FUNC(keyUp)},
|
},{[1,false] call FUNC(keyUp)},
|
||||||
|
@ -122,7 +122,7 @@ _actions = if (_isMan) then {
|
|||||||
// Dummy statement so it's not collapsed when there's no available actions
|
// Dummy statement so it's not collapsed when there's no available actions
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
{[ACE_player, _target, ["isNotInside","isNotDragging", "isNotCarrying", "isNotSwimming", "notOnMap", "isNotEscorting", "isNotSurrendering"]] call EFUNC(common,canInteractWith)},
|
{[ACE_player, _target, ["isNotInside","isNotDragging", "isNotCarrying", "isNotSwimming", "notOnMap", "isNotEscorting", "isNotSurrendering", "isNotSitting"]] call EFUNC(common,canInteractWith)},
|
||||||
{},
|
{},
|
||||||
{},
|
{},
|
||||||
"Spine3",
|
"Spine3",
|
||||||
|
@ -26,6 +26,7 @@ class CfgVehicles {
|
|||||||
class GVAR(Stand) {
|
class GVAR(Stand) {
|
||||||
displayName = CSTRING(Stand);
|
displayName = CSTRING(Stand);
|
||||||
condition = QUOTE(_player call FUNC(canStand));
|
condition = QUOTE(_player call FUNC(canStand));
|
||||||
|
exceptions[] = {"isNotSitting"};
|
||||||
statement = QUOTE(_player call FUNC(stand));
|
statement = QUOTE(_player call FUNC(stand));
|
||||||
priority = 0;
|
priority = 0;
|
||||||
icon = PATHTOF(UI\stand_ca.paa);
|
icon = PATHTOF(UI\stand_ca.paa);
|
||||||
|
Loading…
Reference in New Issue
Block a user