mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
replace canInteract with canInteractWith
This commit is contained in:
parent
0064f5739c
commit
b5f307919e
@ -161,6 +161,3 @@ _vehicle setFuel _fuelLevel;
|
|||||||
["displayTextPicture", FUNC(displayTextPicture)] call FUNC(addEventhandler);
|
["displayTextPicture", FUNC(displayTextPicture)] call FUNC(addEventhandler);
|
||||||
|
|
||||||
["notOnMap", {!visibleMap}] call FUNC(addCanInteractWithConditon);
|
["notOnMap", {!visibleMap}] call FUNC(addCanInteractWithConditon);
|
||||||
|
|
||||||
//@todo remove obsolete
|
|
||||||
GVAR(canInteract) = {true};
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* 3: CODE or STRING - On Failure: Code called or STRING raised as event.
|
* 3: CODE or STRING - On Failure: Code called or STRING raised as event.
|
||||||
* 4: STRING - (Optional) Localized Title
|
* 4: STRING - (Optional) Localized Title
|
||||||
* 5: CODE - (Optional) Code to check each frame
|
* 5: CODE - (Optional) Code to check each frame
|
||||||
* 6: ARRAY - (Optional) Exceptions for checking EGVAR(common,canInteract)
|
* 6: ARRAY - (Optional) Exceptions for checking EGVAR(common,canInteractWith)
|
||||||
*
|
*
|
||||||
* Return value:
|
* Return value:
|
||||||
* Nothing
|
* Nothing
|
||||||
@ -62,7 +62,7 @@ _perFrameFunction = {
|
|||||||
if (!([_args, _elapsedTime, _totalTime, _errorCode] call _condition)) then {
|
if (!([_args, _elapsedTime, _totalTime, _errorCode] call _condition)) then {
|
||||||
_errorCode = 3;
|
_errorCode = 3;
|
||||||
} else {
|
} else {
|
||||||
if (!(_exceptions call EGVAR(common,canInteract))) then {
|
if (!([_player, objNull, _exceptions] call EGVAR(common,canInteractWith))) then {
|
||||||
_errorCode = 4;
|
_errorCode = 4;
|
||||||
} else {
|
} else {
|
||||||
if (_elapsedTime >= _totalTime) then {
|
if (_elapsedTime >= _totalTime) then {
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
["ACE3", QGVAR(lazeTarget), localize "STR_ACE_FCS_LaseTarget",
|
["ACE3", QGVAR(lazeTarget), localize "STR_ACE_FCS_LaseTarget",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !((!GVAR(enabled) && FUNC(canUseFCS)) || FUNC(canUseRangefinder)) exitWith {false};
|
if !((!GVAR(enabled) && FUNC(canUseFCS)) || FUNC(canUseRangefinder)) exitWith {false};
|
||||||
|
|
||||||
@ -21,8 +20,7 @@
|
|||||||
GVAR(isDownStateKey1) = false;
|
GVAR(isDownStateKey1) = false;
|
||||||
|
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(GVAR(enabled) && FUNC(canUseFCS)) exitWith {false};
|
if !(GVAR(enabled) && FUNC(canUseFCS)) exitWith {false};
|
||||||
|
|
||||||
@ -35,8 +33,7 @@
|
|||||||
["ACE3", QGVAR(adjustRangeUp), localize "STR_ACE_FCS_AdjustRangeUp",
|
["ACE3", QGVAR(adjustRangeUp), localize "STR_ACE_FCS_AdjustRangeUp",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(call FUNC(canUseRangefinder) || FUNC(canUseFCS)) exitWith {false};
|
if !(call FUNC(canUseRangefinder) || FUNC(canUseFCS)) exitWith {false};
|
||||||
|
|
||||||
@ -50,8 +47,7 @@
|
|||||||
["ACE3", QGVAR(adjustRangDown), localize "STR_ACE_FCS_AdjustRangeDown",
|
["ACE3", QGVAR(adjustRangDown), localize "STR_ACE_FCS_AdjustRangeDown",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(call FUNC(canUseRangefinder) || FUNC(canUseFCS)) exitWith {false};
|
if !(call FUNC(canUseRangefinder) || FUNC(canUseFCS)) exitWith {false};
|
||||||
|
|
||||||
|
@ -13,8 +13,7 @@ GVAR(flashbangPPEffectCC) ppEffectForceInNVG true;
|
|||||||
["ACE3", QGVAR(switchGrenadeMode), localize "STR_ACE_Grenades_SwitchGrenadeMode",
|
["ACE3", QGVAR(switchGrenadeMode), localize "STR_ACE_Grenades_SwitchGrenadeMode",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [QEGVAR(captives,isNotEscorting)];
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if (!([ACE_player] call EFUNC(common,canUseWeapon))) exitWith {false};
|
if (!([ACE_player] call EFUNC(common,canUseWeapon))) exitWith {false};
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ _recurseFnc = {
|
|||||||
if (_condition == "") then {_condition = "true"};
|
if (_condition == "") then {_condition = "true"};
|
||||||
|
|
||||||
// Add canInteract (including exceptions) and canInteractWith to condition
|
// Add canInteract (including exceptions) and canInteractWith to condition
|
||||||
_condition = _condition + format [QUOTE( && {%1 call EGVAR(common,canInteract)} && {[ARR_2(ACE_player, _target)] call EFUNC(common,canInteractWith)} ), getArray (_entryCfg >> "exceptions")];
|
_condition = _condition + format [QUOTE( && {[ARR_3(ACE_player, _target, %1)] call EGVAR(common,canInteractWith)} ), getArray (_entryCfg >> "exceptions")];
|
||||||
|
|
||||||
_showDisabled = (getNumber (_entryCfg >> "showDisabled")) > 0;
|
_showDisabled = (getNumber (_entryCfg >> "showDisabled")) > 0;
|
||||||
_enableInside = (getNumber (_entryCfg >> "enableInside")) > 0;
|
_enableInside = (getNumber (_entryCfg >> "enableInside")) > 0;
|
||||||
|
@ -43,7 +43,7 @@ _recurseFnc = {
|
|||||||
if (_condition == "") then {_condition = "true"};
|
if (_condition == "") then {_condition = "true"};
|
||||||
|
|
||||||
// Add canInteract (including exceptions) and canInteractWith to condition
|
// Add canInteract (including exceptions) and canInteractWith to condition
|
||||||
_condition = _condition + format [QUOTE( && {%1 call EGVAR(common,canInteract)} && {[ARR_2(ACE_player, _target)] call EFUNC(common,canInteractWith)} ), getArray (_entryCfg >> "exceptions")];
|
_condition = _condition + format [QUOTE( && {[ARR_3(ACE_player, _target, %1)] call EGVAR(common,canInteractWith)} ), getArray (_entryCfg >> "exceptions")];
|
||||||
|
|
||||||
_showDisabled = (getNumber (_entryCfg >> "showDisabled")) > 0;
|
_showDisabled = (getNumber (_entryCfg >> "showDisabled")) > 0;
|
||||||
_enableInside = (getNumber (_entryCfg >> "enableInside")) > 0;
|
_enableInside = (getNumber (_entryCfg >> "enableInside")) > 0;
|
||||||
|
@ -19,8 +19,7 @@ GVAR(isOpeningDoor) = false;
|
|||||||
["ACE3", QGVAR(openDoor), localize "STR_ACE_Interaction_OpenDoor",
|
["ACE3", QGVAR(openDoor), localize "STR_ACE_Interaction_OpenDoor",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if (GVAR(isOpeningDoor) || {[2] call FUNC(getDoor) select 1 == ''}) exitWith {false};
|
if (GVAR(isOpeningDoor) || {[2] call FUNC(getDoor) select 1 == ''}) exitWith {false};
|
||||||
|
|
||||||
@ -40,8 +39,7 @@ GVAR(isOpeningDoor) = false;
|
|||||||
["ACE3", QGVAR(tapShoulder), localize "STR_ACE_Interaction_TapShoulder",
|
["ACE3", QGVAR(tapShoulder), localize "STR_ACE_Interaction_TapShoulder",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player, cursorTarget] call FUNC(canTapShoulder)) exitWith {false};
|
if !([ACE_player, cursorTarget] call FUNC(canTapShoulder)) exitWith {false};
|
||||||
|
|
||||||
@ -55,8 +53,7 @@ GVAR(isOpeningDoor) = false;
|
|||||||
["ACE3", QGVAR(modifierKey), localize "STR_ACE_Interaction_ModifierKey",
|
["ACE3", QGVAR(modifierKey), localize "STR_ACE_Interaction_ModifierKey",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = ["ACE_Drag_isNotDragging"];
|
if !([ACE_player, objNull, ["isNotDragging"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
|
|
||||||
// Statement
|
// Statement
|
||||||
ACE_Modifier = 1;
|
ACE_Modifier = 1;
|
||||||
|
@ -47,7 +47,7 @@ playSound "ACE_Sound_Click";
|
|||||||
!GVAR(isOpeningDoor) || {getPosASL ACE_player distance _position > 1}
|
!GVAR(isOpeningDoor) || {getPosASL ACE_player distance _position > 1}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!_usedMouseWheel && {time < _time} && {[] call EGVAR(common,canInteract)}) then {
|
if (!_usedMouseWheel && {time < _time} && {[ACE_player, objNull, []] call EGVAR(common,canInteractWith)}) then {
|
||||||
_phase = [0, 1] select (_house animationPhase (_animations select 0) < 0.5);
|
_phase = [0, 1] select (_house animationPhase (_animations select 0) < 0.5);
|
||||||
|
|
||||||
{_house animate [_x, _phase]} forEach _animations;
|
{_house animate [_x, _phase]} forEach _animations;
|
||||||
|
@ -21,8 +21,7 @@
|
|||||||
["ACE3", QGVAR(climb), localize "STR_ACE_Movement_Climb",
|
["ACE3", QGVAR(climb), localize "STR_ACE_Movement_Climb",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if (ACE_player != (vehicle ACE_player)) exitWith {false};
|
if (ACE_player != (vehicle ACE_player)) exitWith {false};
|
||||||
|
|
||||||
|
@ -10,8 +10,7 @@ if (!hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(showNameTags), localize "STR_ACE_NameTags_ShowNames",
|
["ACE3", QGVAR(showNameTags), localize "STR_ACE_NameTags_ShowNames",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
|
|
||||||
// Statement
|
// Statement
|
||||||
GVAR(ShowNamesTime) = time;
|
GVAR(ShowNamesTime) = time;
|
||||||
|
@ -40,8 +40,7 @@ GVAR(ppEffectMuzzleFlash) ppEffectCommit 0;
|
|||||||
["ACE3", QGVAR(IncreaseNVGBrightness), localize "STR_ACE_NightVision_IncreaseNVGBrightness",
|
["ACE3", QGVAR(IncreaseNVGBrightness), localize "STR_ACE_NightVision_IncreaseNVGBrightness",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [QEGVAR(captives,isNotEscorting)];
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if ((currentVisionMode _player != 1)) exitWith {false};
|
if ((currentVisionMode _player != 1)) exitWith {false};
|
||||||
|
|
||||||
@ -55,8 +54,7 @@ GVAR(ppEffectMuzzleFlash) ppEffectCommit 0;
|
|||||||
["ACE3", QGVAR(DecreaseNVGBrightness), localize "STR_ACE_NightVision_DecreaseNVGBrightness",
|
["ACE3", QGVAR(DecreaseNVGBrightness), localize "STR_ACE_NightVision_DecreaseNVGBrightness",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [QEGVAR(captives,isNotEscorting)];
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if ((currentVisionMode _player != 1)) exitWith {false};
|
if ((currentVisionMode _player != 1)) exitWith {false};
|
||||||
|
|
||||||
|
@ -7,8 +7,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(unjamWeapon), localize "STR_ACE_Overheating_UnjamWeapon",
|
["ACE3", QGVAR(unjamWeapon), localize "STR_ACE_Overheating_UnjamWeapon",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon) &&
|
if !([ACE_player] call EFUNC(common,canUseWeapon) &&
|
||||||
{currentWeapon ACE_player in (ACE_player getVariable [QGVAR(jammedWeapons), []])}
|
{currentWeapon ACE_player in (ACE_player getVariable [QGVAR(jammedWeapons), []])}
|
||||||
|
@ -19,8 +19,7 @@ if (!hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(showAltimeter), localize "STR_ACE_Parachute_showAltimeter",
|
["ACE3", QGVAR(showAltimeter), localize "STR_ACE_Parachute_showAltimeter",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [QEGVAR(interaction,isNotEscorting)];
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
if (!('ACE_Altimeter' in assignedItems ace_player)) exitWith {false};
|
if (!('ACE_Altimeter' in assignedItems ace_player)) exitWith {false};
|
||||||
if (!(missionNamespace getVariable [QGVAR(AltimeterActive), false])) then {
|
if (!(missionNamespace getVariable [QGVAR(AltimeterActive), false])) then {
|
||||||
[ace_player] call FUNC(showAltimeter);
|
[ace_player] call FUNC(showAltimeter);
|
||||||
|
@ -7,8 +7,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(checkAmmo), localize "STR_ACE_Reload_checkAmmo",
|
["ACE3", QGVAR(checkAmmo), localize "STR_ACE_Reload_checkAmmo",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon) ||
|
if !([ACE_player] call EFUNC(common,canUseWeapon) ||
|
||||||
{(vehicle ACE_player) isKindOf 'StaticWeapon'}) exitWith {false};
|
{(vehicle ACE_player) isKindOf 'StaticWeapon'}) exitWith {false};
|
||||||
|
@ -42,7 +42,7 @@ if (_maxAmmo == 0) exitWith {};
|
|||||||
// Condition to call each frame
|
// Condition to call each frame
|
||||||
_condition = {
|
_condition = {
|
||||||
EXPLODE_2_PVT((_this select 0),_player,_target);
|
EXPLODE_2_PVT((_this select 0),_player,_target);
|
||||||
([_player, _target] call EFUNC(common,canInteract)) && ((_player distance _target) < 3) && ((speed _target) < 1)
|
([_player, _target, []] call EFUNC(common,canInteractWith)) && ((_player distance _target) < 3) && ((speed _target) < 1)
|
||||||
};
|
};
|
||||||
|
|
||||||
_onFinish = {
|
_onFinish = {
|
||||||
|
@ -7,8 +7,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(RestWeapon), localize "STR_ACE_Resting_RestWeapon",
|
["ACE3", QGVAR(RestWeapon), localize "STR_ACE_Resting_RestWeapon",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon) &&
|
if !([ACE_player] call EFUNC(common,canUseWeapon) &&
|
||||||
{inputAction 'reloadMagazine' == 0} &&
|
{inputAction 'reloadMagazine' == 0} &&
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
["ACE3", QGVAR(safeMode), localize "STR_ACE_SafeMode_SafeMode",
|
["ACE3", QGVAR(safeMode), localize "STR_ACE_SafeMode_SafeMode",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [QEGVAR(interaction,isNotEscorting)];
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
||||||
|
|
||||||
|
@ -36,8 +36,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(AdjustUp), localize "STR_ACE_Scopes_AdjustUp",
|
["ACE3", QGVAR(AdjustUp), localize "STR_ACE_Scopes_AdjustUp",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
[ACE_player] call FUNC(inventoryCheck);
|
[ACE_player] call FUNC(inventoryCheck);
|
||||||
if !([ACE_player, 0, 0.1] call FUNC(canAdjustScope)) exitWith {false};
|
if !([ACE_player, 0, 0.1] call FUNC(canAdjustScope)) exitWith {false};
|
||||||
@ -52,8 +51,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(AdjustDown), localize "STR_ACE_Scopes_AdjustDown",
|
["ACE3", QGVAR(AdjustDown), localize "STR_ACE_Scopes_AdjustDown",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
[ACE_player] call FUNC(inventoryCheck);
|
[ACE_player] call FUNC(inventoryCheck);
|
||||||
if !([ACE_player, 0, -0.1] call FUNC(canAdjustScope)) exitWith {false};
|
if !([ACE_player, 0, -0.1] call FUNC(canAdjustScope)) exitWith {false};
|
||||||
@ -68,8 +66,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(AdjustLeft), localize "STR_ACE_Scopes_AdjustLeft",
|
["ACE3", QGVAR(AdjustLeft), localize "STR_ACE_Scopes_AdjustLeft",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
[ACE_player] call FUNC(inventoryCheck);
|
[ACE_player] call FUNC(inventoryCheck);
|
||||||
if !([ACE_player, -0.1, 0] call FUNC(canAdjustScope)) exitWith {false};
|
if !([ACE_player, -0.1, 0] call FUNC(canAdjustScope)) exitWith {false};
|
||||||
@ -84,8 +81,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(AdjustRight), localize "STR_ACE_Scopes_AdjustRight",
|
["ACE3", QGVAR(AdjustRight), localize "STR_ACE_Scopes_AdjustRight",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
[ACE_player] call FUNC(inventoryCheck);
|
[ACE_player] call FUNC(inventoryCheck);
|
||||||
if !([ACE_player, 0.1, 0] call FUNC(canAdjustScope)) exitWith {false};
|
if !([ACE_player, 0.1, 0] call FUNC(canAdjustScope)) exitWith {false};
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
["ACE3", QGVAR(AzimuthKey), localize "STR_ACE_Vector_AzimuthKey",
|
["ACE3", QGVAR(AzimuthKey), localize "STR_ACE_Vector_AzimuthKey",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(currentWeapon ACE_player == "ACE_Vector" && {ACE_player == cameraOn} && {cameraView == "GUNNER"}) exitWith {false};
|
if !(currentWeapon ACE_player == "ACE_Vector" && {ACE_player == cameraOn} && {cameraView == "GUNNER"}) exitWith {false};
|
||||||
|
|
||||||
@ -21,8 +20,7 @@
|
|||||||
GVAR(isDownStateKey1) = false;
|
GVAR(isDownStateKey1) = false;
|
||||||
|
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
|
|
||||||
// Statement
|
// Statement
|
||||||
["azimuth"] call FUNC(onKeyUp);
|
["azimuth"] call FUNC(onKeyUp);
|
||||||
@ -34,8 +32,7 @@
|
|||||||
["ACE3", QGVAR(DistanceKey), localize "STR_ACE_Vector_DistanceKey",
|
["ACE3", QGVAR(DistanceKey), localize "STR_ACE_Vector_DistanceKey",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(currentWeapon ACE_player == "ACE_Vector" && {ACE_player == cameraOn} && {cameraView == "GUNNER"}) exitWith {false};
|
if !(currentWeapon ACE_player == "ACE_Vector" && {ACE_player == cameraOn} && {cameraView == "GUNNER"}) exitWith {false};
|
||||||
|
|
||||||
@ -52,8 +49,7 @@
|
|||||||
GVAR(isDownStateKey2) = false;
|
GVAR(isDownStateKey2) = false;
|
||||||
|
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
|
|
||||||
// Statement
|
// Statement
|
||||||
["distance"] call FUNC(onKeyUp);
|
["distance"] call FUNC(onKeyUp);
|
||||||
|
@ -64,7 +64,7 @@ case (_funcType == "startLockpick"): {
|
|||||||
_condition = {
|
_condition = {
|
||||||
PARAMS_1(_args);
|
PARAMS_1(_args);
|
||||||
EXPLODE_2_PVT(_args,_unit,_veh);
|
EXPLODE_2_PVT(_args,_unit,_veh);
|
||||||
([_unit] call EFUNC(common,canInteract)) && ((_unit distance _veh) < 5) && ((speed _veh) < 1)
|
([_unit, objNull, []] call EFUNC(common,canInteractWith)) && ((_unit distance _veh) < 5) && ((speed _veh) < 1)
|
||||||
};
|
};
|
||||||
[_vehLockpickStrenth, [_unit, _veh, "finishLockpick"], {(_this select 0) call FUNC(lockpick)}, {}, (localize "STR_ACE_Vehicle_Action_LockpickInUse"), _condition] call EFUNC(common,progressBar);
|
[_vehLockpickStrenth, [_unit, _veh, "finishLockpick"], {(_this select 0) call FUNC(lockpick)}, {}, (localize "STR_ACE_Vehicle_Action_LockpickInUse"), _condition] call EFUNC(common,progressBar);
|
||||||
};
|
};
|
||||||
|
@ -7,8 +7,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(speedLimiter), localize "STR_ACE_SpeedLimiter",
|
["ACE3", QGVAR(speedLimiter), localize "STR_ACE_SpeedLimiter",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(ACE_player == driver vehicle ACE_player &&
|
if !(ACE_player == driver vehicle ACE_player &&
|
||||||
{vehicle ACE_player isKindOf 'Car' ||
|
{vehicle ACE_player isKindOf 'Car' ||
|
||||||
|
@ -7,8 +7,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(SelectPistol), localize "STR_ACE_WeaponSelect_SelectPistol",
|
["ACE3", QGVAR(SelectPistol), localize "STR_ACE_WeaponSelect_SelectPistol",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [QEGVAR(interaction,isNotEscorting)];
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
||||||
|
|
||||||
@ -22,8 +21,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(SelectRifle), localize "STR_ACE_WeaponSelect_SelectRifle",
|
["ACE3", QGVAR(SelectRifle), localize "STR_ACE_WeaponSelect_SelectRifle",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [QEGVAR(interaction,isNotEscorting)];
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
||||||
|
|
||||||
@ -37,8 +35,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(SelectRifleMuzzle), localize "STR_ACE_WeaponSelect_SelectRifleMuzzle",
|
["ACE3", QGVAR(SelectRifleMuzzle), localize "STR_ACE_WeaponSelect_SelectRifleMuzzle",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [QEGVAR(interaction,isNotEscorting)];
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
||||||
|
|
||||||
@ -52,8 +49,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(SelectLauncher), localize "STR_ACE_WeaponSelect_SelectLauncher",
|
["ACE3", QGVAR(SelectLauncher), localize "STR_ACE_WeaponSelect_SelectLauncher",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [QEGVAR(interaction,isNotEscorting)];
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
||||||
|
|
||||||
@ -67,8 +63,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(SelectBinocular), localize "STR_ACE_WeaponSelect_SelectBinocular",
|
["ACE3", QGVAR(SelectBinocular), localize "STR_ACE_WeaponSelect_SelectBinocular",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [QEGVAR(interaction,isNotEscorting)];
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
||||||
|
|
||||||
@ -82,8 +77,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(SelectGrenadeFrag), localize "STR_ACE_WeaponSelect_SelectGrenadeFrag",
|
["ACE3", QGVAR(SelectGrenadeFrag), localize "STR_ACE_WeaponSelect_SelectGrenadeFrag",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [QEGVAR(interaction,isNotEscorting)];
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
||||||
|
|
||||||
@ -97,8 +91,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(SelectGrenadeOther), localize "STR_ACE_WeaponSelect_SelectGrenadeOther",
|
["ACE3", QGVAR(SelectGrenadeOther), localize "STR_ACE_WeaponSelect_SelectGrenadeOther",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [QEGVAR(interaction,isNotEscorting)];
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
||||||
|
|
||||||
@ -112,8 +105,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(HolsterWeapon), localize "STR_ACE_WeaponSelect_HolsterWeapon",
|
["ACE3", QGVAR(HolsterWeapon), localize "STR_ACE_WeaponSelect_HolsterWeapon",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [QEGVAR(interaction,isNotEscorting)];
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
||||||
|
|
||||||
@ -127,8 +119,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(EngineOn), localize "STR_ACE_WeaponSelect_EngineOn",
|
["ACE3", QGVAR(EngineOn), localize "STR_ACE_WeaponSelect_EngineOn",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(ACE_player != vehicle ACE_player && {ACE_player == driver vehicle ACE_player} && {!isEngineOn vehicle ACE_player}) exitWith {false};
|
if !(ACE_player != vehicle ACE_player && {ACE_player == driver vehicle ACE_player} && {!isEngineOn vehicle ACE_player}) exitWith {false};
|
||||||
|
|
||||||
@ -142,8 +133,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(EngineOff), localize "STR_ACE_WeaponSelect_EngineOff",
|
["ACE3", QGVAR(EngineOff), localize "STR_ACE_WeaponSelect_EngineOff",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(ACE_player != vehicle ACE_player && {ACE_player == driver vehicle ACE_player} && {isEngineOn vehicle ACE_player}) exitWith {false};
|
if !(ACE_player != vehicle ACE_player && {ACE_player == driver vehicle ACE_player} && {isEngineOn vehicle ACE_player}) exitWith {false};
|
||||||
|
|
||||||
@ -157,8 +147,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(SelectMainGun), localize "STR_ACE_WeaponSelect_SelectMainGun",
|
["ACE3", QGVAR(SelectMainGun), localize "STR_ACE_WeaponSelect_SelectMainGun",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(ACE_player != vehicle ACE_player) exitWith {false};
|
if !(ACE_player != vehicle ACE_player) exitWith {false};
|
||||||
|
|
||||||
@ -172,8 +161,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(SelectMachineGun), localize "STR_ACE_WeaponSelect_SelectMachineGun",
|
["ACE3", QGVAR(SelectMachineGun), localize "STR_ACE_WeaponSelect_SelectMachineGun",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(ACE_player != vehicle ACE_player) exitWith {false};
|
if !(ACE_player != vehicle ACE_player) exitWith {false};
|
||||||
|
|
||||||
@ -187,8 +175,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(SelectMissiles), localize "STR_ACE_WeaponSelect_SelectMissiles",
|
["ACE3", QGVAR(SelectMissiles), localize "STR_ACE_WeaponSelect_SelectMissiles",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(ACE_player != vehicle ACE_player) exitWith {false};
|
if !(ACE_player != vehicle ACE_player) exitWith {false};
|
||||||
|
|
||||||
@ -202,8 +189,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3", QGVAR(FireSmokeLauncher), localize "STR_ACE_WeaponSelect_FireSmokeLauncher",
|
["ACE3", QGVAR(FireSmokeLauncher), localize "STR_ACE_WeaponSelect_FireSmokeLauncher",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
_exceptions = [];
|
if !([ACE_player, objNull, []] call EGVAR(common,canInteractWith)) exitWith {false};
|
||||||
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
|
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !(ACE_player != vehicle ACE_player && {ACE_player == commander vehicle ACE_player}) exitWith {false};
|
if !(ACE_player != vehicle ACE_player && {ACE_player == commander vehicle ACE_player}) exitWith {false};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user