config.cpp 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. //Get this addons macro
  2. //get the macro for the air subaddon
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon ETA
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_eta_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(ETA)
  13. {
  14. addonRootClass=macro_patch_name(vehicles)
  15. requiredAddons[]=
  16. {
  17. macro_patch_name(vehicles)
  18. };
  19. requiredVersion=0.1;
  20. units[]=
  21. {
  22. macro_new_vehicle(eta,lime_Mk2),
  23. macro_new_vehicle(eta,green_Mk2),
  24. macro_new_vehicle(eta,red_Mk2),
  25. macro_new_vehicle(eta,yellow_Mk2),
  26. macro_new_vehicle(eta,blue_Mk2),
  27. macro_new_vehicle(eta,grey_Mk2),
  28. macro_new_vehicle(eta,white_Mk2),
  29. macro_new_vehicle(eta,orange_Mk2),
  30. macro_new_vehicle(eta,venom_Mk2)
  31. };
  32. weapons[]=
  33. {
  34. };
  35. };
  36. };
  37. #include "../../common/sensor_templates.hpp"
  38. class CfgVehicles
  39. {
  40. class Plane_Base_F;
  41. class swop_eta2:Plane_Base_F
  42. {
  43. class ACE_SelfActions;
  44. };
  45. class macro_new_vehicle(eta,lime_Mk2): swop_eta2
  46. {
  47. side=1;
  48. scope=2;
  49. scopeCurator=2;
  50. displayName = "ETA-3 (Lime) Mk.II";
  51. forceInGarage = 1;
  52. //dmg stuff
  53. vtol = 4;
  54. ballisticsComputer = 1+8;
  55. airBrakeFrictionCoef = 80.4;
  56. armor = 200;
  57. scope = 2;
  58. altFullForce = 6000;
  59. altNoForce = 9000;
  60. draconicTorqueXCoef = 0;//
  61. faction = macro_republic_faction
  62. editorSubcategory = macro_editor_cat_air(Republic_vtol)
  63. vehicleClass = macro_editor_vehicle_type_air(Republic)
  64. gearsUpFrictionCoef = 25;
  65. class UserActions
  66. {
  67. class AfterburnerOff
  68. {
  69. condition = "(this getVariable ['AfterBurnereta',false])";
  70. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  71. displayNameDefault = "";
  72. onlyforplayer = 1;
  73. position = "pilotview";
  74. priority = 1e+011;
  75. radius = 10;
  76. shortcut = "";
  77. statement = "this setVariable ['AfterBurnereta',false,true]";
  78. };
  79. class AfterburnerOn
  80. {
  81. condition = "speed this >50 and (!(this getVariable ['AfterBurnereta',false]))";
  82. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  83. displayNameDefault = "";
  84. onlyforplayer = 1;
  85. position = "pilotview";
  86. priority = 1e+011;
  87. radius = 10;
  88. shortcut = "";
  89. statement = "this setVariable ['AfterBurnereta',true,true];this spawn nes4day_afterburnereta";
  90. };
  91. class Close_S_Foil
  92. {
  93. condition = "this animationPhase ""wing_1_up_A"" == 1 and this animationPhase ""wing_2_up_A"" == 1 and this animationPhase ""wing_1_down_A"" == 1 and this animationPhase ""wing_2_down_A"" == 1";
  94. displayName = "<t color='#FF9933'>[Close S-foils]</t>";
  95. displayNameDefault = "";
  96. hideonuse = 1;
  97. onlyForPlayer = 1;
  98. position = "pilotview";
  99. priority = 1e+011;
  100. radius = 2;
  101. shortcut = "";
  102. statement = "this animate [""wing_1_up_A"",0];this animate [""wing_2_up_A"",0];this animate [""wing_1_down_A"",0];this animate [""wing_2_down_A"",0]; this say3d ""eta_unfoldwing_sound""";
  103. };
  104. class Open_S_Foil
  105. {
  106. condition = "speed this >25 and this animationPhase ""wing_1_up_A"" == 0 and this animationPhase ""wing_2_up_A"" == 0 and this animationPhase ""wing_1_down_A"" == 0 and this animationPhase ""wing_2_down_A"" == 0";
  107. displayName = "<t color='#4C9900'>[Open S-foils]</t>";
  108. displayNameDefault = "";
  109. hideonuse = 1;
  110. onlyForPlayer = 1;
  111. position = "pilotview";
  112. priority = 1e+011;
  113. radius = 2;
  114. shortcut = "";
  115. statement = "this animate [""wing_1_up_A"",1];this animate [""wing_2_up_A"",1];this animate [""wing_1_down_A"",1];this animate [""wing_2_down_A"",1]; this say3d ""eta_foldwing_sound""";
  116. };
  117. #include "../../common/universal_dmg_report.hpp"
  118. };
  119. class ACE_SelfActions:ACE_SelfActions
  120. {
  121. #include "../../common/universal_hud_color_changer.hpp"
  122. };
  123. #include "../../common/universal_mfd.hpp"
  124. weapons[] = {
  125. macro_new_weapon(wynd,a2a),
  126. macro_new_weapon(wynd,agm),
  127. macro_new_weapon(wynd,ugm),
  128. macro_basic_air_weapons,
  129. macro_new_weapon(generic,republic_aircraft_cannon)
  130. };
  131. magazines[] = {
  132. macro_basic_air_mags,
  133. macro_new_mag(generic_aircraft_cannon_green,1000),
  134. macro_new_mag(generic_aircraft_cannon_green,1000),
  135. macro_new_mag(a2a,4),
  136. macro_new_mag(agm,6),
  137. macro_new_mag(ugm,10)
  138. };
  139. hiddenSelections[] = {"camo1","camo2"};
  140. hiddenSelectionsMaterials[] = {"eta2\eta2main.rvmat","Delta7\Delta7astro.rvmat"};
  141. hiddenSelectionsTextures[] = {"eta2\t_yodasstarfighter_co.paa","eta2\t_yodasstarfighter_r2d2_co.paa"};
  142. visualTarget = 1;
  143. visualTargetSize = 1;
  144. reportOwnPosition = true;
  145. radarTargetSize = 1;
  146. radarTarget = 1;
  147. nvTarget = 1;
  148. laserTarget = 1;
  149. laserScanner = 0;
  150. irTarget = 1;
  151. irTargetSize = 1;
  152. countermeasureActivationRadius = 2000;
  153. class pilotCamera
  154. {
  155. class OpticsIn
  156. {
  157. class Wide
  158. {
  159. opticsDisplayName = "WFOV";
  160. initAngleX = 0;
  161. minAngleX = 0;
  162. maxAngleX = 0;
  163. initAngleY = 0;
  164. minAngleY = 0;
  165. maxAngleY = 0;
  166. initFov=0.42;//"(30 / 120)";
  167. minFov=0.42;//"(30 / 120)";
  168. maxFov=0.42;//"(30 / 120)";
  169. directionStabilized = 1;
  170. visionMode[] = {"Normal","NVG", "Ti"};
  171. thermalMode[] = {0,1,2,3,4,5};
  172. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_wide_F.p3d";
  173. opticsPPEffects[] = {"OpticsCHAbera2", "OpticsBlur2"};
  174. };
  175. class Medium: Wide
  176. {
  177. opticsDisplayName = "MFOV";
  178. initFov="0.42/4";//"(30 / 120)";
  179. minFov="0.42/4";//"(30 / 120)";
  180. maxFov="0.42/4";//"(30 / 120)";
  181. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_medium_F.p3d";
  182. };
  183. class Narrow: Wide
  184. {
  185. opticsDisplayName = "NFOV";
  186. initFov="0.42/8";//"(30 / 120)";
  187. minFov="0.42/8";//"(30 / 120)";
  188. maxFov="0.42/8";//"(30 / 120)";
  189. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  190. };
  191. class NarrowX16: Wide
  192. {
  193. opticsDisplayName = "NFOV";
  194. initFov="0.42/16";//"(30 / 120)";
  195. minFov="0.42/16";//"(30 / 120)";
  196. maxFov="0.42/16";//"(30 / 120)";
  197. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  198. };
  199. class NarrowX24: Wide
  200. {
  201. opticsDisplayName = "NFOV";
  202. initFov="0.42/24";//"(30 / 120)";
  203. minFov="0.42/24";//"(30 / 120)";
  204. maxFov="0.42/24";//"(30 / 120)";
  205. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  206. };
  207. class NarrowX36: Wide
  208. {
  209. opticsDisplayName = "NFOV";
  210. initFov="0.42/36";//"(30 / 120)";
  211. minFov="0.42/36";//"(30 / 120)";
  212. maxFov="0.42/36";//"(30 / 120)";
  213. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  214. };
  215. class NarrowX48: Wide
  216. {
  217. opticsDisplayName = "NFOV";
  218. initFov="0.42/48";//"(30 / 120)";
  219. minFov="0.42/48";//"(30 / 120)";
  220. maxFov="0.42/48";//"(30 / 120)";
  221. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  222. };
  223. class NarrowX60: Wide
  224. {
  225. opticsDisplayName = "NFOV";
  226. initFov="0.42/60";//"(30 / 120)";
  227. minFov="0.42/60";//"(30 / 120)";
  228. maxFov="0.42/60";//"(30 / 120)";
  229. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  230. };
  231. class NarrowX80: Wide
  232. {
  233. opticsDisplayName = "NFOV";
  234. initFov="0.42/80";//"(30 / 120)";
  235. minFov="0.42/80";//"(30 / 120)";
  236. maxFov="0.42/80";//"(30 / 120)";
  237. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  238. };
  239. class NarrowX100: Wide
  240. {
  241. opticsDisplayName = "NFOV";
  242. initFov="0.42/100";//"(30 / 120)";
  243. minFov="0.42/100";//"(30 / 120)";
  244. maxFov="0.42/100";//"(30 / 120)";
  245. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  246. };
  247. showMiniMapInOptics = 1;
  248. showUAVViewInOptics = 0;
  249. showSlingLoadManagerInOptics = 0;
  250. };
  251. minTurn = -190;
  252. maxTurn = 180;
  253. initTurn = 0;
  254. minElev = -10;
  255. maxElev = 90;
  256. initElev = 0;
  257. maxXRotSpeed = 0.3;
  258. maxYRotSpeed = 0.3;
  259. pilotOpticsShowCursor = 1;
  260. controllable = 1;
  261. };
  262. };
  263. class macro_new_vehicle(eta,green_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  264. {
  265. displayName = "ETA-3 (Green) Mk.II";
  266. hiddenSelectionsTextures[] = {"eta2\eta2_base_custom1_co.paa","eta2\t_yodasstarfighter_r2d2_co.paa"};
  267. };
  268. class macro_new_vehicle(eta,red_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  269. {
  270. displayname = "ETA-3 (Red) Mk.II";
  271. hiddenSelectionsTextures[] = {"eta2\t_yodasstarfighter_OBI_co.paa","Delta7\tx_delta7_astromech_obi.paa"};
  272. };
  273. class macro_new_vehicle(eta,yellow_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  274. {
  275. displayname = "ETA-3 (Yellow) Mk.II";
  276. hiddenSelectionsTextures[] = {"eta2\t_yodasstarfighter_ANAKIN_co.paa","Delta7\tx_delta7_astromech_r2.paa"};
  277. };
  278. class macro_new_vehicle(eta,blue_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  279. {
  280. displayname = "ETA-3 (Blue) Mk.II";
  281. hiddenSelectionsTextures[] = {"eta2\Eta2_Main_custom3_Co.paa","eta2\Eta2_Droid_custom3_Co.paa"};
  282. };
  283. class macro_new_vehicle(eta,grey_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  284. {
  285. displayname = "ETA-3 (Grey) Mk.II";
  286. hiddenSelectionsTextures[] = {"eta2\eta2_base_custom2_co.paa","eta2\t_yodasstarfighter_r2d2_co.paa"};
  287. };
  288. class macro_new_vehicle(eta,white_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  289. {
  290. displayname = "ETA-3 (N-7) Mk.II";
  291. hiddenSelectionsTextures[] = {"\RD501_Vehicles\textures\eta\eta2_main_normandy_co.paa","eta2\t_yodasstarfighter_r2d2_co.paa"};
  292. };
  293. class macro_new_vehicle(eta,orange_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  294. {
  295. displayname = "ETA-3 (Orange) Mk.II";
  296. hiddenSelectionsTextures[] = {"\RD501_Vehicles\textures\eta\eta2_main_orange_co.paa","eta2\t_yodasstarfighter_r2d2_co.paa"};
  297. };
  298. class macro_new_vehicle(eta,poison_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  299. {
  300. displayname = "ETA-3 (Venom) Mk.II";
  301. hiddenSelectionsTextures[] = {"\RD501_Vehicles\textures\eta\eta2_main_venom_co.paa","eta2\t_yodasstarfighter_r2d2_co.paa"};
  302. };
  303. };