2015-01-11 18:24:19 +00:00
|
|
|
#define COMPONENT wep_javelin
|
|
|
|
#include "\z\ace\Addons\main\script_mod.hpp"
|
|
|
|
|
|
|
|
#ifdef DEBUG_ENABLED_WEP_JAVELIN
|
2015-04-04 00:28:33 +00:00
|
|
|
#define DEBUG_MODE_FULL
|
2015-01-11 18:24:19 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_SETTINGS_WEP_JAVELIN
|
2015-04-04 00:28:33 +00:00
|
|
|
#define DEBUG_SETTINGS DEBUG_SETTINGS_WEP_JAVELIN
|
2015-01-11 18:24:19 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "\z\ace\Addons\main\script_macros.hpp"
|
2015-04-04 23:55:53 +00:00
|
|
|
|
|
|
|
#define ACE_JAV_FIREMODE_DIR 1
|
|
|
|
#define ACE_JAV_FIREMODE_TOP 2
|
|
|
|
|
|
|
|
|
|
|
|
// Javelin IGUI defines
|
|
|
|
#define __JavelinIGUI (uinamespace getVariable "ACE_RscOptics_javelin")
|
|
|
|
|
|
|
|
// Custom controls
|
|
|
|
#define __JavelinIGUISeek (__JavelinIGUI displayCtrl 699000)
|
|
|
|
#define __JavelinIGUITop (__JavelinIGUI displayCtrl 699001)
|
|
|
|
#define __JavelinIGUIDir (__JavelinIGUI displayCtrl 699002)
|
|
|
|
#define __JavelinIGUINFOV (__JavelinIGUI displayCtrl 699003)
|
|
|
|
|
|
|
|
// Constrains
|
|
|
|
#define __JavelinIGUITargetingConstrains (__JavelinIGUI displayCtrl 699100)
|
|
|
|
#define __JavelinIGUITargetingConstrainTop (__JavelinIGUI displayCtrl 699101)
|
|
|
|
#define __JavelinIGUITargetingConstrainBottom (__JavelinIGUI displayCtrl 699102)
|
|
|
|
#define __JavelinIGUITargetingConstrainLeft (__JavelinIGUI displayCtrl 699103)
|
|
|
|
#define __JavelinIGUITargetingConstrainRight (__JavelinIGUI displayCtrl 699104)
|
|
|
|
|
2015-04-05 00:15:59 +00:00
|
|
|
// Targeting gate
|
2015-04-04 23:55:53 +00:00
|
|
|
#define __JavelinIGUITargetingGate (__JavelinIGUI displayCtrl 699200)
|
|
|
|
#define __JavelinIGUITargetingGateTL (__JavelinIGUI displayCtrl 699201)
|
|
|
|
#define __JavelinIGUITargetingGateTR (__JavelinIGUI displayCtrl 699202)
|
|
|
|
#define __JavelinIGUITargetingGateBL (__JavelinIGUI displayCtrl 699203)
|
|
|
|
#define __JavelinIGUITargetingGateBR (__JavelinIGUI displayCtrl 699204)
|
|
|
|
|
|
|
|
// Rangefinder
|
|
|
|
#define __JavelinIGUIRangefinder (__JavelinIGUI displayCtrl 151)
|
|
|
|
|
|
|
|
// Targeting lines
|
|
|
|
#define __JavelinIGUITargetingLines (__JavelinIGUI displayCtrl 699300)
|
|
|
|
#define __JavelinIGUITargetingLineH (__JavelinIGUI displayCtrl 699301)
|
|
|
|
#define __JavelinIGUITargetingLineV (__JavelinIGUI displayCtrl 699302)
|
|
|
|
|
2015-04-10 17:42:02 +00:00
|
|
|
#define __ConstraintTop (((ctrlPosition __JavelinIGUITargetingConstrainTop) select 1) + ((ctrlPosition (__JavelinIGUITargetingConstrainTop)) select 3))
|
|
|
|
#define __ConstraintBottom ((ctrlPosition __JavelinIGUITargetingConstrainBottom) select 1)
|
|
|
|
#define __ConstraintLeft (((ctrlPosition __JavelinIGUITargetingConstrainLeft) select 0) + ((ctrlPosition (__JavelinIGUITargetingConstrainLeft)) select 2))
|
|
|
|
#define __ConstraintRight ((ctrlPosition __JavelinIGUITargetingConstrainRight) select 0)
|
|
|
|
|
|
|
|
#define __OffsetX ((ctrlPosition __JavelinIGUITargetingLineV) select 0) - 0.5
|
|
|
|
#define __OffsetY ((ctrlPosition __JavelinIGUITargetingLineH) select 1) - 0.5
|
|
|
|
|
|
|
|
|
2015-04-04 23:55:53 +00:00
|
|
|
// Colors for controls
|
|
|
|
#define __ColorOrange [0.9255,0.5216,0.1216,1]
|
|
|
|
#define __ColorGreen [0.2941,0.8745,0.2157,1]
|
|
|
|
#define __ColorGray [0.2941,0.2941,0.2941,1]
|
|
|
|
#define __ColorNull [0,0,0,0]
|