Rename Advanced Throwing component to be in-line with other advanced_ components (#4318)

* Rename Advanced Throwing component to be in-line with other advanced_ components

* Rename wiki page as well

* Add redirect from old wiki page
This commit is contained in:
jonpas
2016-09-03 01:39:34 +02:00
committed by GitHub
parent 12de3265b8
commit 0e1f2828a9
34 changed files with 48 additions and 47 deletions

View File

@ -0,0 +1,45 @@
/*
* Author: Dslyecxi, Jonpas
* Key down event.
*
* Arguments:
* 0: Control <CONTROL>
* 1: Key <NUMBER>
* 2: Shift <BOOL>
* 3: Ctrl <BOOL>
* 4: Alt <BOOL>
*
* Return Value:
* None
*
* Example:
* [control, 5, false, true, false] call ace_advanced_throwing_fnc_onKeyDown
*
* Public: No
*/
#include "script_component.hpp"
if !(ACE_player getVariable [QGVAR(inHand), false]) exitWith {false};
params ["", "_key", "_shift", "_ctrl", "_alt"];
// Exit if any of the action keys is pressed
{
if (_key in _x) exitWith {
[ACE_player, "Pressed a key that cycles us out of throwables"] call FUNC(exitThrowMode);
};
} forEach [
actionKeys "ReloadMagazine",
actionKeys "Handgun",
actionKeys "Binoculars",
actionKeys "SwitchWeapon",
actionKeys "Optics",
actionKeys "NextWeapon",
actionKeys "PrevWeapon",
actionKeys "OpticsTemp",
actionKeys "SwitchPrimary",
actionKeys "SwitchHandgun",
actionKeys "SwitchSecondary"
];
false