apply small fixes first

This commit is contained in:
Bailey Danyluk 2024-08-30 00:12:55 -06:00
parent 27fe7709e4
commit 16efd49c8d
3 changed files with 20 additions and 25 deletions

View File

@ -2,48 +2,43 @@
[QGVAR(handoff), LINKFUNC(handleHandoff)] call CBA_fnc_addEventHandler;
["ACE3 Weapons", QGVAR(cycleFireMode), localize LSTRING(CycleFireMode), {
["ACE3 Weapons", QGVAR(cycleFireMode), LLSTRING(CycleFireMode), {
[] call FUNC(cycleAttackProfileKeyDown);
false
}, {
false
},
[15, [false, true, false]], false] call CBA_fnc_addKeybind; //Ctrl+Tab Key
// Each MCLOS argument is the vector which acceleration will be applied
["ACE3 Weapons", QGVAR(mclosUp), localize LSTRING(mclosUp), {
[[0, 0, 1], ACE_PLAYER] call FUNC(mclosButtonPressed);
["ACE3 Weapons", QGVAR(mclosUp), LLSTRING(mclosUp), {
[[0, 0, 1], ACE_player] call FUNC(mclosButtonPressed);
false
}, {
[[0, 0, -1], ACE_PLAYER] call FUNC(mclosButtonPressed);
false
[[0, 0, -1], ACE_player] call FUNC(mclosButtonPressed);
},
[0x48, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // Numpad 8
["ACE3 Weapons", QGVAR(mclosDown), localize LSTRING(mclosDown), {
[[0, 0, -1], ACE_PLAYER] call FUNC(mclosButtonPressed);
["ACE3 Weapons", QGVAR(mclosDown), LLSTRING(mclosDown), {
[[0, 0, -1], ACE_player] call FUNC(mclosButtonPressed);
false
}, {
[[0, 0, 1], ACE_PLAYER] call FUNC(mclosButtonPressed);
false
[[0, 0, 1], ACE_player] call FUNC(mclosButtonPressed);
},
[0x50, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // Numpad 2
["ACE3 Weapons", QGVAR(mclosLeft), localize LSTRING(mclosLeft), {
[[1, 0, 0], ACE_PLAYER] call FUNC(mclosButtonPressed);
["ACE3 Weapons", QGVAR(mclosLeft), LLSTRING(mclosLeft), {
[[1, 0, 0], ACE_player] call FUNC(mclosButtonPressed);
false
}, {
[[-1, 0, 0], ACE_PLAYER] call FUNC(mclosButtonPressed);
false
[[-1, 0, 0], ACE_player] call FUNC(mclosButtonPressed);
},
[0x4D, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // Numpad 6
["ACE3 Weapons", QGVAR(mclosRight), localize LSTRING(mclosRight), {
[[-1, 0, 0], ACE_PLAYER] call FUNC(mclosButtonPressed);
["ACE3 Weapons", QGVAR(mclosRight), LLSTRING(mclosRight), {
[[-1, 0, 0], ACE_player] call FUNC(mclosButtonPressed);
false
}, {
[[1, 0, 0], ACE_PLAYER] call FUNC(mclosButtonPressed);
false
[[1, 0, 0], ACE_player] call FUNC(mclosButtonPressed);
},
[0x4B, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // Numpad 4

View File

@ -4,23 +4,23 @@
* Handles MCLOS guidance via keyboard keys
*
* Arguments:
* Acceleration vector
* 0: Acceleration vector <ARRAY>
* 1: Unit <OBJECT>
*
* Return Value:
* None
*
* Example:
* [0, 0, 1] call ace_missileguidance_fnc_mclosButtonPressed
* [[0, 0, 1], player] call ace_missileguidance_fnc_mclosButtonPressed
*
* Public: No
*/
params ["_accelerationDirection", "_player"];
private _projectiles = _player getVariable [QGVAR(MCLOS_Projectiles), []];
_projectiles = _projectiles select { _x isNotEqualTo objNull };
_projectiles = _projectiles select { !isNull _x };
_player setVariable [QGVAR(MCLOS_Projectiles), _projectiles];
private _vehicleHasMCLOS = 1 == getNumber ((configOf vehicle _player) >> QGVAR(hasMCLOSControl));
if (_vehicleHasMCLOS) then {
if (getNumber ((configOf vehicle _player) >> QGVAR(hasMCLOSControl) == 1) then {
playSound "ACE_Sound_Click";
};

View File

@ -1,7 +1,7 @@
#include "..\script_component.hpp"
/*
* Author: tcvm
* SACLOS seeker
* MCLOS seeker
*
* Arguments:
* 1: Guidance Arg Array <ARRAY>
@ -11,7 +11,7 @@
* Position of wanted missile pos relative to the camera direction <ARRAY>
*
* Example:
* [] call ace_missileguidance_fnc_seekerType_SACLOS
* [] call ace_missileguidance_fnc_seekerType_MCLOS
*
* Public: No
*/