config.cpp 9.9 KB

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