2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Select the next throwing mode and display message.
|
2015-02-14 06:39:01 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2015-08-13 20:36:58 +00:00
|
|
|
* None
|
2015-02-14 06:39:01 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Handeled <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [] call ace_grenades_fnc_nextMode
|
|
|
|
*
|
|
|
|
* Public: No
|
2015-01-11 16:42:31 +00:00
|
|
|
*/
|
|
|
|
|
2016-01-06 21:42:02 +00:00
|
|
|
private _mode = missionNamespace getVariable [QGVAR(currentThrowMode), 0];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
if (_mode == 4) then {
|
2015-02-14 06:39:01 +00:00
|
|
|
_mode = 0;
|
2015-01-11 16:42:31 +00:00
|
|
|
} else {
|
2015-02-14 06:39:01 +00:00
|
|
|
_mode = _mode + 1;
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ROLL GRENADE DOESN'T WORK RIGHT NOW
|
|
|
|
if (_mode == 3) then {
|
2015-02-14 06:39:01 +00:00
|
|
|
_mode = 4;
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
|
|
|
|
2016-01-06 21:42:02 +00:00
|
|
|
private _hint = localize ([
|
|
|
|
LSTRING(NormalThrow),
|
|
|
|
LSTRING(HighThrow),
|
|
|
|
LSTRING(PreciseThrow),
|
|
|
|
LSTRING(RollGrenade),
|
2021-10-30 21:42:03 +00:00
|
|
|
LSTRING(DropGrenade)
|
2016-01-06 21:42:02 +00:00
|
|
|
] select _mode);
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-14 09:06:47 +00:00
|
|
|
[_hint] call EFUNC(common,displayTextStructured);
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-14 09:06:47 +00:00
|
|
|
GVAR(currentThrowMode) = _mode;
|
2015-01-14 19:48:08 +00:00
|
|
|
|
2015-01-14 20:40:37 +00:00
|
|
|
true
|