ACE3/addons/fcs/initKeybinds.inc.sqf

60 lines
2.0 KiB
Plaintext
Raw Normal View History

2015-02-11 13:51:21 +00:00
// by commy2
2015-02-03 22:03:43 +00:00
2015-05-28 19:59:04 +00:00
["ACE3 Vehicles", QGVAR(lazeTarget), localize LSTRING(LaseTarget),
2015-03-05 07:32:26 +00:00
{
// Conditions: canInteract
2015-03-31 21:05:24 +00:00
if !([ACE_player, vehicle ACE_player, []] call EFUNC(common,canInteractWith)) exitWith {false};
2015-03-05 07:32:26 +00:00
// Conditions: specific
if !((!GVAR(enabled) && FUNC(canUseFCS)) || FUNC(canUseRangefinder)) exitWith {false};
2015-03-05 08:46:24 +00:00
if (GETGVAR(isDownStateKey1,false)) exitWith {false};
GVAR(isDownStateKey1) = true;
2015-03-05 08:51:24 +00:00
2015-03-05 07:32:26 +00:00
// Statement
[vehicle ACE_player, [ACE_player] call EFUNC(common,getTurretIndex)] call FUNC(keyDown);
// Return false so it doesn't block the rest weapon action
false
2015-03-05 08:51:24 +00:00
},
2015-03-05 07:32:26 +00:00
{
2015-03-05 08:46:24 +00:00
// prevent holding down
GVAR(isDownStateKey1) = false;
2015-03-05 07:32:26 +00:00
// Conditions: canInteract
2015-03-31 21:05:24 +00:00
if !([ACE_player, vehicle ACE_player, []] call EFUNC(common,canInteractWith)) exitWith {false};
2015-03-05 07:32:26 +00:00
// Conditions: specific
if !(GVAR(enabled) && FUNC(canUseFCS)) exitWith {false};
// Statement
[vehicle ACE_player, [ACE_player] call EFUNC(common,getTurretIndex)] call FUNC(keyUp);
false
},
2015-11-30 15:45:20 +00:00
[15, [false, false, false]], false] call CBA_fnc_addKeybind; //Tab Key
2015-03-05 07:32:26 +00:00
2015-05-28 19:59:04 +00:00
["ACE3 Vehicles", QGVAR(adjustRangeUp), localize LSTRING(AdjustRangeUp),
2015-03-05 07:32:26 +00:00
{
// Conditions: canInteract
2015-03-31 21:05:24 +00:00
if !([ACE_player, vehicle ACE_player, []] call EFUNC(common,canInteractWith)) exitWith {false};
2015-03-05 07:32:26 +00:00
// Conditions: specific
if !(call FUNC(canUseFCS)) exitWith {false};
2015-03-05 07:32:26 +00:00
// Statement
[vehicle ACE_player, [ACE_player] call EFUNC(common,getTurretIndex), 50] call FUNC(adjustRange);
true
},
2015-03-05 08:51:24 +00:00
{false},
2015-11-30 15:45:20 +00:00
[201, [false, false, false]], false] call CBA_fnc_addKeybind; //PageUp Key
2015-03-05 07:32:26 +00:00
2015-05-28 19:59:04 +00:00
["ACE3 Vehicles", QGVAR(adjustRangDown), localize LSTRING(AdjustRangeDown),
2015-03-05 07:32:26 +00:00
{
// Conditions: canInteract
2015-03-31 21:05:24 +00:00
if !([ACE_player, vehicle ACE_player, []] call EFUNC(common,canInteractWith)) exitWith {false};
2015-03-05 07:32:26 +00:00
// Conditions: specific
if !(call FUNC(canUseFCS)) exitWith {false};
2015-03-05 07:32:26 +00:00
// Statement
[vehicle ACE_player, [ACE_player] call EFUNC(common,getTurretIndex), -50] call FUNC(adjustRange);
true
},
2015-03-05 08:51:24 +00:00
{false},
2015-11-30 15:45:20 +00:00
[209, [false, false, false]], false] call CBA_fnc_addKeybind; //PageDown Key