config.cpp 11 KB

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