Files
ACE3/addons/advanced_throwing/functions/fnc_updateControlsHint.sqf
johnb432 defbf33046 Advanced Throwing - Cleanup (#10495)
* Fix adv. throwing for multiple round grenades

* Cleanup adv. throwing

* Minor optimisation and cleanup
2024-11-22 09:31:07 +01:00

33 lines
675 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Jonpas
* Updates controls hints based on current state.
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* call ace_advanced_throwing_fnc_updateControlsHint
*
* Public: No
*/
if (!GVAR(showMouseControls)) exitWith {};
private _primed = ACE_player getVariable [QGVAR(primed), false];
private _mmb = [LLSTRING(ChangeMode), LLSTRING(Extend)] select (ACE_player getVariable [QGVAR(dropMode), false]);
if (!_primed) then {
_mmb = [_mmb, LLSTRING(Cook)] joinString " / ";
};
[
LLSTRING(Throw),
[LELSTRING(common,Cancel), ""] select _primed,
_mmb
] call EFUNC(interaction,showMouseHint);