Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define PosX0Center 0.50 // 502
- #define PosY0Center 0.50 // 49
- #define SizeX10deg 0.234
- #define SizeY10deg 0.230
- topLeft = "HUD_top_left";
- topRight = "HUD_top_right";
- bottomLeft = "HUD_bottom_left";
- borderLeft = 0;
- borderRight = 0;
- borderTop = 0;
- borderBottom = 0;
- color[] = {1.0, 1.0, 1.0, 1.0};
- helmetMountedDisplay = true;
- helmetPosition[] = {-0.0375, 0.0375, 0.1};
- helmetRight[] = {0.075, 0.0, 0.0};
- helmetDown[] = {0.0, -0.075, 0.0};
- font = LucidaConsoleB;
- turret[] = {-2};
- class Bones
- {
- class HUDCenter
- {
- type = fixed;
- pos[] = {PosX0Center, PosY0Center};
- };
- class WeaponAim
- {
- type = vector;
- source = weapon;
- pos0[] = {PosX0Center, PosY0Center};
- pos10[] = {__EVAL(PosX0Center + SizeX10deg), __EVAL(PosY0Center + SizeY10deg)};
- };
- class WeaponAimRelative: WeaponAim {source = weapontoview;};
- class VelocityVector
- {
- type = vector;
- source = velocityToView;
- pos0[] = {PosX0Center, PosY0Center};
- pos10[] = {__EVAL(PosX0Center + SizeX10deg), __EVAL(PosY0Center + SizeY10deg)};
- };
- class ForwardVector
- {
- type = vector;
- source = forward;
- pos0[] = {0, 0};
- pos10[] = {SizeX10deg, SizeY10deg};
- };
- class HorizonVector
- {
- type = horizontoview;
- pos0[] = {PosX0Center, PosY0Center};
- pos10[] = {__EVAL(PosX0Center + SizeX10deg * 1.4142), __EVAL(PosY0Center + SizeY10deg * 1.4142)};
- angle = 0;
- };
- class GunnerAim
- {
- type = vector;
- source = weapon;
- pos0[] = {0, -0.0025};
- pos10[] = {0.01, 0.0025};
- };
- class VerticalSpeedBone
- {
- type = linear;
- source = vspeed;
- sourceScale = 1;
- min = -10;
- max = 10;
- minPos[] = {0, -0.32};
- maxPos[] = {0, 0.32};
- };
- class HorizonBankRot
- {
- type = linear;
- source = horizonBank;
- min = __EVAL(-3.1416 / 90 * 15);
- max = __EVAL(3.1416 / 90 * 15);
- minPos[] = {0.41, 0.84};
- maxPos[] = {0.59, 0.84};
- aspectRatio = 1;
- };
- class ImpactPoint
- {
- type = vector;
- source = ImpactPointToView;
- pos0[] = {0.5, __EVAL(PosY0Center)};
- pos10[] = {__EVAL(0.5 + SizeX10deg), __EVAL(PosY0Center + SizeY10deg)};
- };
- class Target
- {
- source = targettoview;
- type = vector;
- pos0[] = {__EVAL(PosX0Center),__EVAL(PosY0Center)};
- pos10[] = {__EVAL(PosX0Center+SizeX10deg),__EVAL(PosY0Center+SizeY10deg)};
- };
- class Limit0109
- {
- type = limit;
- limits[] = {0.1,0.1,0.9,0.9};
- };
- class LimitWaypoint
- {
- type = limit;
- limits[] = {0.2,0.1,0.8,0.1};
- };
- class WPPoint
- {
- type = vector;
- source = WPPoint;
- pos0[] = {0.5, __EVAL(PosY0Center)};
- pos10[] = {__EVAL(0.5 + SizeX10deg), __EVAL(PosY0Center + SizeY10deg)};
- };
- class WPPointToView: WPPoint
- {
- source = WPPointToView;
- };
- #define RADAR_X 903
- #define RADAR_Y 820
- class RadarHeight
- {
- type = linear;
- source = altitudeAGL;
- sourceScale = 1;
- sourceOffset = -2;
- min = 0;
- max = 100; // IRL it's 200 feets ~ 61 meters
- minPos[] = {0.RADAR_X,0.18};
- maxPos[] = {0.RADAR_X,0.RADAR_Y};
- };
- class HorizonBankRotFull
- {
- type = rotational;
- source = horizonBank;
- center[] = {0, 0};
- min = __EVAL(-3.1416);
- max = __EVAL(3.1416);
- minAngle = __EVAL(-180);
- maxAngle = __EVAL(180);
- aspectRatio = 1;
- };
- };
- class Draw
- {
- alpha = 1.0;
- color[] = {0.25, 1.0, 0.25};
- condition = on;
- class Static
- {
- type = line;
- width = 4.0;
- points[] =
- {
- // Top (heading) line
- {{0.5, 0.11}, 1},
- {{0.5, 0.14}, 1},{},
- // Gunner field rectangle
- {{0.4, 0.86}, 1},
- {{0.4, 0.94}, 1},
- {{0.6, 0.94}, 1},
- {{0.6, 0.86}, 1},
- {{0.4, 0.86}, 1},
- {},
- {{0.4, 0.885}, 1},
- {{0.408, 0.885}, 1},
- {},
- {{0.6, 0.885}, 1},
- {{0.592, 0.885}, 1},
- {},
- {{0.5, 0.86}, 1},
- {{0.5, 0.868}, 1},
- {},
- {{0.5, 0.94}, 1},
- {{0.5, 0.932}, 1},
- {},
- {{0.52, 0.86}, 1},{{0.52, 0.82}, 1},
- {},
- {{0.48, 0.86}, 1},{{0.48, 0.82}, 1},
- {},
- {{0.55, __EVAL(0.05-0.05)}, 1},
- {{0.55, __EVAL(0.09-0.05)}, 1},
- {{0.45, __EVAL(0.09-0.05)}, 1},
- {{0.45, __EVAL(0.05-0.05)}, 1},
- {{0.55, __EVAL(0.05-0.05)}, 1}
- };
- };
- class HeadingNumber
- {
- type = text;
- source = Heading;
- sourceScale = 1;
- align = center;
- scale = 1;
- pos[] = {{0.5, __EVAL(0.056-0.05)}, 1};
- right[] = {{0.55, __EVAL(0.056-0.05)}, 1};
- down[] = {{0.5, __EVAL(0.096-0.05)}, 1};
- };
- class HeadingRotation
- {
- condition = "abs(cameraDir-heading)*( (abs(heading-cameraDir))<=355)-5";
- class HeadingHeadNumber
- {
- type = text;
- source = cameraDir;
- sourceScale = 1;
- align = center;
- scale = 1;
- pos[] = {{0.80-0.302, 0.082-0.025}, 1};
- right[] = {{0.83-0.302, 0.082-0.025}, 1};
- down[] = {{0.80-0.302, 0.113-0.025}, 1};
- };
- class HeadingArrow
- {
- type = line;
- width = 3.0;
- points[] =
- {
- #define BSIZE 0.022
- { { __EVAL(0.50 - BSIZE) , __EVAL(0.095 - 0.05) },1 },
- { { __EVAL(0.50 + BSIZE) , __EVAL(0.095 - 0.05) },1 },
- { { __EVAL(0.50 + BSIZE + 0.03) , __EVAL(0.095 - 0.025) },1 },
- { { __EVAL(0.50 + BSIZE) , __EVAL(0.095 ) },1 },
- { { __EVAL(0.50 - BSIZE) , __EVAL(0.095 ) },1 },
- { { __EVAL(0.50 - BSIZE - 0.03) , __EVAL(0.095 - 0.025) },1 },
- { { __EVAL(0.50 - BSIZE) , __EVAL(0.095 - 0.05) },1 }, {},
- };
- };
- class HeadingScaleRight
- {
- clipTL[] = {0.55, 0.05};
- clipBR[] = {0.83, 0.11};
- class lines
- {
- type = scale;
- horizontal = true;
- source = heading;
- sourceScale = 1;
- width = 4.0;
- top = 0.50;
- center = 0.50;
- bottom = 0.85;
- lineXleft = 0.11;
- lineYright = 0.10;
- lineXleftMajor = 0.11;
- lineYrightMajor = 0.09;
- majorLineEach = 2;
- numberEach = 2;
- step = 22.5;
- stepSize = __EVAL((0.80 - 0.20) / 8);
- align = center;
- scale = 1;
- pos[] = {__EVAL(0.52 - 0.024), 0.05};
- right[] = {__EVAL(0.56 - 0.024), 0.05};
- down[] = {__EVAL(0.52 - 0.024), 0.09};
- };
- };
- class HeadingScaleMidle
- {
- type = scale;
- horizontal = true;
- source = heading;
- sourceScale = 1;
- width = 4.0;
- top = 0.45;
- center = 0.50;
- bottom = 0.55;
- lineXleft = 0.11;
- lineYright = 0.10;
- lineXleftMajor = 0.11;
- lineYrightMajor = 0.10;
- majorLineEach = 2;
- step = 22.5;
- stepSize = __EVAL((0.80 - 0.20) / 8);
- align = center;
- scale = 1;
- numberEach = 0; // hidden
- pos[] = {0.47, 0.05};
- right[] = {0.50, 0.05};
- down[] = {0.45, 0.09};
- };
- class HeadingScaleLeft
- {
- clipTL[] = {0.18, 0.05};
- clipBR[] = {0.45, 0.11};
- class lines
- {
- type = scale;
- horizontal = true;
- source = heading;
- sourceScale = 1;
- width = 4.0;
- top = 0.15;
- center = 0.50;
- bottom = 0.55;
- lineXleft = 0.11;
- lineYright = 0.10;
- lineXleftMajor = 0.11;
- lineYrightMajor = 0.09;
- majorLineEach = 2;
- numberEach = 2;
- step = 22.5;
- stepSize = __EVAL((0.80 - 0.20) / 8);
- align = center;
- scale = 1;
- pos[] = {__EVAL(0.17-0.024), 0.05};
- right[] = {__EVAL(0.21-0.024), 0.05};
- down[] = {__EVAL(0.17-0.024), 0.09};
- };
- };
- };
- class HeadingScaleFull
- {
- condition = "4-abs(cameraDir-heading)*( (abs(heading-cameraDir))<=355)";
- class HeadingScale
- {
- clipTL[] = {0.18, 0.0};
- clipBR[] = {0.83, 1.0};
- class lines
- {
- type = scale;
- horizontal = true;
- source = heading;
- sourceScale = 1;
- width = 4.0;
- top = 0.15;
- center = 0.50;
- bottom = 0.85;
- lineXleft = 0.11;
- lineYright = 0.10;
- lineXleftMajor = 0.11;
- lineYrightMajor = 0.09;
- majorLineEach = 2;
- numberEach = 2;
- step = 22.5;
- stepSize = __EVAL((0.80 - 0.20) / 8);
- align = center;
- scale = 1;
- pos[] = {__EVAL(0.52 - 0.374), 0.05};
- right[] = {__EVAL(0.56 - 0.374), 0.05};
- down[] = {__EVAL(0.52 - 0.374), 0.09};
- };
- };
- };
- class HorizonBankRot
- {
- type = polygon;
- width = 4.0;
- #define CIRCLE_POLYGON(STEP_INIT,STEP_SIZE) \
- { \
- {HorizonBankRot,1,{0,0}, 1}, \
- {HorizonBankRot, {__EVAL((0.015) * sin(0+STEP_SIZE*(STEP_INIT+0))), __EVAL(-(0.015) * cos(0+STEP_SIZE*(STEP_INIT+0)) / XtoYscale)}, 1}, \
- {HorizonBankRot, {__EVAL((0.015) * sin(0+STEP_SIZE*(STEP_INIT+1))), __EVAL(-(0.015) * cos(0+STEP_SIZE*(STEP_INIT+1)) / XtoYscale)}, 1}, \
- {HorizonBankRot, {__EVAL((0.015) * sin(0+STEP_SIZE*(STEP_INIT+2))), __EVAL(-(0.015) * cos(0+STEP_SIZE*(STEP_INIT+2)) / XtoYscale)}, 1}, \
- }
- points[] =
- {
- CIRCLE_POLYGON(1,10),
- CIRCLE_POLYGON(3,10),
- CIRCLE_POLYGON(5,10),
- CIRCLE_POLYGON(7,10),
- CIRCLE_POLYGON(9,10),
- CIRCLE_POLYGON(11,10),
- CIRCLE_POLYGON(13,10),
- CIRCLE_POLYGON(15,10),
- CIRCLE_POLYGON(17,10),
- CIRCLE_POLYGON(19,10),
- CIRCLE_POLYGON(21,10),
- CIRCLE_POLYGON(23,10),
- CIRCLE_POLYGON(25,10),
- CIRCLE_POLYGON(27,10),
- CIRCLE_POLYGON(29,10),
- CIRCLE_POLYGON(31,10),
- CIRCLE_POLYGON(33,10),
- CIRCLE_POLYGON(35,10),
- /*
- //CIRCLE(HorizonBankRot, 0.015)
- {
- {HorizonBankRot,1,{0,0}, 1},
- POINT_MARK(HorizonBankRot,0.015,0),
- POINT_MARK(HorizonBankRot,0.015,0),
- POINT_MARK(HorizonBankRot,0.015,0+),
- },
- {
- {HorizonBankRot,1,{0,0}, 1},
- POINT_MARK(HorizonBankRot,0.015,90+45*2),
- POINT_MARK(HorizonBankRot,0.015,90+45*1),
- POINT_MARK(HorizonBankRot,0.015,90+45*0),
- },
- {
- {HorizonBankRot,1,{0,0}, 1},
- POINT_MARK(HorizonBankRot,0.015,90+45*4),
- POINT_MARK(HorizonBankRot,0.015,90+45*3),
- POINT_MARK(HorizonBankRot,0.015,90+45*2),
- },
- {
- {HorizonBankRot,1,{0,0}, 1},
- POINT_MARK(HorizonBankRot,0.015,90+45*6),
- POINT_MARK(HorizonBankRot,0.015,90+45*5),
- POINT_MARK(HorizonBankRot,0.015,90+45*4),
- },*/
- };
- };
- class CollectiveGroup
- {
- condition = simulRTD;
- class CollectiveText
- {
- type = text;
- source = static;
- text = "%";
- align = right;
- scale = 1;
- pos[] = {{0.22, 0.20}, 1};
- right[] = {{0.28, 0.20}, 1};
- down[] = {{0.22, 0.24}, 1};
- };
- class CollectiveNumber
- {
- type = text;
- source = rtdCollective;
- sourceScale = 100;
- align = left;
- scale = 1;
- pos[] = {{0.22, 0.20}, 1};
- right[] = {{0.28, 0.20}, 1};
- down[] = {{0.22, 0.24}, 1};
- };
- };
- class SpeedNumber
- {
- type = text;
- source = speed;
- sourceScale = 3.6;
- align = right;
- scale = 1;
- pos[] = {{0.16, 0.48}, 1};
- right[] = {{0.22, 0.48}, 1};
- down[] = {{0.16, 0.52}, 1};
- };
- class AltNumber
- {
- type = text;
- source = altitudeAGL;
- sourceScale = 1;
- sourceOffset = -2;
- align = left;
- scale = 1;
- pos[] = {{__EVAL(0.84-0.03), 0.48}, 1};
- right[] = {{__EVAL(0.90-0.03), 0.48}, 1};
- down[] = {{__EVAL(0.84-0.03), 0.52}, 1};
- };
- class HoverMode
- {
- condition = "autohover";
- HUD_TEXT_STATIC(0.005, 0.075 ,0.04, 0.035,right,"HOVER",HoverText)
- };
- class CruiseMode
- {
- condition = "((altitudeASL-27) min 1) - autohover";
- HUD_TEXT_STATIC(0.005, 0.075 ,0.04, 0.035,right,"CRUISE",CruiseText)
- class AltNumberASL
- {
- type = text;
- source = altitudeASL;
- sourceScale = 1;
- align = left;
- scale = 1;
- pos[] = {{__EVAL(0.84-0.03), __EVAL(0.48-0.32)}, 1};
- right[] = {{__EVAL(0.90-0.03), __EVAL(0.48-0.32)}, 1};
- down[] = {{__EVAL(0.84-0.03), __EVAL(0.52-0.32)}, 1};
- };
- };
- class TransitionMode
- {
- condition = "((27-altitudeASL) min 1) - autohover";
- HUD_TEXT_STATIC(0.005, 0.075 ,0.04, 0.035,right,"TRANS",TransText)
- };
- class HoverModeHide
- {
- condition = "1-autohover";
- class VelocityLine
- {
- type = line;
- width = 4.0;
- points[] =
- {
- CIRCLE(VelocityVector,0.02),{},
- {VelocityVector, { 0.04, __EVAL(0/XtoYscale)}, 1}, {VelocityVector, { 0.02, __EVAL(0/XtoYscale)}, 1},{},
- {VelocityVector, {-0.04, __EVAL(0/XtoYscale)}, 1}, {VelocityVector, {-0.02, __EVAL(0/XtoYscale)}, 1},{},
- {VelocityVector, {0, __EVAL(-0.04/XtoYscale)}, 1}, {VelocityVector, {0, __EVAL(-0.02/XtoYscale)}, 1},{}
- };
- };
- };
- /* ~~~~ GEAR INFO ~~~~ */
- // Group to condition GearText by gear being extended
- class GearGroup
- {
- type = group;
- condition = ils;
- // "GEAR" on gear indicator
- class GearText
- {
- type = text;
- source = static;
- text = "GEAR";
- align = right;
- scale = 1;
- pos[] = {{XY_Scaled(0.015 + 0.00, 0.37 - 0.03)}, 1};
- right[] = {{XY_Scaled(0.015 + 0.04, 0.37 - 0.03)}, 1};
- down[] = {{XY_Scaled(0.015 + 0.00, 0.37 - 0.00)}, 1};
- };
- };
- class LaserGroup
- {
- condition = "laseron";
- HUD_TEXT_STATIC(0.015, 0.370 ,0.04, 0.035,right,"LASER",laserText)
- };
- class RadarGroup
- {
- condition = "activeSensorsOn";
- HUD_TEXT_STATIC(0.015, 0.410 ,0.04, 0.035,right,"RADAR",radarText)
- };
- class VerticalSpeedScale
- {
- type = line;
- width = 4.0;
- points[] =
- {
- // Gunner Aim cross
- {WeaponAimRelative,1, { -0.03, 0.0},1},
- {WeaponAimRelative,1, { -0.02, 0.0},1},{},
- {WeaponAimRelative,1, { 0.02, 0.0},1},
- {WeaponAimRelative,1, { 0.03, 0.0},1},{},
- {WeaponAimRelative,1, { 0.0, -0.02},1},
- {WeaponAimRelative,1, { 0.0, -0.03},1},{},
- {WeaponAimRelative,1, { 0.0, 0.02},1},
- {WeaponAimRelative,1, { 0.0, 0.03},1},
- {},
- // Aircraft centerline
- {HUDCenter,1, { -0.03, 0.0},1},
- {HUDCenter,1, { -0.01, 0.0},1},{},
- {HUDCenter,1, { 0.01, 0.0},1},
- {HUDCenter,1, { 0.03, 0.0},1},{},
- {HUDCenter,1, { 0.0, -0.01},1},
- {HUDCenter,1, { 0.0, -0.03},1},{},
- {HUDCenter,1, { 0.0, 0.01},1},
- {HUDCenter,1, { 0.0, 0.03},1},
- {},
- // Side vspeed scale
- #define SCALE_SPACE 0.032
- {{__EVAL(0.870+0.045), __EVAL(0.50 - SCALE_SPACE * 10)}, 1},
- {{__EVAL(0.890+0.045), __EVAL(0.50 - SCALE_SPACE * 10)}, 1},{},
- {{__EVAL(0.870+0.000), __EVAL(0.50 - SCALE_SPACE * 10)}, 1},
- {{__EVAL(0.890+0.000), __EVAL(0.50 - SCALE_SPACE * 10)}, 1},{},
- {{__EVAL(0.870+0.045), __EVAL(0.50 - SCALE_SPACE * 5)}, 1},
- {{__EVAL(0.890+0.045), __EVAL(0.50 - SCALE_SPACE * 5)}, 1}, {},
- {{0.870, __EVAL(0.50 - SCALE_SPACE * 5)}, 1},
- {{0.890, __EVAL(0.50 - SCALE_SPACE * 5)}, 1}, {},
- {{0.875, __EVAL(0.50 - SCALE_SPACE * 4)}, 1},
- {{0.885, __EVAL(0.50 - SCALE_SPACE * 4)}, 1}, {},
- {{0.875, __EVAL(0.50 - SCALE_SPACE * 3)}, 1},
- {{0.885, __EVAL(0.50 - SCALE_SPACE * 3)}, 1}, {},
- {{0.875, __EVAL(0.50 - SCALE_SPACE * 2)}, 1},
- {{0.885, __EVAL(0.50 - SCALE_SPACE * 2)}, 1}, {},
- {{0.875, __EVAL(0.50 - SCALE_SPACE * 1)}, 1},
- {{0.885, __EVAL(0.50 - SCALE_SPACE * 1)}, 1}, {},
- {{0.870, __EVAL(0.50 - SCALE_SPACE * 0)}, 1},
- {{0.890, __EVAL(0.50 - SCALE_SPACE * 0)}, 1}, {},
- {{__EVAL(0.870+0.045), __EVAL(0.50 - SCALE_SPACE * 0)}, 1},
- {{__EVAL(0.890+0.045), __EVAL(0.50 - SCALE_SPACE * 0)}, 1}, {},
- {{__EVAL(0.870+0.045), __EVAL(0.50 + SCALE_SPACE * 5)}, 1},
- {{__EVAL(0.890+0.045), __EVAL(0.50 + SCALE_SPACE * 5)}, 1}, {},
- {{0.870, __EVAL(0.50 + SCALE_SPACE * 5)}, 1},
- {{0.890, __EVAL(0.50 + SCALE_SPACE * 5)}, 1}, {},
- {{0.875, __EVAL(0.50 + SCALE_SPACE * 4)}, 1},
- {{0.885, __EVAL(0.50 + SCALE_SPACE * 4)}, 1}, {},
- {{0.875, __EVAL(0.50 + SCALE_SPACE * 3)}, 1},
- {{0.885, __EVAL(0.50 + SCALE_SPACE * 3)}, 1}, {},
- {{0.875, __EVAL(0.50 + SCALE_SPACE * 2)}, 1},
- {{0.885, __EVAL(0.50 + SCALE_SPACE * 2)}, 1}, {},
- {{0.875, __EVAL(0.50 + SCALE_SPACE * 1)}, 1},
- {{0.885, __EVAL(0.50 + SCALE_SPACE * 1)}, 1},{},
- // right side
- {{__EVAL(0.875+0.045), __EVAL(0.50 + SCALE_SPACE * 6)}, 1},
- {{__EVAL(0.885+0.045), __EVAL(0.50 + SCALE_SPACE * 6)}, 1}, {},
- {{__EVAL(0.875+0.045), __EVAL(0.50 + SCALE_SPACE * 7)}, 1},
- {{__EVAL(0.885+0.045), __EVAL(0.50 + SCALE_SPACE * 7)}, 1}, {},
- {{__EVAL(0.875+0.045), __EVAL(0.50 + SCALE_SPACE * 8)}, 1},
- {{__EVAL(0.885+0.045), __EVAL(0.50 + SCALE_SPACE * 8)}, 1}, {},
- {{__EVAL(0.875+0.045), __EVAL(0.50 + SCALE_SPACE * 9)}, 1},
- {{__EVAL(0.885+0.045), __EVAL(0.50 + SCALE_SPACE * 9)}, 1}, {},
- {{__EVAL(0.870+0.045), __EVAL(0.50 + SCALE_SPACE * 10)}, 1},
- {{__EVAL(0.890+0.045), __EVAL(0.50 + SCALE_SPACE * 10)}, 1},{},
- {{__EVAL(0.870+0.000), __EVAL(0.50 + SCALE_SPACE * 10)}, 1},
- {{__EVAL(0.890+0.000), __EVAL(0.50 + SCALE_SPACE * 10)}, 1},{},
- };
- };
- class VerticalSpeedArrow
- {
- type = polygon;
- points[] =
- {
- // Side vspeed arrow
- {
- {VerticalSpeedBone, {0.85, 0.488}, 1},
- {VerticalSpeedBone, {0.87, 0.50}, 1},
- {VerticalSpeedBone, {0.85, 0.512}, 1},
- }
- };
- };
- class RadarAltitude
- {
- condition = "101-altitudeAGL";
- class RadarHeight
- {
- type =line;
- width =15;
- points[]=
- {
- { {0.RADAR_X, 0.RADAR_Y},1},
- {RadarHeight, {0, 0.0},1},{},
- };
- };
- };
- class HorizonLine
- {
- condition = "1-autohover";
- clipTL[] = {0.2, 0.145};
- clipBR[] = {0.8, 0.855};
- class HorizonLineDraw
- {
- type = line;
- width = 4.0;
- #define lineSegmentWidth 0.0375
- points[] =
- {
- {HorizonVector, {__EVAL(-6 * lineSegmentWidth), 0.0}, 1},
- {HorizonVector, {__EVAL(-5 * lineSegmentWidth), 0.0}, 1},
- {},
- {HorizonVector, {__EVAL(-4 * lineSegmentWidth), 0.0}, 1},
- {HorizonVector, {__EVAL(-3 * lineSegmentWidth), 0.0}, 1},
- {},
- {HorizonVector, {__EVAL(-2 * lineSegmentWidth), 0.0}, 1},
- {HorizonVector, {__EVAL(-1 * lineSegmentWidth), 0.0}, 1},
- {},
- {HorizonVector, {__EVAL(1 * lineSegmentWidth), 0.0}, 1},
- {HorizonVector, {__EVAL(2 * lineSegmentWidth), 0.0}, 1},
- {},
- {HorizonVector, {__EVAL(3 * lineSegmentWidth), 0.0}, 1},
- {HorizonVector, {__EVAL(4 * lineSegmentWidth), 0.0}, 1},
- {},
- {HorizonVector, {__EVAL(5 * lineSegmentWidth), 0.0}, 1},
- {HorizonVector, {__EVAL(6 * lineSegmentWidth), 0.0}, 1}
- };
- };
- };
- class Gunner
- {
- type = line;
- width = 4.0;
- points[] =
- {
- // Gunner aim rectangle
- {GunnerAim, {__EVAL(0.5 - 0.015), __EVAL(0.9 - 0.008)}, 1},
- {GunnerAim, {__EVAL(0.5 - 0.015), __EVAL(0.9 + 0.008)}, 1},
- {GunnerAim, {__EVAL(0.5 + 0.015), __EVAL(0.9 + 0.008)}, 1},
- {GunnerAim, {__EVAL(0.5 + 0.015), __EVAL(0.9 - 0.008)}, 1},
- {GunnerAim, {__EVAL(0.5 - 0.015), __EVAL(0.9 - 0.008)}, 1}
- };
- };
- class WeaponsText
- {
- condition = "1- mgun";
- class Weapons
- {
- type = text;
- source = weapon;
- sourceScale = 1;
- align = left;
- scale = 0.5;
- pos[] = {{__EVAL(0.00+0.38), __EVAL(0.000+0.880-0.011)}, 1};
- right[] = {{__EVAL(0.035+0.38), __EVAL(0.000+0.880-0.011)}, 1};
- down[] = {{__EVAL(0.00+0.38), __EVAL(0.035+0.880-0.011)}, 1};
- };
- };
- class Ammo
- {
- type = text;
- source = ammo;
- sourceScale = 1;
- align = left;
- scale = 0.5;
- pos[] = {{__EVAL(0.00+0.38), __EVAL(0.000+0.880+0.021)}, 1};
- right[] = {{__EVAL(0.035+0.38), __EVAL(0.000+0.880+0.021)}, 1};
- down[] = {{__EVAL(0.00+0.38), __EVAL(0.035+0.880+0.021)}, 1};
- };
- class MGun
- {
- condition = mgun;
- class Weapons
- {
- type = text;
- source = static;
- text = "GUN";
- sourceScale = 1;
- align = left;
- scale = 0.5;
- pos[] = {{__EVAL(0.00+0.38), __EVAL(0.000+0.880-0.011)}, 1};
- right[] = {{__EVAL(0.035+0.38), __EVAL(0.000+0.880-0.011)}, 1};
- down[] = {{__EVAL(0.00+0.38), __EVAL(0.035+0.880-0.011)}, 1};
- };
- class Circle
- {
- type = line;
- width = 4.0;
- points[] =
- {
- POINT_1B(WeaponAimRelative,0.025,0.0),
- POINT_1B(WeaponAimRelative,0.010,0.0), {},
- POINT_1B(WeaponAimRelative,0.0,0.025),
- POINT_1B(WeaponAimRelative,0.0,0.010), {},
- POINT_1B(WeaponAimRelative,-0.025,0.0),
- POINT_1B(WeaponAimRelative,-0.010,0.0), {},
- POINT_1B(WeaponAimRelative,0.0,-0.025),
- POINT_1B(WeaponAimRelative,0.0,-0.010), {},
- CIRCLE(WeaponAimRelative,0.010)
- };
- };
- };
- class AAMissile
- {
- condition = AAmissile;
- class Circle
- {
- type = line;
- width = 4.0;
- points[] =
- {
- CIRCLE_BIG_2B(ForwardVector,HUDCenter,0.25)
- };
- };
- };
- class ATMissile
- {
- condition = ATmissile;
- class Circle
- {
- type = line;
- width = 4.0;
- points[] =
- {
- {ForwardVector, 1, HUDCenter,{-0.15, __EVAL(-0.15 / XtoYscale)}, 1},
- {ForwardVector, 1, HUDCenter,{-0.15, __EVAL(-0.13 / XtoYscale)}, 1},
- {},
- {ForwardVector, 1, HUDCenter,{-0.15, __EVAL(0.15 / XtoYscale)}, 1},
- {ForwardVector, 1, HUDCenter,{-0.15, __EVAL(0.13 / XtoYscale)}, 1},
- {},
- {ForwardVector, 1, HUDCenter,{0.15, __EVAL(-0.15 / XtoYscale)}, 1},
- {ForwardVector, 1, HUDCenter,{0.15, __EVAL(-0.13 / XtoYscale)}, 1},
- {},
- {ForwardVector, 1, HUDCenter,{0.15, __EVAL(0.15 / XtoYscale)}, 1},
- {ForwardVector, 1, HUDCenter,{0.15, __EVAL(0.13 / XtoYscale)}, 1},
- {},
- {ForwardVector, 1, HUDCenter,{-0.15, __EVAL(-0.15 / XtoYscale)}, 1},
- {ForwardVector, 1, HUDCenter,{-0.13, __EVAL(-0.15 / XtoYscale)}, 1},
- {},
- {ForwardVector, 1, HUDCenter,{-0.15, __EVAL(0.15 / XtoYscale)}, 1},
- {ForwardVector, 1, HUDCenter,{-0.13, __EVAL(0.15 / XtoYscale)}, 1},
- {},
- {ForwardVector, 1, HUDCenter,{0.15, __EVAL(-0.15 / XtoYscale)}, 1},
- {ForwardVector, 1, HUDCenter,{0.13, __EVAL(-0.15 / XtoYscale)}, 1},
- {},
- {ForwardVector, 1, HUDCenter,{0.15, __EVAL(0.15 / XtoYscale)}, 1},
- {ForwardVector, 1, HUDCenter,{0.13, __EVAL(0.15 / XtoYscale)}, 1}
- };
- };
- };
- class Rockets
- {
- condition = "rocket";
- class RocketDummy
- {
- type = line;
- width = 3.0;
- points[] =
- {
- // top line
- {ImpactPoint,{ 0.01, __EVAL(-0.03/XtoYscale)}, 1},
- {ImpactPoint,{ -0.01, __EVAL(-0.03/XtoYscale)}, 1},
- {},
- // bottom line
- {ImpactPoint,{ 0.01, __EVAL(0.03/XtoYscale)}, 1},
- {ImpactPoint,{ -0.01, __EVAL(0.03/XtoYscale)}, 1},
- {},
- // middle line
- {ImpactPoint,{ 0.00, __EVAL(-0.03/XtoYscale)}, 1},
- {ImpactPoint,{ 0.00, __EVAL(0.03/XtoYscale)}, 1},
- {}
- };
- };
- };
- class WP
- {
- condition = "wpvalid - autohover";
- class WPdist
- {
- type = text;
- source = wpdist;
- sourceScale = 0.001;
- sourcePrecision = 1;
- align = left;
- scale = 1;
- pos[] = {{XY_Scaled(0.135 + 0.00 + 0.10, 0.805 - 0.014 - 0.0035)}, 1};
- right[] = {{XY_Scaled(0.135 + 0.04 + 0.10, 0.805 - 0.014 - 0.0035)}, 1};
- down[] = {{XY_Scaled(0.135 + 0.00 + 0.10, 0.805 + 0.014 - 0.0035)}, 1};
- };
- class WPIndex
- {
- type = text;
- source = wpIndex;
- sourceScale = 1;
- sourceLength = 2;
- align = right;
- scale = 1;
- pos[] = {{XY_Scaled(0.125 + 0.00 - 0.029, 0.805 - 0.012 - 0.0035)}, 1};
- right[] = {{XY_Scaled(0.125 + 0.03 - 0.029, 0.805 - 0.012 - 0.0035)}, 1};
- down[] = {{XY_Scaled(0.125 + 0.00 - 0.029, 0.805 + 0.012 - 0.0035)}, 1};
- };
- HUD_TEXT_STATIC(0.075, 0.775 ,0.03, 0.025,right,"W",WPstatic)
- HUD_TEXT_STATIC(0.075 +0.035, 0.775+0.025 ,0.03, 0.025,right,"A",WPAuto)
- HUD_TEXT_STATIC(0.075 +0.16, 0.775 ,0.03, 0.028,right,"KM",WPKM)
- HUD_TEXT_STATIC(0.075 +0.11, 0.775+0.025 ,0.03, 0.025,right,"-:--",WPTime)
- class WP
- {
- width = 2;
- type = line;
- points[] =
- {
- // Top (waypoint) arrow
- {WPPoint, 1 ,LimitWaypoint, 1, {-0.02, 0.04}, 1},
- {WPPoint, 1 ,LimitWaypoint, 1, { 0.00, 0.02}, 1},
- {WPPoint, 1 ,LimitWaypoint, 1, { 0.02, 0.04}, 1},
- {}/*,
- {wppointtoview, 1, {HorizonBankRotFull, +0.015, -0.035}, 1},
- {wppointtoview, 1, {HorizonBankRotFull, 0.0, 0.0}, 1},
- {wppointtoview, 1, {HorizonBankRotFull, -0.015, -0.035}, 1},*/
- };
- };
- };
- class WeaponsLocking
- {
- condition = "missilelocking";
- blinkingPattern[] = {0.2, 0.2};
- blinkingStartsOn = true;
- class Text
- {
- type = text;
- source = static;
- text = "LOCKING";
- align = center;
- scale = 1;
- pos[] = {{XY_Scaled(0.493 + 0.00, 0.805 - 0.025)}, 1};
- right[] = {{XY_Scaled(0.493 + 0.06, 0.805 - 0.025)}, 1};
- down[] = {{XY_Scaled(0.493 + 0.00, 0.805 + 0.025)}, 1};
- };
- };
- class IncomingMissile
- {
- condition = "incomingmissile";
- blinkingPattern[] = {0.3, 0.3};
- blinkingStartsOn = true;
- class Text
- {
- type = text;
- source = static;
- text = "!INCOMING MISSILE!";
- align = center;
- scale = 1;
- pos[] = {{XY_Scaled(0.485 + 0.00, 0.42 - 0.20)}, 1};
- right[] = {{XY_Scaled(0.485 + 0.06, 0.42 - 0.20)}, 1};
- down[] = {{XY_Scaled(0.485 + 0.00, 0.42 - 0.15)}, 1};
- };
- };
- class RadarTargets
- {
- class RadarBoxes
- {
- type = radartoview;
- pos0[] = {__EVAL(PosX0Center),__EVAL(PosY0Center)};
- pos10[] = {__EVAL((PosX0Center)+(SizeX10deg)),__EVAL((PosY0Center)+(SizeY10deg))};
- width = 4;
- points[]=
- {
- POINT2(-0.0035,-0.0035),
- POINT2(+0.0035,-0.0035),
- POINT2(+0.0035,+0.0035),
- POINT2(-0.0035,+0.0035),
- POINT2(-0.0035,-0.0035)
- };
- };
- };
- class TargetDiamond
- {
- class shape
- {
- type=line;
- width = 3;
- points[]={
- #define SPACING 0.0025
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 + SPACING * (2+1 ), 0.00)}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 + SPACING * (2+3 ), 0.00)}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 + SPACING * (2+5 ), 0.00)}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 + SPACING * (2+7 ), 0.00)}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 + SPACING * (2+9 ), 0.00)}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 + SPACING * (2+11 ), 0.00)}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 + SPACING * (2+13 ), 0.00)}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 + SPACING * (2+15 ), 0.00)}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 + SPACING * (2+17 ), 0.00)}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 + SPACING * (2+19 ), 0.00)}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 - SPACING * (2+1 ), 0.00)}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 - SPACING * (2+3 ), 0.00)}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 - SPACING * (2+5 ), 0.00)}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 - SPACING * (2+7 ), 0.00)}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 - SPACING * (2+9 ), 0.00)}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 - SPACING * (2+11 ), 0.00)}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 - SPACING * (2+13 ), 0.00)}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 - SPACING * (2+15 ), 0.00)}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 - SPACING * (2+17 ), 0.00)}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00 - SPACING * (2+19 ), 0.00)}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 + SPACING * (2+1 ))}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 + SPACING * (2+3 ))}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 + SPACING * (2+5 ))}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 + SPACING * (2+7 ))}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 + SPACING * (2+9 ))}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 + SPACING * (2+11 ))}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 + SPACING * (2+13 ))}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 + SPACING * (2+15 ))}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 + SPACING * (2+17 ))}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 + SPACING * (2+19 ))}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 - SPACING * (2+1 ))}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 - SPACING * (2+3 ))}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 - SPACING * (2+5 ))}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 - SPACING * (2+7 ))}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 - SPACING * (2+9 ))}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 - SPACING * (2+11 ))}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 - SPACING * (2+13 ))}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 - SPACING * (2+15 ))}, 1},{},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 - SPACING * (2+17 ))}, 1},
- {Target, 1, Limit0109, 1, {XY_Scaled(0.00, 0.00 - SPACING * (2+19 ))}, 1},{},
- };
- };
- };
- class TargetLocked
- {
- condition = "missilelocked";
- HUD_TEXT_STATIC(0.493,0.820-0.041,0.040,0.031,center,"VALID LOCK",TargetLockedText)
- HUD_TEXT_STATIC(0.127+0.49,0.880-0.011,0.035,0.035,right,"TOF:",TimeOfFlightText)
- HUD_TEXT_STATIC(0.125+0.49,0.880+0.021,0.035,0.035,right,"DIST:",DistanceText)
- class TOF_source
- {
- type = text;
- scale = 1;
- sourceScale = 1;
- source = missileflighttime;
- align = right;
- pos[] = {{__EVAL(0.100+0.639), __EVAL(0.000+0.880-0.011)} ,1};
- right[] = {{__EVAL(0.135+0.639), __EVAL(0.000+0.880-0.011)}, 1};
- down[] = {{__EVAL(0.100+0.639), __EVAL(0.035+0.880-0.011)}, 1};
- };
- class TargetDistance: TOF_source
- {
- source = targetDist;
- sourceLength = 0;
- sourcePrecision = 1;
- sourceScale = 0.001;
- align = right;
- pos[] = {{__EVAL(0.100+0.639), __EVAL(0.000+0.880+0.021)} ,1};
- right[] = {{__EVAL(0.135+0.639), __EVAL(0.000+0.880+0.021)}, 1};
- down[] = {{__EVAL(0.100+0.639), __EVAL(0.035+0.880+0.021)}, 1};
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement