config.cpp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  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 LAAT
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_laat(name) CONCAT_3(vehicle_classname,_,name)
  10. class CfgPatches
  11. {
  12. class RD501_patch_laat
  13. {
  14. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  15. requiredAddons[]=
  16. {
  17. RD501_patch_vehicles,
  18. "3AS_LAAT",
  19. "3AS_LAAT_Cargo"
  20. };
  21. requiredVersion=0.1;
  22. units[]=
  23. {
  24. macro_new_laat(Mk1),
  25. macro_new_laat(Mk1_lights),
  26. macro_new_laat(Mk2),
  27. macro_new_laat(Mk2_lights),
  28. macro_new_laat(LE),
  29. macro_new_laat(C)
  30. };
  31. weapons[]=
  32. {
  33. };
  34. };
  35. };
  36. #include "../../common/sensor_templates.hpp"
  37. class DefaultEventhandlers;
  38. class CfgVehicles
  39. {
  40. #include "inheritance.hpp"
  41. class macro_new_laat(Mk1):3as_LAAT_Mk1
  42. {
  43. displayName="LAAT/I MK.I";
  44. #include "common_stuff_tcw.hpp"
  45. RD501_magclamp_small_1[] = {0.0,1.0,-1.0};
  46. class UserActions: UserActions
  47. {
  48. #include "user_action.hpp"
  49. };
  50. hiddenSelectionsTextures[]=
  51. {
  52. "RD501_Vehicles\textures\LAAT\hull_tmp_co.paa",
  53. "3AS\3as_Laat\LAATI\data\wings_501_CO.paa",
  54. "3AS\3as_Laat\LAATI\data\weapons_CO.paa",
  55. "3AS\3as_Laat\LAATI\data\weapon_Details_CO.paa",
  56. "3AS\3as_Laat\LAATI\data\interior_CO.paa"
  57. };
  58. class Turrets: Turrets
  59. {
  60. class Gunner: Copilot
  61. {
  62. minelev=-60;
  63. minturn=-240;
  64. maxelev=40;
  65. maxturn=-120;
  66. #include "../../common/common_optics.hpp"
  67. weapons[]=
  68. {
  69. macro_new_weapon(generic,republic_aircraft_cannon),
  70. "Laserdesignator_pilotCamera"
  71. };
  72. magazines[]=
  73. {
  74. "Laserbatteries",
  75. macro_new_mag(generic_aircraft_gun_green,1000),
  76. macro_new_mag(generic_aircraft_gun_green,1000),
  77. macro_new_mag(generic_aircraft_gun_green,1000)
  78. };
  79. memorypointgunneroptics="FIXME";
  80. };
  81. class LeftDoorgun: LeftDoorgun
  82. {
  83. weapons[]=
  84. {
  85. macro_new_weapon(turret,laat_ball_beam_l),
  86. "Laserdesignator_pilotCamera"
  87. };
  88. magazines[]=
  89. {
  90. "Laserbatteries",
  91. macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),
  92. macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),
  93. macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300)
  94. };
  95. #include "../../common/common_optics.hpp"
  96. memorypointgunneroptics="FIXME";
  97. };
  98. class RightDoorGun: RightDoorGun
  99. {
  100. weapons[]=
  101. {
  102. macro_new_weapon(turret,laat_ball_beam_r),
  103. "Laserdesignator_pilotCamera"
  104. };
  105. magazines[]=
  106. {
  107. "Laserbatteries",
  108. macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),
  109. macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),
  110. macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300)
  111. };
  112. #include "../../common/common_optics.hpp"
  113. memorypointgunneroptics="FIXME";
  114. };
  115. class CargoTurret_01: CargoTurret_01{};
  116. class CargoTurret_02: CargoTurret_02{};
  117. class CargoTurret_03: CargoTurret_03{};
  118. class CargoTurret_04: CargoTurret_04{};
  119. class CargoTurret_05: CargoTurret_05{};
  120. class CargoTurret_06: CargoTurret_06{};
  121. };
  122. };
  123. class macro_new_laat(Mk1_lights):3as_LAAT_Mk1Lights
  124. {
  125. displayName="LAAT/I MK.I (Lights)";
  126. #include "common_stuff_tcw.hpp"
  127. RD501_magclamp_small_1[] = {0.0,1.0,-1.0};
  128. class UserActions: UserActions
  129. {
  130. #include "user_action.hpp"
  131. };
  132. hiddenSelectionsTextures[]=
  133. {
  134. "RD501_Vehicles\textures\LAAT\hull_tmp_co.paa",
  135. "3AS\3as_Laat\LAATI\data\wings_501_CO.paa",
  136. "3AS\3as_Laat\LAATI\data\weapons_CO.paa",
  137. "3AS\3as_Laat\LAATI\data\weapon_Details_CO.paa",
  138. "3AS\3as_Laat\LAATI\data\interior_CO.paa"
  139. };
  140. class Turrets: Turrets
  141. {
  142. class Gunner: Copilot
  143. {
  144. minelev=-60;
  145. minturn=-240;
  146. maxelev=40;
  147. maxturn=-120;
  148. weapons[]=
  149. {
  150. macro_new_weapon(generic,republic_aircraft_cannon),
  151. "Laserdesignator_pilotCamera"
  152. };
  153. magazines[]=
  154. {
  155. "Laserbatteries",
  156. macro_new_mag(generic_aircraft_gun_green,1000),
  157. macro_new_mag(generic_aircraft_gun_green,1000),
  158. macro_new_mag(generic_aircraft_gun_green,1000)
  159. };
  160. #include "../../common/common_optics.hpp"
  161. };
  162. class CargoTurret_01: CargoTurret_01{};
  163. class CargoTurret_02: CargoTurret_02{};
  164. class CargoTurret_03: CargoTurret_03{};
  165. class CargoTurret_04: CargoTurret_04{};
  166. class CargoTurret_05: CargoTurret_05{};
  167. class CargoTurret_06: CargoTurret_06{};
  168. };
  169. };
  170. class macro_new_laat(Mk2):3as_LAAT_Mk2
  171. {
  172. displayName="LAAT/I MK.II";
  173. #include "common_stuff_tcw.hpp"
  174. RD501_magclamp_small_1[] = {0.0,1.0,-1.0};
  175. class UserActions: UserActions
  176. {
  177. #include "user_action.hpp"
  178. };
  179. hiddenSelectionsTextures[]=
  180. {
  181. "RD501_Vehicles\textures\LAAT\hull_tmp_co.paa",
  182. "3AS\3as_Laat\LAATI\data\wings_501_CO.paa",
  183. "3AS\3as_Laat\LAATI\data\weapons_CO.paa",
  184. "3AS\3as_Laat\LAATI\data\weapon_Details_CO.paa",
  185. "3AS\3as_Laat\LAATI\data\interior_CO.paa"
  186. };
  187. class Turrets: Turrets
  188. {
  189. class Gunner: Copilot
  190. {
  191. minelev=-60;
  192. minturn=-240;
  193. maxelev=40;
  194. maxturn=-120;
  195. weapons[]=
  196. {
  197. macro_new_weapon(generic,republic_aircraft_cannon),
  198. "Laserdesignator_pilotCamera"
  199. };
  200. magazines[]=
  201. {
  202. "Laserbatteries",
  203. macro_new_mag(generic_aircraft_gun_green,1000),
  204. macro_new_mag(generic_aircraft_gun_green,1000),
  205. macro_new_mag(generic_aircraft_gun_green,1000)
  206. };
  207. #include "../../common/common_optics.hpp"
  208. };
  209. class CargoTurret_01: CargoTurret_01{};
  210. class CargoTurret_02: CargoTurret_02{};
  211. };
  212. };
  213. class macro_new_laat(Mk2_lights):3as_LAAT_Mk2Lights
  214. {
  215. displayName="LAAT/I MK.II (Lights)";
  216. #include "common_stuff_tcw.hpp"
  217. RD501_magclamp_small_1[] = {0.0,1.0,-1.0};
  218. class UserActions: UserActions
  219. {
  220. #include "user_action.hpp"
  221. };
  222. hiddenSelectionsTextures[]=
  223. {
  224. "RD501_Vehicles\textures\LAAT\hull_tmp_co.paa",
  225. "3AS\3as_Laat\LAATI\data\wings_501_CO.paa",
  226. "3AS\3as_Laat\LAATI\data\weapons_CO.paa",
  227. "3AS\3as_Laat\LAATI\data\weapon_Details_CO.paa",
  228. "3AS\3as_Laat\LAATI\data\interior_CO.paa"
  229. };
  230. class Turrets: Turrets
  231. {
  232. class Gunner: Copilot
  233. {
  234. minelev=-60;
  235. minturn=-240;
  236. maxelev=40;
  237. maxturn=-120;
  238. weapons[]=
  239. {
  240. macro_new_weapon(generic,republic_aircraft_cannon),
  241. "Laserdesignator_pilotCamera"
  242. };
  243. magazines[]=
  244. {
  245. "Laserbatteries",
  246. macro_new_mag(generic_aircraft_gun_green,1000),
  247. macro_new_mag(generic_aircraft_gun_green,1000),
  248. macro_new_mag(generic_aircraft_gun_green,1000)
  249. };
  250. #include "../../common/common_optics.hpp"
  251. };
  252. class CargoTurret_01: CargoTurret_01{};
  253. class CargoTurret_02: CargoTurret_02{};
  254. };
  255. };
  256. class macro_new_laat(LE):3AS_Patrol_LAAT_Republic
  257. {
  258. displayName="Republic LAAT/LE";
  259. scope=2;
  260. author="RD501";
  261. forceInGarage = 1;
  262. RD501_magclamp_large_offset[] = {0.0, 0.0, -4.5};
  263. RD501_magclamp_small_offset[] = {0.0, 0.0, -4.5};
  264. faction = MACRO_QUOTE(macro_faction(republic)));
  265. editorSubcategory = MACRO_QUOTE(macro_editor_cat_air(Republic_heli));
  266. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type_air(Republic));
  267. transportSoldier=14;
  268. class UserActions
  269. {
  270. class ThrusterEngage
  271. {
  272. displayName = "";
  273. displayNameDefault = "";
  274. textToolTip = "";
  275. position = "pilotview";
  276. radius = 20;
  277. priority = 0;
  278. onlyForPlayer = 1;
  279. condition = "((player == driver this) AND (alive this))";
  280. statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseIncrease_LE.sqf""";
  281. shortcut="User19";
  282. };
  283. class ThrusterDisengage: ThrusterEngage
  284. {
  285. priority = 0;
  286. displayName = "";
  287. displayNameDefault = "";
  288. textToolTip = "";
  289. condition = "((player == driver this) AND (alive this))";
  290. statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseDecrease_LE.sqf""";
  291. shortcut="User20";
  292. };
  293. };
  294. RD501_magclamp_small_1[] = {0.0,1.0,-1.0};
  295. enableManualFire=1;
  296. weapons[]=
  297. {
  298. macro_new_weapon(generic,republic_aircraft_cannon),
  299. "Bomb_Leaflets",
  300. macro_new_weapon(wynd,ugm),
  301. macro_basic_air_weapons
  302. };
  303. magazines[]=
  304. {
  305. macro_basic_air_mags,
  306. "1Rnd_Leaflets_Civ_F",
  307. "1Rnd_Leaflets_Civ_F",
  308. "1Rnd_Leaflets_Civ_F",
  309. "1Rnd_Leaflets_Civ_F",
  310. macro_new_mag(ugm,10),
  311. macro_new_mag(generic_aircraft_gun_green,1000)
  312. };
  313. class Turrets: Turrets
  314. {
  315. class Gunner: Copilot
  316. {
  317. outGunnerMayFire=1;
  318. commanding=-1;
  319. primaryGunner=1;
  320. weapons[]=
  321. {
  322. macro_new_weapon(generic,republic_aircraft_cannon),
  323. "Laserdesignator_pilotCamera"
  324. };
  325. magazines[]=
  326. {
  327. "Laserbatteries",
  328. macro_new_mag(generic_aircraft_gun_green,1000)
  329. };
  330. #include "../../common/common_optics.hpp"
  331. };
  332. };
  333. };
  334. class macro_new_laat(C):3AS_LAATC
  335. {
  336. displayName="Republic LAAT/C";
  337. scope=2;
  338. author="RD501";
  339. forceInGarage = 1;
  340. hiddenSelections[] = {"camo","camo1"};
  341. hiddenSelectionsTextures[] = {"RD501_Vehicles\textures\LAAT\Camo_0_CO.paa","RD501_Vehicles\textures\LAAT\Camo_1_CO.paa"};
  342. faction = MACRO_QUOTE(macro_faction(republic));
  343. editorSubcategory = MACRO_QUOTE(macro_editor_cat_air(Republic_heli));
  344. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type_air(Republic));
  345. class UserActions
  346. {
  347. class ThrusterEngage
  348. {
  349. displayName = "";
  350. displayNameDefault = "";
  351. textToolTip = "";
  352. position = "pilotview";
  353. radius = 20;
  354. priority = 0;
  355. onlyForPlayer = 1;
  356. condition = "((player == driver this) AND (alive this))";
  357. statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseIncrease.sqf""";
  358. shortcut="User19";
  359. };
  360. class ThrusterDisengage: ThrusterEngage
  361. {
  362. priority = 0;
  363. displayName = "";
  364. displayNameDefault = "";
  365. textToolTip = "";
  366. condition = "((player == driver this) AND (alive this))";
  367. statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseDecrease.sqf""";
  368. shortcut="User20";
  369. };
  370. class afterburnerMk1_turn_on
  371. {
  372. condition="false;";
  373. };
  374. class afterburnerMk1_turn_off
  375. {
  376. condition="false;";
  377. };
  378. };
  379. RD501_magclamp_small_1[] = {-7.0,-2.0,-4.5};
  380. RD501_magclamp_large[] = {0.0,-2.0,-4.0};
  381. RD501_magclamp_small_2[] = {7.0,-2.0,-4.5};
  382. RD501_magclamp_small_forbidden = 1;
  383. RD501_magclamp_large_offset[] = {0.0,1.0,-4.5};
  384. enableManualFire=1;
  385. weapons[]=
  386. {
  387. macro_new_weapon(generic,republic_aircraft_cannon),
  388. macro_new_weapon(cannon,laat),
  389. macro_basic_air_weapons
  390. };
  391. magazines[]=
  392. {
  393. macro_basic_air_mags,
  394. macro_new_mag(generic_aircraft_gun_green,1000),
  395. macro_new_mag(laat_cannon,100),
  396. };
  397. };
  398. };