2015-01-11 16:42:31 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
*
|
|
|
|
* Select the next throwing mode and display message.
|
|
|
|
*
|
|
|
|
* Argument:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* Nothing
|
|
|
|
*/
|
|
|
|
|
2015-01-14 09:06:47 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
private ["_mode", "_hint"];
|
|
|
|
|
2015-01-14 19:48:08 +00:00
|
|
|
if (!([ACE_player] call EFUNC(common,canUseWeapon))) exitWith {false};
|
|
|
|
|
2015-01-14 09:06:47 +00:00
|
|
|
_mode = missionNamespace getVariable [QGVAR(currentThrowMode), 0];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
if (_mode == 4) then {
|
|
|
|
_mode = 0;
|
|
|
|
} else {
|
|
|
|
_mode = _mode + 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
// ROLL GRENADE DOESN'T WORK RIGHT NOW
|
|
|
|
if (_mode == 3) then {
|
|
|
|
_mode = 4;
|
|
|
|
};
|
|
|
|
|
|
|
|
_hint = [
|
2015-01-14 09:06:47 +00:00
|
|
|
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"
|
2015-01-11 16:42:31 +00:00
|
|
|
] select _mode;
|
|
|
|
|
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
|
|
|
|