mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
b4315b6a65
* Javelin overhaul * header spelling fix
31 lines
782 B
Plaintext
31 lines
782 B
Plaintext
/*
|
|
* Author: jaynus
|
|
* Updates fire mode on javelin display (top/dir)
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [] call ace_javelin_fnc_showFireMode
|
|
*
|
|
* Public: No
|
|
*/
|
|
//#define DEBUG_MODE_FULL
|
|
#include "script_component.hpp"
|
|
|
|
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"];
|
|
|
|
TRACE_1("showFireMode", _currentFireMode);
|
|
|
|
if (_currentFireMode == "JAV_TOP") then {
|
|
__JavelinIGUITop ctrlSetTextColor __ColorGreen;
|
|
__JavelinIGUIDir ctrlSetTextColor __ColorGray;
|
|
} else {
|
|
__JavelinIGUITop ctrlSetTextColor __ColorGray;
|
|
__JavelinIGUIDir ctrlSetTextColor __ColorGreen;
|
|
};
|