2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2016-11-15 18:15:25 +00:00
|
|
|
/*
|
|
|
|
* Author: jaynus
|
|
|
|
* Updates fire mode on javelin display (top/dir)
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [] call ace_javelin_fnc_showFireMode
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2016-05-30 16:37:03 +00:00
|
|
|
|
2016-07-06 01:58:32 +00:00
|
|
|
private _currentShooter = if (ACE_player call CBA_fnc_canUseWeapon) then {ACE_player} else {vehicle ACE_player};
|
|
|
|
private _currentFireMode = _currentShooter getVariable ["ace_missileguidance_attackProfile", "JAV_TOP"];
|
2016-05-30 16:37:03 +00:00
|
|
|
|
2016-11-15 18:15:25 +00:00
|
|
|
TRACE_1("showFireMode", _currentFireMode);
|
|
|
|
|
|
|
|
if (_currentFireMode == "JAV_TOP") then {
|
2016-05-30 16:37:03 +00:00
|
|
|
__JavelinIGUITop ctrlSetTextColor __ColorGreen;
|
|
|
|
__JavelinIGUIDir ctrlSetTextColor __ColorGray;
|
|
|
|
} else {
|
|
|
|
__JavelinIGUITop ctrlSetTextColor __ColorGray;
|
|
|
|
__JavelinIGUIDir ctrlSetTextColor __ColorGreen;
|
2016-07-06 01:58:32 +00:00
|
|
|
};
|