Return False on keyUp Code

This commit is contained in:
PabstMirror 2015-03-05 02:51:24 -06:00
parent 5d21cd6cc7
commit 4018742f26
14 changed files with 34 additions and 34 deletions

View File

@ -10,12 +10,12 @@
if (GETGVAR(isDownStateKey1,false)) exitWith {false};
GVAR(isDownStateKey1) = true;
// 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
},
},
{
// prevent holding down
GVAR(isDownStateKey1) = false;
@ -44,7 +44,7 @@
[vehicle ACE_player, [ACE_player] call EFUNC(common,getTurretIndex), 50] call FUNC(adjustRange);
true
},
{},
{false},
[201, [false, false, false]], false] call cba_fnc_addKeybind; //PageUp Key
["ACE3", QGVAR(adjustRangDown), localize "STR_ACE_FCS_AdjustRangeDown",
@ -59,5 +59,5 @@
[vehicle ACE_player, [ACE_player] call EFUNC(common,getTurretIndex), -50] call FUNC(adjustRange);
true
},
{},
{false},
[209, [false, false, false]], false] call cba_fnc_addKeybind; //PageDown Key

View File

@ -25,7 +25,7 @@ if (!hasInterface) exitWith {};
};
false
},
{},
{false},
[20, true, true, false], false] call CALLSTACK(cba_fnc_addKeybind);
if isNil(QGVAR(UsePP)) then {

View File

@ -21,5 +21,5 @@ GVAR(flashbangPPEffectCC) ppEffectForceInNVG true;
// Statement
[] call FUNC(nextMode);
},
{},
{false},
[9, [false, false, false]], false] call cba_fnc_addKeybind; //8 Key

View File

@ -30,5 +30,5 @@
[ACE_player] call FUNC(climb);
true
},
{},
{false},
[47, [false, true, false]], false] call cba_fnc_addKeybind; //DIK_V + CTRL//STRG

View File

@ -19,7 +19,7 @@ if (!hasInterface) exitWith {};
// Return false so it doesn't block other actions
false
},
{},
{false},
[29, [false, false, false]], false] call cba_fnc_addKeybind; //LeftControl Key

View File

@ -49,7 +49,7 @@ GVAR(ppEffectMuzzleFlash) ppEffectCommit 0;
[ACE_player, 1] call FUNC(changeNVGBrightness);
true
},
{},
{false},
[201, [false, false, true]], false] call cba_fnc_addKeybind; //PageUp + ALT
["ACE3", QGVAR(DecreaseNVGBrightness), localize "STR_ACE_NightVision_DecreaseNVGBrightness",
@ -64,5 +64,5 @@ GVAR(ppEffectMuzzleFlash) ppEffectCommit 0;
[ACE_player, -1] call FUNC(changeNVGBrightness);
true
},
{},
{false},
[209, [false, false, true]], false] call cba_fnc_addKeybind; //PageDown + ALT

View File

@ -18,5 +18,5 @@ if !(hasInterface) exitWith {};
[ACE_player, currentMuzzle ACE_player, false] call FUNC(clearJam);
true
},
{},
{false},
[19, [true, false, false]], false] call cba_fnc_addKeybind; //R Key

View File

@ -29,7 +29,7 @@ if (!hasInterface) exitWith {};
};
true
},
{},
{false},
[24, false, false, false], false] call CALLSTACK(cba_fnc_addKeybind);
GVAR(PFH) = false;

View File

@ -17,5 +17,5 @@ if !(hasInterface) exitWith {};
[ACE_player, vehicle ACE_player, false] call FUNC(checkAmmo);
true
},
{},
{false},
[19, [false, true, false]], false] call cba_fnc_addKeybind;

View File

@ -20,5 +20,5 @@ if !(hasInterface) exitWith {};
// Return false so it doesn't block other actions
false
},
{},
{false},
[15, [false, false, false]], false] call cba_fnc_addKeybind;

View File

@ -18,5 +18,5 @@
[ACE_player, currentWeapon ACE_player, currentMuzzle ACE_player] call FUNC(lockSafety);
true
},
{},
{false},
[41, [false, true, false]], false] call cba_fnc_addKeybind;

View File

@ -46,7 +46,7 @@ if !(hasInterface) exitWith {};
[ACE_player, 0, 0.1] call FUNC(adjustScope);
true
},
{},
{false},
[201, [false, false, false]], false] call cba_fnc_addKeybind;
["ACE3", QGVAR(AdjustDown), localize "STR_ACE_Scopes_AdjustDown",
@ -62,7 +62,7 @@ if !(hasInterface) exitWith {};
[ACE_player, 0, -0.1] call FUNC(adjustScope);
true
},
{},
{false},
[209, [false, false, false]], false] call cba_fnc_addKeybind;
["ACE3", QGVAR(AdjustLeft), localize "STR_ACE_Scopes_AdjustLeft",
@ -78,7 +78,7 @@ if !(hasInterface) exitWith {};
[ACE_player, -0.1, 0] call FUNC(adjustScope);
true
},
{},
{false},
[209, [false, true, false]], false] call cba_fnc_addKeybind;
["ACE3", QGVAR(AdjustRight), localize "STR_ACE_Scopes_AdjustRight",
@ -94,5 +94,5 @@ if !(hasInterface) exitWith {};
[ACE_player, 0.1, 0] call FUNC(adjustScope);
true
},
{},
{false},
[201, [false, true, false]], false] call cba_fnc_addKeybind;

View File

@ -18,5 +18,5 @@ if !(hasInterface) exitWith {};
[ACE_player, vehicle ACE_player] call FUNC(speedLimiter);
true
},
{},
{false},
[211, [false, false, false]], false] call cba_fnc_addKeybind; //DELETE Key

View File

@ -16,7 +16,7 @@ if !(hasInterface) exitWith {};
[ACE_player, handgunWeapon ACE_player] call FUNC(selectWeaponMode);
true
},
{},
{false},
[2, [false, false, false]], false] call cba_fnc_addKeybind; //1 Key
["ACE3", QGVAR(SelectRifle), localize "STR_ACE_WeaponSelect_SelectRifle",
@ -31,7 +31,7 @@ if !(hasInterface) exitWith {};
[ACE_player, primaryWeapon ACE_player] call FUNC(selectWeaponMode);
true
},
{},
{false},
[3, [false, false, false]], false] call cba_fnc_addKeybind; //2 Key
["ACE3", QGVAR(SelectRifleMuzzle), localize "STR_ACE_WeaponSelect_SelectRifleMuzzle",
@ -46,7 +46,7 @@ if !(hasInterface) exitWith {};
[ACE_player, primaryWeapon ACE_player] call FUNC(selectWeaponMuzzle);
true
},
{},
{false},
[4, [false, false, false]], false] call cba_fnc_addKeybind; //3 Key
["ACE3", QGVAR(SelectLauncher), localize "STR_ACE_WeaponSelect_SelectLauncher",
@ -61,7 +61,7 @@ if !(hasInterface) exitWith {};
[ACE_player, secondaryWeapon ACE_player] call FUNC(selectWeaponMode);
true
},
{},
{false},
[5, [false, false, false]], false] call cba_fnc_addKeybind; //4 Key
["ACE3", QGVAR(SelectBinocular), localize "STR_ACE_WeaponSelect_SelectBinocular",
@ -76,7 +76,7 @@ if !(hasInterface) exitWith {};
[ACE_player, binocular ACE_player] call FUNC(selectWeaponMode);
true
},
{},
{false},
[6, [false, false, false]], false] call cba_fnc_addKeybind; //5 Key
["ACE3", QGVAR(SelectGrenadeFrag), localize "STR_ACE_WeaponSelect_SelectGrenadeFrag",
@ -91,7 +91,7 @@ if !(hasInterface) exitWith {};
[ACE_player] call FUNC(selectGrenadeFrag);
true
},
{},
{false},
[7, [false, false, false]], false] call cba_fnc_addKeybind; //6 Key
["ACE3", QGVAR(SelectGrenadeOther), localize "STR_ACE_WeaponSelect_SelectGrenadeOther",
@ -106,7 +106,7 @@ if !(hasInterface) exitWith {};
[ACE_player] call FUNC(selectGrenadeOther);
true
},
{},
{false},
[8, [false, false, false]], false] call cba_fnc_addKeybind; //7 Key
["ACE3", QGVAR(HolsterWeapon), localize "STR_ACE_WeaponSelect_HolsterWeapon",
@ -121,7 +121,7 @@ if !(hasInterface) exitWith {};
[ACE_player] call FUNC(putWeaponAway);
true
},
{},
{false},
[11, [false, false, false]], false] call cba_fnc_addKeybind; //0 Key
["ACE3", QGVAR(EngineOn), localize "STR_ACE_WeaponSelect_EngineOn",
@ -136,7 +136,7 @@ if !(hasInterface) exitWith {};
(vehicle ACE_player) engineOn true;
true
},
{},
{false},
[3, [false, false, false]], false] call cba_fnc_addKeybind; //2 Key
["ACE3", QGVAR(EngineOff), localize "STR_ACE_WeaponSelect_EngineOff",
@ -151,7 +151,7 @@ if !(hasInterface) exitWith {};
(vehicle ACE_player) engineOn false;
true
},
{},
{false},
[2, [false, false, false]], false] call cba_fnc_addKeybind; //1 Key
["ACE3", QGVAR(SelectMainGun), localize "STR_ACE_WeaponSelect_SelectMainGun",
@ -166,7 +166,7 @@ if !(hasInterface) exitWith {};
[ACE_player, vehicle ACE_player, 0] call FUNC(selectWeaponVehicle);
true
},
{},
{false},
[4, [false, false, false]], false] call cba_fnc_addKeybind; //3 Key
["ACE3", QGVAR(SelectMachineGun), localize "STR_ACE_WeaponSelect_SelectMachineGun",
@ -181,7 +181,7 @@ if !(hasInterface) exitWith {};
[ACE_player, vehicle ACE_player, 1] call FUNC(selectWeaponVehicle);
true
},
{},
{false},
[5, [false, false, false]], false] call cba_fnc_addKeybind; //4 Key
["ACE3", QGVAR(SelectMissiles), localize "STR_ACE_WeaponSelect_SelectMissiles",
@ -196,7 +196,7 @@ if !(hasInterface) exitWith {};
[ACE_player, vehicle ACE_player, 2] call FUNC(selectWeaponVehicle);
true
},
{},
{false},
[6, [false, false, false]], false] call cba_fnc_addKeybind; //5 Key
["ACE3", QGVAR(FireSmokeLauncher), localize "STR_ACE_WeaponSelect_FireSmokeLauncher",
@ -211,5 +211,5 @@ if !(hasInterface) exitWith {};
[vehicle ACE_player] call FUNC(fireSmokeLauncher);
true
},
{},
{false},
[10, [false, false, false]], false] call cba_fnc_addKeybind; //9 Key