mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
1a61148053
Shouldn't be any change to functionality Headers Formating simplifying (waitAndExecute) exceptions/canInteract for keybind
46 lines
819 B
Plaintext
46 lines
819 B
Plaintext
/*
|
|
* Author: commy2
|
|
* Select the next throwing mode and display message.
|
|
*
|
|
* Arguments:
|
|
* Nothing
|
|
*
|
|
* Return Value:
|
|
* Handeled <BOOL>
|
|
*
|
|
* Example:
|
|
* [] call ace_grenades_fnc_nextMode
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
private ["_mode", "_hint"];
|
|
|
|
_mode = missionNamespace getVariable [QGVAR(currentThrowMode), 0];
|
|
|
|
if (_mode == 4) then {
|
|
_mode = 0;
|
|
} else {
|
|
_mode = _mode + 1;
|
|
};
|
|
|
|
// ROLL GRENADE DOESN'T WORK RIGHT NOW
|
|
if (_mode == 3) then {
|
|
_mode = 4;
|
|
};
|
|
|
|
_hint = [
|
|
localize "STR_ACE_Grenades_NormalThrow",
|
|
localize "STR_ACE_Grenades_HighThrow",
|
|
localize "STR_ACE_Grenades_PreciseThrow",
|
|
localize "STR_ACE_Grenades_RollGrenade",
|
|
localize "STR_ACE_Grenades_DropGrenade"
|
|
] select _mode;
|
|
|
|
[_hint] call EFUNC(common,displayTextStructured);
|
|
|
|
GVAR(currentThrowMode) = _mode;
|
|
|
|
true
|