Guest User

Untitled

a guest
May 3rd, 2017
104
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. class PylonMissile_1Rnd_AAA_missiles: PylonRack_1Rnd_AAA_missiles // no ejector ASRAAM AIM 132
  3. {
  4. hardpoints[] = {"B_ASRAAM"};
  5. model = "\A3\Weapons_F\DynamicLoadout\PylonMissile_1x_Bomb_04_F.p3d";
  6. mass = 88;
  7. class mfdElements
  8. {
  9. class Heli_Attack_01
  10. {
  11. class Bones {};
  12. class Draw
  13. {
  14. class BackgroundGroup
  15. {
  16. //condition = "PylonAmmoRelative >= 0";
  17. color[] = {0.0, 0.0, 0.0};
  18. class Background
  19. {
  20. type = polygon;
  21. points[] =
  22. {
  23. {
  24. {{__EVAL(-0.035+0.03),__EVAL(-0.09+0.06)},1},
  25. {{__EVAL(+0.035+0.03),__EVAL(-0.09+0.06)},1},
  26. {{__EVAL(+0.035+0.03),__EVAL(+0.09+0.06)},1},
  27. {{__EVAL(-0.035+0.03),__EVAL(+0.09+0.06)},1},
  28. }
  29. };
  30. };
  31. };
  32. class Default
  33. {
  34. condition = "PylonAmmoRelative>0";
  35. color[] = {0,0.12,0};
  36. class Shape
  37. {
  38. type = line;
  39. width = 4.0;
  40. points[] =
  41. {
  42. #define SCALE_IMG 750
  43. #define OFFSET_IMG_X -0.31
  44. #define OFFSET_IMG_Y -0.28
  45. {{__EVAL(274/SCALE_IMG + OFFSET_IMG_X),__EVAL((215/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  46. {{__EVAL(256/SCALE_IMG + OFFSET_IMG_X),__EVAL((227/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  47. {{__EVAL(237/SCALE_IMG + OFFSET_IMG_X),__EVAL((215/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  48. {},
  49. {{__EVAL(274/SCALE_IMG + OFFSET_IMG_X),__EVAL((317/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  50. {{__EVAL(274/SCALE_IMG + OFFSET_IMG_X),__EVAL((215/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  51. {{__EVAL(274/SCALE_IMG + OFFSET_IMG_X),__EVAL((209/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  52. {{__EVAL(272/SCALE_IMG + OFFSET_IMG_X),__EVAL((204/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  53. {{__EVAL(270/SCALE_IMG + OFFSET_IMG_X),__EVAL((200/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  54. {{__EVAL(266/SCALE_IMG + OFFSET_IMG_X),__EVAL((198/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  55. {{__EVAL(262/SCALE_IMG + OFFSET_IMG_X),__EVAL((196/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  56. {{__EVAL(259/SCALE_IMG + OFFSET_IMG_X),__EVAL((195/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  57. {{__EVAL(256/SCALE_IMG + OFFSET_IMG_X),__EVAL((194/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  58. {{__EVAL(255/SCALE_IMG + OFFSET_IMG_X),__EVAL((194/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  59. {{__EVAL(252/SCALE_IMG + OFFSET_IMG_X),__EVAL((195/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  60. {{__EVAL(249/SCALE_IMG + OFFSET_IMG_X),__EVAL((196/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  61. {{__EVAL(245/SCALE_IMG + OFFSET_IMG_X),__EVAL((198/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  62. {{__EVAL(242/SCALE_IMG + OFFSET_IMG_X),__EVAL((200/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  63. {{__EVAL(239/SCALE_IMG + OFFSET_IMG_X),__EVAL((204/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  64. {{__EVAL(238/SCALE_IMG + OFFSET_IMG_X),__EVAL((209/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  65. {{__EVAL(237/SCALE_IMG + OFFSET_IMG_X),__EVAL((215/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  66. {{__EVAL(237/SCALE_IMG + OFFSET_IMG_X),__EVAL((317/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  67. {{__EVAL(274/SCALE_IMG + OFFSET_IMG_X),__EVAL((317/SCALE_IMG)/XtoYscale + OFFSET_IMG_Y)},1},
  68. {}
  69. };
  70. };
  71. HUD_TEXT_STATIC(0.03, +0.05,0.03, 0.025,center,"AA",PylonText1)
  72. class Ammo
  73. {
  74. type = text;
  75. source = PylonAmmo;
  76. sourceIndex = 1;
  77. sourceScale = 1;
  78.  
  79. align = center;
  80. scale = 1;
  81. pos[] = {{__EVAL(0.00+0.03), __EVAL(0.000+0.09)}, 1};
  82. right[] = {{__EVAL(0.04+0.03), __EVAL(0.000+0.09)}, 1};
  83. down[] = {{__EVAL(0.00+0.03), __EVAL(0.035+0.09)}, 1};
  84. };
  85. };
  86. class Selected: Default
  87. {
  88. condition = "(PylonSelected + PylonAmmoRelative)/2";
  89. color[] = {0.99,0.94,0.59};
  90. class Shape: Shape {};
  91. class PylonText1: PylonText1 {};
  92. class Ammo: Ammo {};
  93. };
  94. class Empty: Default
  95. {
  96. condition = "PylonAmmoRelative <= 0";
  97. color[] = {1.0, 0.0, 0.0, 1.0};
  98. class Shape: Shape {};
  99. class PylonText1: PylonText1 {};
  100. class Ammo: Ammo
  101. {
  102. source = static;
  103. text = "-";
  104. };
  105. };
  106. };
  107. };
  108. };
  109. };
RAW Paste Data