config.cpp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  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 TIE
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_tie_class(name) vehicle_classname##_##name
  10. #define macro_inherit_ace_selfactions(classname,base)\
  11. class classname:base\
  12. {\
  13. class ACE_SelfActions;\
  14. };
  15. class CfgPatches
  16. {
  17. class macro_patch_name(TIE)
  18. {
  19. addonRootClass=macro_patch_name(vehicles)
  20. requiredAddons[]=
  21. {
  22. macro_patch_name(vehicles)
  23. };
  24. requiredVersion=0.1;
  25. units[]=
  26. {
  27. macro_new_vehicle(TIE,stryker_MkII),
  28. macro_new_vehicle(TIE,interceptor_MkII),
  29. macro_new_vehicle(TIE,fighter_MkII),
  30. macro_new_vehicle(TIE,defender_MkII),
  31. macro_new_vehicle(TIE,bomber_MkII),
  32. macro_new_vehicle(TIE,x1_MkII),
  33. macro_new_vehicle(TIE,fo),
  34. macro_new_vehicle(TIE,sf),
  35. macro_new_vehicle(TIE,silencer)
  36. };
  37. weapons[]=
  38. {
  39. };
  40. };
  41. };
  42. #include "../../common/sensor_templates.hpp"
  43. class CBA_Extended_EventHandlers_base;
  44. class CfgVehicles
  45. {
  46. class Plane_Base_F;
  47. class Xtiestkr;
  48. macro_inherit_ace_selfactions(swop_tie_stryker,Xtiestkr)
  49. macro_inherit_ace_selfactions(swop_tie_int,Plane_Base_F)
  50. macro_inherit_ace_selfactions(swop_tie,Plane_Base_F)
  51. macro_inherit_ace_selfactions(swop_tiedef,Plane_Base_F)
  52. macro_inherit_ace_selfactions(swop_tieb,Plane_Base_F)
  53. macro_inherit_ace_selfactions(swop_tiex1,Plane_Base_F)
  54. class macro_new_vehicle(TIE,stryker_MkII) : swop_tie_stryker
  55. {
  56. scope = 2;
  57. forceInGarage=1;
  58. displayName="TIE Stryker Class Mk.II";
  59. altFullForce = 6000;
  60. altNoForce = 9000;
  61. airBrakeFrictionCoef = 80.4;
  62. armor = 100;
  63. faction = macro_empire_faction
  64. editorSubcategory = macro_editor_cat_air(Empire_vtol)
  65. vehicleClass = macro_editor_vehicle_type_air(Empire)
  66. class UserActions
  67. {
  68. class AfterburnerOn
  69. {
  70. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  71. shortcut = "";
  72. condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIE'))";
  73. statement = "this setVariable ['AfterBurnerTIE',true];this spawn nes4day_afterburnerTIE";
  74. priority = 1e+011;
  75. displayNameDefault = "";
  76. position = "pilotview";
  77. radius = 15;
  78. onlyforplayer = 1;
  79. };
  80. class AfterburnerOff
  81. {
  82. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  83. shortcut = "";
  84. condition = "(this getVariable 'AfterBurnerTIE')";
  85. statement = "this setVariable ['AfterBurnerTIE',false]";
  86. priority = 1e+011;
  87. displayNameDefault = "";
  88. position = "pilotview";
  89. radius = 15;
  90. onlyforplayer = 1;
  91. };
  92. };
  93. class EventHandlers
  94. {
  95. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  96. init = "[_this select 0] execVM '\TIE\init.sqf';[_this select 0] execVM '\TIE\initturbine.sqf';";
  97. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  98. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  99. };
  100. weapons[] = {
  101. macro_basic_air_weapons,
  102. macro_new_weapon(generic,imperial_aircraft_cannon)
  103. };
  104. magazines[] = {
  105. macro_basic_air_mags,
  106. macro_new_mag(generic_aircraft_cannon_green,1000),
  107. macro_new_mag(generic_aircraft_cannon_green,1000)
  108. };
  109. class ACE_SelfActions:ACE_SelfActions
  110. {
  111. #include "../../common/universal_hud_color_changer.hpp"
  112. };
  113. #include "../../common/universal_mfd.hpp"
  114. };
  115. class macro_new_vehicle(TIE,interceptor_MkII) : swop_tie_int
  116. {
  117. forceInGarage=1;
  118. displayName="TIE Interceptor Class Mk.II";
  119. scope = 2;
  120. altFullForce = 6000;
  121. airBrakeFrictionCoef = 80.4;
  122. altNoForce = 9000;
  123. armor = 100;
  124. faction = macro_empire_faction
  125. editorSubcategory = macro_editor_cat_air(Empire_vtol)
  126. vehicleClass = macro_editor_vehicle_type_air(Empire)
  127. class UserActions
  128. {
  129. class AfterburnerOn
  130. {
  131. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  132. shortcut = "";
  133. condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIE'))";
  134. statement = "this setVariable ['AfterBurnerTIE',true];this spawn nes4day_afterburnerTIE";
  135. priority = 1e+011;
  136. displayNameDefault = "";
  137. position = "pilotview";
  138. radius = 15;
  139. onlyforplayer = 1;
  140. };
  141. class AfterburnerOff
  142. {
  143. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  144. shortcut = "";
  145. condition = "(this getVariable 'AfterBurnerTIE')";
  146. statement = "this setVariable ['AfterBurnerTIE',false]";
  147. priority = 1e+011;
  148. displayNameDefault = "";
  149. position = "pilotview";
  150. radius = 15;
  151. onlyforplayer = 1;
  152. };
  153. };
  154. class EventHandlers
  155. {
  156. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  157. init = "[_this select 0] execVM '\TIE\init.sqf';[_this select 0] execVM '\TIE\initturbine.sqf';";
  158. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  159. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  160. };
  161. weapons[] = {
  162. macro_basic_air_weapons,
  163. macro_new_weapon(generic,imperial_aircraft_cannon)
  164. };
  165. magazines[] = {
  166. macro_basic_air_mags,
  167. macro_new_mag(generic_aircraft_cannon_green,1000),
  168. macro_new_mag(generic_aircraft_cannon_green,1000)
  169. };
  170. class ACE_SelfActions:ACE_SelfActions
  171. {
  172. #include "../../common/universal_hud_color_changer.hpp"
  173. };
  174. #include "../../common/universal_mfd.hpp"
  175. };
  176. class macro_new_vehicle(TIE,fighter_MkII) : swop_tie
  177. {
  178. forceInGarage=1;
  179. displayName="TIE Fighter Class Mk.II";
  180. scope = 2;
  181. altFullForce = 6000;
  182. altNoForce = 9000;
  183. armor = 200;
  184. airBrakeFrictionCoef = 80.4;
  185. faction = macro_empire_faction
  186. editorSubcategory = macro_editor_cat_air(Empire_vtol)
  187. vehicleClass = macro_editor_vehicle_type_air(Empire)
  188. class UserActions
  189. {
  190. class AfterburnerOn
  191. {
  192. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  193. shortcut = "";
  194. condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIE'))";
  195. statement = "this setVariable ['AfterBurnerTIE',true];this spawn nes4day_afterburnerTIE";
  196. priority = 1e+011;
  197. displayNameDefault = "";
  198. position = "pilotview";
  199. radius = 15;
  200. onlyforplayer = 1;
  201. };
  202. class AfterburnerOff
  203. {
  204. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  205. shortcut = "";
  206. condition = "(this getVariable 'AfterBurnerTIE')";
  207. statement = "this setVariable ['AfterBurnerTIE',false]";
  208. priority = 1e+011;
  209. displayNameDefault = "";
  210. position = "pilotview";
  211. radius = 15;
  212. onlyforplayer = 1;
  213. };
  214. };
  215. class EventHandlers
  216. {
  217. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  218. init = "[_this select 0] execVM '\TIE\init.sqf';[_this select 0] execVM '\TIE\initturbine.sqf';";
  219. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  220. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  221. };
  222. weapons[] = {
  223. macro_basic_air_weapons,
  224. macro_new_weapon(generic,imperial_aircraft_cannon)
  225. };
  226. magazines[] = {
  227. macro_basic_air_mags,
  228. macro_new_mag(generic_aircraft_cannon_green,1000),
  229. macro_new_mag(generic_aircraft_cannon_green,1000)
  230. };
  231. class ACE_SelfActions:ACE_SelfActions
  232. {
  233. #include "../../common/universal_hud_color_changer.hpp"
  234. };
  235. #include "../../common/universal_mfd.hpp"
  236. };
  237. class macro_new_vehicle(TIE,defender_MkII) : swop_tiedef
  238. {
  239. forceInGarage=1;
  240. displayName="TIE Defender Class Mk.II";
  241. scope = 2;
  242. altFullForce = 6000;
  243. altNoForce = 9000;
  244. armor = 200;
  245. airBrakeFrictionCoef = 80.4;
  246. faction = macro_empire_faction
  247. editorSubcategory = macro_editor_cat_air(Empire_vtol)
  248. vehicleClass = macro_editor_vehicle_type_air(Empire)
  249. class UserActions
  250. {
  251. class AfterburnerOn
  252. {
  253. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  254. shortcut = "";
  255. condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIEdef'))";
  256. statement = "this setVariable ['AfterBurnerTIEdef',true];this spawn nes4day_afterburnerTIEdef";
  257. priority = 1e+011;
  258. displayNameDefault = "";
  259. position = "pilotview";
  260. radius = 15;
  261. onlyforplayer = 1;
  262. };
  263. class AfterburnerOff
  264. {
  265. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  266. shortcut = "";
  267. condition = "(this getVariable 'AfterBurnerTIEdef')";
  268. statement = "this setVariable ['AfterBurnerTIEdef',false]";
  269. priority = 1e+011;
  270. displayNameDefault = "";
  271. position = "pilotview";
  272. radius = 15;
  273. onlyforplayer = 1;
  274. };
  275. };
  276. class EventHandlers
  277. {
  278. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  279. init = "[_this select 0] execVM '\TIEdef\init.sqf';";
  280. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  281. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  282. };
  283. weapons[] = {
  284. macro_basic_air_weapons,
  285. macro_new_weapon(generic,ion_aircraft_cannon)
  286. };
  287. magazines[] = {
  288. macro_basic_air_mags,
  289. macro_new_mag(generic_aircraft_cannon_blue,1000),
  290. macro_new_mag(generic_aircraft_cannon_blue,1000)
  291. };
  292. class ACE_SelfActions:ACE_SelfActions
  293. {
  294. #include "../../common/universal_hud_color_changer.hpp"
  295. };
  296. #include "../../common/universal_mfd.hpp"
  297. };
  298. class macro_new_vehicle(TIE,bomber_MkII) : swop_tieb
  299. {
  300. forceInGarage=1;
  301. displayName="TIE Bomber Class Mk.II";
  302. scope = 2;
  303. altFullForce = 6000;
  304. altNoForce = 9000;
  305. armor = 400;
  306. airBrakeFrictionCoef = 80.4;
  307. faction = macro_empire_faction
  308. editorSubcategory = macro_editor_cat_air(Empire_vtol)
  309. vehicleClass = macro_editor_vehicle_type_air(Empire)
  310. class UserActions
  311. {
  312. };
  313. class EventHandlers
  314. {
  315. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  316. init = "[_this select 0] execVM '\TIE\initturbine.sqf';";
  317. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  318. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  319. };
  320. weapons[] = {
  321. macro_basic_air_weapons,
  322. macro_new_weapon(generic,imperial_aircraft_cannon),
  323. macro_new_weapon(bomb,cluster),
  324. macro_new_weapon(bomb,SDB),
  325. macro_new_weapon(bomb,LGB)
  326. };
  327. magazines[] = {
  328. macro_basic_air_mags,
  329. macro_new_mag(generic_aircraft_cannon_green,1000),
  330. macro_new_mag(generic_aircraft_cannon_green,1000),
  331. macro_new_mag(cluster_bomb,4),
  332. macro_new_mag(cluster_bomb,4),
  333. macro_new_mag(cluster_bomb,4),
  334. macro_new_mag(sdb_bomb,4),
  335. macro_new_mag(sdb_bomb,4),
  336. macro_new_mag(sdb_bomb,4),
  337. macro_new_mag(lgb_bomb,4),
  338. macro_new_mag(lgb_bomb,4),
  339. macro_new_mag(lgb_bomb,4)
  340. };
  341. class ACE_SelfActions:ACE_SelfActions
  342. {
  343. #include "../../common/universal_hud_color_changer.hpp"
  344. };
  345. #include "../../common/universal_mfd.hpp"
  346. };
  347. class macro_new_vehicle(TIE,x1_MkII) : swop_tiex1
  348. {
  349. forceInGarage=1;
  350. displayName="TIE X1 Class Mk.II";
  351. scope = 2;
  352. altFullForce = 6000;
  353. altNoForce = 9000;
  354. armor = 600;
  355. airBrakeFrictionCoef = 80.4;
  356. faction = macro_empire_faction
  357. editorSubcategory = macro_editor_cat_air(Empire_vtol)
  358. vehicleClass = macro_editor_vehicle_type_air(Empire)
  359. class UserActions
  360. {
  361. class AfterburnerOn
  362. {
  363. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  364. shortcut = "";
  365. condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIE'))";
  366. statement = "this setVariable ['AfterBurnerTIE',true];this spawn nes4day_afterburnerTIE";
  367. priority = 1e+011;
  368. displayNameDefault = "";
  369. position = "pilotview";
  370. radius = 15;
  371. onlyforplayer = 1;
  372. };
  373. class AfterburnerOff
  374. {
  375. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  376. shortcut = "";
  377. condition = "(this getVariable 'AfterBurnerTIE')";
  378. statement = "this setVariable ['AfterBurnerTIE',false]";
  379. priority = 1e+011;
  380. displayNameDefault = "";
  381. position = "pilotview";
  382. radius = 15;
  383. onlyforplayer = 1;
  384. };
  385. };
  386. class EventHandlers
  387. {
  388. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  389. init = "[_this select 0] execVM '\TIE\init.sqf';[_this select 0] execVM '\TIE\initturbine.sqf';";
  390. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  391. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  392. };
  393. weapons[] = {
  394. macro_basic_air_weapons,
  395. macro_new_weapon(generic,imperial_aircraft_cannon)
  396. };
  397. magazines[] = {
  398. macro_basic_air_mags,
  399. macro_new_mag(generic_aircraft_cannon_green,1000),
  400. macro_new_mag(generic_aircraft_cannon_green,1000)
  401. };
  402. class ACE_SelfActions:ACE_SelfActions
  403. {
  404. #include "../../common/universal_hud_color_changer.hpp"
  405. };
  406. #include "../../common/universal_mfd.hpp"
  407. };
  408. class Xtiefo;
  409. macro_inherit_ace_selfactions(swop_tie_silencer,Plane_Base_F)
  410. macro_inherit_ace_selfactions(swop_tiefo,Xtiefo)
  411. macro_inherit_ace_selfactions(swop_tiefosf,Xtiefo)
  412. class macro_new_vehicle(TIE,fo) : swop_tiefo
  413. {
  414. forceInGarage=1;
  415. displayName="TIE First Order Class Mk.II";
  416. class ACE_SelfActions:ACE_SelfActions
  417. {
  418. #include "../../common/universal_hud_color_changer.hpp"
  419. };
  420. #include "../../common/universal_mfd.hpp"
  421. scope = 2;
  422. altFullForce = 6000;
  423. altNoForce = 9000;
  424. armor = 100;
  425. airBrakeFrictionCoef = 80.4;
  426. faction = macro_first_order_faction
  427. editorSubcategory = macro_editor_cat_air(First_Order)
  428. vehicleClass = macro_editor_vehicle_type_air(First_Order)
  429. class UserActions
  430. {
  431. class AfterburnerOn
  432. {
  433. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  434. shortcut = "";
  435. condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIE'))";
  436. statement = "this setVariable ['AfterBurnerTIE',true];this spawn nes4day_afterburnerTIE";
  437. priority = 1e+011;
  438. displayNameDefault = "";
  439. position = "pilotview";
  440. radius = 15;
  441. onlyforplayer = 1;
  442. };
  443. class AfterburnerOff
  444. {
  445. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  446. shortcut = "";
  447. condition = "(this getVariable 'AfterBurnerTIE')";
  448. statement = "this setVariable ['AfterBurnerTIE',false]";
  449. priority = 1e+011;
  450. displayNameDefault = "";
  451. position = "pilotview";
  452. radius = 15;
  453. onlyforplayer = 1;
  454. };
  455. };
  456. class EventHandlers
  457. {
  458. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  459. init = "[_this select 0] execVM '\TIE\init.sqf';[_this select 0] execVM '\TIE\initturbine.sqf';";
  460. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  461. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  462. };
  463. weapons[] = {
  464. macro_basic_air_weapons,
  465. macro_new_weapon(generic,imperial_aircraft_cannon)
  466. };
  467. magazines[] = {
  468. macro_basic_air_mags,
  469. macro_new_mag(generic_aircraft_cannon_green,1000),
  470. macro_new_mag(generic_aircraft_cannon_green,1000)
  471. };
  472. };
  473. class macro_new_vehicle(TIE,sf) : swop_tiefosf
  474. {
  475. forceInGarage=1;
  476. displayName="TIE Special Forces Class Mk.II";
  477. class ACE_SelfActions:ACE_SelfActions
  478. {
  479. #include "../../common/universal_hud_color_changer.hpp"
  480. };
  481. #include "../../common/universal_mfd.hpp"
  482. scope = 2;
  483. scopecurator = 2;
  484. altFullForce = 6000;
  485. altNoForce = 9000;
  486. airBrakeFrictionCoef = 80.4;
  487. armor = 200;
  488. faction = macro_empire_faction
  489. editorSubcategory = macro_editor_cat_air(Empire_vtol)
  490. vehicleClass = macro_editor_vehicle_type_air(Empire)
  491. class UserActions
  492. {
  493. class AfterburnerOn
  494. {
  495. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  496. shortcut = "";
  497. condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIE'))";
  498. statement = "this setVariable ['AfterBurnerTIE',true];this spawn nes4day_afterburnerTIE";
  499. priority = 1e+011;
  500. displayNameDefault = "";
  501. position = "pilotview";
  502. radius = 15;
  503. onlyforplayer = 1;
  504. };
  505. class AfterburnerOff
  506. {
  507. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  508. shortcut = "";
  509. condition = "(this getVariable 'AfterBurnerTIE')";
  510. statement = "this setVariable ['AfterBurnerTIE',false]";
  511. priority = 1e+011;
  512. displayNameDefault = "";
  513. position = "pilotview";
  514. radius = 15;
  515. onlyforplayer = 1;
  516. };
  517. };
  518. class EventHandlers
  519. {
  520. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  521. init = "[_this select 0] execVM '\TIE\init.sqf';[_this select 0] execVM '\TIE\initturbine.sqf';";
  522. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  523. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  524. };
  525. weapons[] = {
  526. macro_basic_air_weapons,
  527. macro_new_weapon(generic,imperial_aircraft_cannon)
  528. };
  529. magazines[] = {
  530. macro_basic_air_mags,
  531. macro_new_mag(generic_aircraft_cannon_green,1000),
  532. macro_new_mag(generic_aircraft_cannon_green,1000)
  533. };
  534. };
  535. class macro_new_vehicle(TIE,silencer) : swop_tie_silencer
  536. {
  537. forceInGarage=1;
  538. displayName="TIE Silencer Class Mk.II";
  539. scope = 2;
  540. altFullForce = 6000;
  541. altNoForce = 9000;
  542. armor = 600;
  543. airBrakeFrictionCoef = 80.4;
  544. faction = macro_first_order_faction
  545. editorSubcategory = macro_editor_cat_air(First_Order)
  546. vehicleClass = macro_editor_vehicle_type_air(First_Order)
  547. class ACE_SelfActions:ACE_SelfActions
  548. {
  549. #include "../../common/universal_hud_color_changer.hpp"
  550. };
  551. #include "../../common/universal_mfd.hpp"
  552. class UserActions
  553. {
  554. class AfterburnerOn
  555. {
  556. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  557. shortcut = "";
  558. condition = "speed this >50 and (!(this getVariable 'AfterBurnerTIEsil'))";
  559. statement = "this setVariable ['AfterBurnerTIEsil',true];this spawn nes4day_afterburnerTIEsil";
  560. priority = 1e+011;
  561. displayNameDefault = "";
  562. position = "pilotview";
  563. radius = 15;
  564. onlyforplayer = 1;
  565. };
  566. class AfterburnerOff
  567. {
  568. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  569. shortcut = "";
  570. condition = "(this getVariable 'AfterBurnerTIEsil')";
  571. statement = "this setVariable ['AfterBurnerTIEsil',false]";
  572. priority = 1e+011;
  573. displayNameDefault = "";
  574. position = "pilotview";
  575. radius = 15;
  576. onlyforplayer = 1;
  577. };
  578. };
  579. class EventHandlers
  580. {
  581. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  582. init = "[_this select 0] execVM '\TIEsilencer\init.sqf';[_this select 0] execVM '\TIEsilencer\initturbine.sqf';";
  583. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  584. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  585. };
  586. weapons[] = {
  587. macro_basic_air_weapons,
  588. macro_new_weapon(generic,imperial_aircraft_cannon)
  589. };
  590. magazines[] = {
  591. macro_basic_air_mags,
  592. macro_new_mag(generic_aircraft_cannon_green,1000),
  593. macro_new_mag(generic_aircraft_cannon_green,1000)
  594. };
  595. };
  596. };