config.cpp 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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 EventHandlers{};
  66. class UserActions
  67. {
  68. class AfterburnerOff
  69. {
  70. condition = "(this getVariable ['AfterBurnereta',false])";
  71. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  72. displayNameDefault = "";
  73. onlyforplayer = 1;
  74. position = "pilotview";
  75. priority = 1e+011;
  76. radius = 10;
  77. shortcut = "";
  78. statement = "this setVariable ['AfterBurnereta',false,true]";
  79. };
  80. class AfterburnerOn
  81. {
  82. condition = "speed this >50 and (!(this getVariable ['AfterBurnereta',false]))";
  83. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  84. displayNameDefault = "";
  85. onlyforplayer = 1;
  86. position = "pilotview";
  87. priority = 1e+011;
  88. radius = 10;
  89. shortcut = "";
  90. statement = "this setVariable ['AfterBurnereta',true,true];this spawn nes4day_afterburnereta";
  91. };
  92. class Close_S_Foil
  93. {
  94. 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";
  95. displayName = "<t color='#FF9933'>[Close S-foils]</t>";
  96. displayNameDefault = "";
  97. hideonuse = 1;
  98. onlyForPlayer = 1;
  99. position = "pilotview";
  100. priority = 1e+011;
  101. radius = 2;
  102. shortcut = "";
  103. 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""";
  104. };
  105. class Open_S_Foil
  106. {
  107. 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";
  108. displayName = "<t color='#4C9900'>[Open S-foils]</t>";
  109. displayNameDefault = "";
  110. hideonuse = 1;
  111. onlyForPlayer = 1;
  112. position = "pilotview";
  113. priority = 1e+011;
  114. radius = 2;
  115. shortcut = "";
  116. 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""";
  117. };
  118. #include "../../common/universal_dmg_report.hpp"
  119. };
  120. class ACE_SelfActions:ACE_SelfActions
  121. {
  122. #include "../../common/universal_hud_color_changer.hpp"
  123. };
  124. #include "../../common/universal_mfd.hpp"
  125. weapons[] = {
  126. macro_new_weapon(wynd,a2a),
  127. macro_new_weapon(wynd,agm),
  128. macro_new_weapon(wynd,ugm),
  129. macro_basic_air_weapons,
  130. macro_new_weapon(generic,republic_aircraft_cannon)
  131. };
  132. magazines[] = {
  133. macro_basic_air_mags,
  134. macro_new_mag(generic_aircraft_cannon_green,1000),
  135. macro_new_mag(generic_aircraft_cannon_green,1000),
  136. macro_new_mag(a2a,4),
  137. macro_new_mag(agm,6),
  138. macro_new_mag(ugm,10)
  139. };
  140. hiddenSelections[] = {"camo1","camo2"};
  141. hiddenSelectionsMaterials[] = {"eta2\eta2main.rvmat","Delta7\Delta7astro.rvmat"};
  142. hiddenSelectionsTextures[] = {"eta2\t_yodasstarfighter_co.paa","eta2\t_yodasstarfighter_r2d2_co.paa"};
  143. visualTarget = 1;
  144. visualTargetSize = 1;
  145. reportOwnPosition = true;
  146. radarTargetSize = 1;
  147. radarTarget = 1;
  148. nvTarget = 1;
  149. laserTarget = 1;
  150. laserScanner = 0;
  151. irTarget = 1;
  152. irTargetSize = 1;
  153. countermeasureActivationRadius = 2000;
  154. class pilotCamera
  155. {
  156. class OpticsIn
  157. {
  158. class Wide
  159. {
  160. opticsDisplayName = "WFOV";
  161. initAngleX = 0;
  162. minAngleX = 0;
  163. maxAngleX = 0;
  164. initAngleY = 0;
  165. minAngleY = 0;
  166. maxAngleY = 0;
  167. initFov=0.42;//"(30 / 120)";
  168. minFov=0.42;//"(30 / 120)";
  169. maxFov=0.42;//"(30 / 120)";
  170. directionStabilized = 1;
  171. visionMode[] = {"Normal","NVG", "Ti"};
  172. thermalMode[] = {0,1,2,3,4,5};
  173. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_wide_F.p3d";
  174. opticsPPEffects[] = {"OpticsCHAbera2", "OpticsBlur2"};
  175. };
  176. class Medium: Wide
  177. {
  178. opticsDisplayName = "MFOV";
  179. initFov="0.42/4";//"(30 / 120)";
  180. minFov="0.42/4";//"(30 / 120)";
  181. maxFov="0.42/4";//"(30 / 120)";
  182. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_medium_F.p3d";
  183. };
  184. class Narrow: Wide
  185. {
  186. opticsDisplayName = "NFOV";
  187. initFov="0.42/8";//"(30 / 120)";
  188. minFov="0.42/8";//"(30 / 120)";
  189. maxFov="0.42/8";//"(30 / 120)";
  190. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  191. };
  192. class NarrowX16: Wide
  193. {
  194. opticsDisplayName = "NFOV";
  195. initFov="0.42/16";//"(30 / 120)";
  196. minFov="0.42/16";//"(30 / 120)";
  197. maxFov="0.42/16";//"(30 / 120)";
  198. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  199. };
  200. class NarrowX24: Wide
  201. {
  202. opticsDisplayName = "NFOV";
  203. initFov="0.42/24";//"(30 / 120)";
  204. minFov="0.42/24";//"(30 / 120)";
  205. maxFov="0.42/24";//"(30 / 120)";
  206. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  207. };
  208. class NarrowX36: Wide
  209. {
  210. opticsDisplayName = "NFOV";
  211. initFov="0.42/36";//"(30 / 120)";
  212. minFov="0.42/36";//"(30 / 120)";
  213. maxFov="0.42/36";//"(30 / 120)";
  214. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  215. };
  216. class NarrowX48: Wide
  217. {
  218. opticsDisplayName = "NFOV";
  219. initFov="0.42/48";//"(30 / 120)";
  220. minFov="0.42/48";//"(30 / 120)";
  221. maxFov="0.42/48";//"(30 / 120)";
  222. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  223. };
  224. class NarrowX60: Wide
  225. {
  226. opticsDisplayName = "NFOV";
  227. initFov="0.42/60";//"(30 / 120)";
  228. minFov="0.42/60";//"(30 / 120)";
  229. maxFov="0.42/60";//"(30 / 120)";
  230. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  231. };
  232. class NarrowX80: Wide
  233. {
  234. opticsDisplayName = "NFOV";
  235. initFov="0.42/80";//"(30 / 120)";
  236. minFov="0.42/80";//"(30 / 120)";
  237. maxFov="0.42/80";//"(30 / 120)";
  238. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  239. };
  240. class NarrowX100: Wide
  241. {
  242. opticsDisplayName = "NFOV";
  243. initFov="0.42/100";//"(30 / 120)";
  244. minFov="0.42/100";//"(30 / 120)";
  245. maxFov="0.42/100";//"(30 / 120)";
  246. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  247. };
  248. showMiniMapInOptics = 1;
  249. showUAVViewInOptics = 0;
  250. showSlingLoadManagerInOptics = 0;
  251. };
  252. minTurn = -190;
  253. maxTurn = 180;
  254. initTurn = 0;
  255. minElev = -10;
  256. maxElev = 90;
  257. initElev = 0;
  258. maxXRotSpeed = 0.3;
  259. maxYRotSpeed = 0.3;
  260. pilotOpticsShowCursor = 1;
  261. controllable = 1;
  262. };
  263. };
  264. class macro_new_vehicle(eta,green_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  265. {
  266. displayName = "ETA-3 (Green) Mk.II";
  267. hiddenSelectionsTextures[] = {"eta2\eta2_base_custom1_co.paa","eta2\t_yodasstarfighter_r2d2_co.paa"};
  268. };
  269. class macro_new_vehicle(eta,red_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  270. {
  271. displayname = "ETA-3 (Red) Mk.II";
  272. hiddenSelectionsTextures[] = {"eta2\t_yodasstarfighter_OBI_co.paa","Delta7\tx_delta7_astromech_obi.paa"};
  273. };
  274. class macro_new_vehicle(eta,yellow_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  275. {
  276. displayname = "ETA-3 (Yellow) Mk.II";
  277. hiddenSelectionsTextures[] = {"eta2\t_yodasstarfighter_ANAKIN_co.paa","Delta7\tx_delta7_astromech_r2.paa"};
  278. };
  279. class macro_new_vehicle(eta,blue_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  280. {
  281. displayname = "ETA-3 (Blue) Mk.II";
  282. hiddenSelectionsTextures[] = {"eta2\Eta2_Main_custom3_Co.paa","eta2\Eta2_Droid_custom3_Co.paa"};
  283. };
  284. class macro_new_vehicle(eta,grey_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  285. {
  286. displayname = "ETA-3 (Grey) Mk.II";
  287. hiddenSelectionsTextures[] = {"eta2\eta2_base_custom2_co.paa","eta2\t_yodasstarfighter_r2d2_co.paa"};
  288. };
  289. class macro_new_vehicle(eta,white_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  290. {
  291. displayname = "ETA-3 (N-7) Mk.II";
  292. hiddenSelectionsTextures[] = {"\RD501_Vehicles\textures\eta\eta2_main_normandy_co.paa","eta2\t_yodasstarfighter_r2d2_co.paa"};
  293. };
  294. class macro_new_vehicle(eta,orange_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  295. {
  296. displayname = "ETA-3 (Orange) Mk.II";
  297. hiddenSelectionsTextures[] = {"\RD501_Vehicles\textures\eta\eta2_main_orange_co.paa","eta2\t_yodasstarfighter_r2d2_co.paa"};
  298. };
  299. class macro_new_vehicle(eta,venom_Mk2) : macro_new_vehicle(eta,lime_Mk2)
  300. {
  301. displayname = "ETA-3 (Venom) Mk.II";
  302. hiddenSelectionsTextures[] = {"\RD501_Vehicles\textures\eta\eta2_main_venom_co.paa","eta2\t_yodasstarfighter_r2d2_co.paa"};
  303. };
  304. };