config.cpp 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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_vehicle(laat,name) vehicle_classname##_##name
  10. #define reskined_laat_mk3(classname,displayname,texturebody,texturewing)\
  11. class macro_new_vehicle(laat,classname):macro_new_vehicle(laat,Mk3)\
  12. {\
  13. forceInGarage = 0;\
  14. displayName=LAAT/I MK.III - ('##displayname##') ;\
  15. hiddenSelectionsTextures[]={macro_vehicle_textures##\LAAT\##texturebody,macro_vehicle_textures##\LAAT\##texturewing};\
  16. };
  17. #define reskined_laat_mk4_full_path(classname,displayname,texturebody,texturewing)\
  18. class macro_new_vehicle(laat,classname):macro_new_vehicle(laat,Mk4)\
  19. {\
  20. forceInGarage = 0;\
  21. displayName=LAAT/I MK.IV - ('##displayname##') ;\
  22. hiddenSelectionsTextures[]={texturebody,texturewing};\
  23. };
  24. class CfgPatches
  25. {
  26. class macro_patch_name(LAAT)
  27. {
  28. addonRootClass=macro_patch_name(vehicles)
  29. requiredAddons[]=
  30. {
  31. macro_patch_name(vehicles)
  32. };
  33. requiredVersion=0.1;
  34. units[]=
  35. {
  36. macro_new_vehicle(laat,Mk3),
  37. macro_new_vehicle(laat,red_krayt),
  38. macro_new_vehicle(laat,medic_krayt),
  39. macro_new_vehicle(laat,stealth_blue_krayt),
  40. macro_new_vehicle(laat,stealth_red_krayt),
  41. macro_new_vehicle(laat,stealth_white_krayt),
  42. macro_new_vehicle(laat,blue_krayt),
  43. macro_new_vehicle(laat,ranger_enforcer),
  44. macro_new_vehicle(laat,Mk4),
  45. macro_new_vehicle(laat,spec_ops),
  46. macro_new_vehicle(laat,muunilinst),
  47. macro_new_vehicle(laat,cargo_Mk2),
  48. macro_new_vehicle(laat,blue),
  49. macro_new_vehicle(laat,vtol_test),
  50. macro_new_vehicle(laat,mk4_skin),
  51. macro_new_vehicle(laat,mk4_501st_cxc),
  52. macro_new_vehicle(laat,mk4_501st_cxx),
  53. macro_new_vehicle(laat,mk4_501st_cxp),
  54. macro_new_vehicle(laat,mk4_501st_cxs),
  55. macro_new_vehicle(laat,mk4_501st_cx)
  56. };
  57. weapons[]=
  58. {
  59. };
  60. };
  61. };
  62. class DefaultEventhandlers;
  63. class CfgVehicles
  64. {
  65. #include "inheritance.hpp"
  66. class macro_new_vehicle(laat,Mk3):swop_LAAT
  67. {
  68. scope=2;
  69. displayName="LAAT/I MK.III";
  70. author="RD501"
  71. side=1;
  72. crew="SWOP_Clonetrooper_P1";
  73. transportSoldier=24;
  74. smokeLauncherGrenadeCount = 48;
  75. smokeLauncherAngle = 360;
  76. forceInGarage = 1;
  77. crewExplosionProtection = 0;
  78. crewCrashProtection = 0;
  79. slingLoadMemoryPoint = "slingload0";
  80. //hiddenSelectionsMaterials[] = {"RD501_Laat\textures\laat\g1.rvmat","RD501_Laat\textures\laat\g2.rvmat"};
  81. //typing hard
  82. #include "ace_stuff.hpp"
  83. #include "flight_model.hpp"
  84. #include "common_stuff_mk3.hpp"
  85. class UserActions
  86. {
  87. #include "user_action.hpp"
  88. };
  89. class ACE_SelfActions:ACE_SelfActions
  90. {
  91. #include "../../common/universal_hud_color_changer.hpp"
  92. };
  93. #include "../../common/universal_mfd.hpp"
  94. class Turrets: Turrets
  95. {
  96. class CopilotTurret: CopilotTurret
  97. {
  98. #include "common_copilot.hpp"
  99. };
  100. class GunnerTurret1:GunnerTurret1
  101. {
  102. #include "ball_turret_weapons.hpp"
  103. };
  104. class GunnerTurret2:GunnerTurret2
  105. {
  106. #include "ball_turret_weapons.hpp"
  107. };
  108. class CargoTurret_01:CargoTurret_01{};
  109. class CargoTurret_02:CargoTurret_02{};
  110. class CargoTurret_03:CargoTurret_03{};
  111. class CargoTurret_04:CargoTurret_04{};
  112. class CargoTurret_05:CargoTurret_05{};
  113. class CargoTurret_06:CargoTurret_06{};
  114. };
  115. };
  116. class macro_new_vehicle(laat,Mk4):swop_LAATmk2
  117. {
  118. scope=2;
  119. displayName="LAAT/I MK.IV";
  120. author="RD501"
  121. side=1;
  122. crew="SWOP_Clonetrooper_P1";
  123. transportSoldier=24;
  124. smokeLauncherGrenadeCount = 48;
  125. smokeLauncherAngle = 360;
  126. forceInGarage = 1;
  127. crewExplosionProtection = 0;
  128. crewCrashProtection = 0;
  129. slingLoadMemoryPoint = "slingLoad0";
  130. angleRangeHorizontal = 360;
  131. angleRangeVertical = 360;
  132. //typing hard
  133. #include "ace_stuff.hpp"
  134. #include "flight_model.hpp"
  135. #include "common_stuff.hpp"
  136. class UserActions
  137. {
  138. #include "user_action.hpp"
  139. class OpenCargoDoor
  140. {
  141. displayName = "<t color='#F64747'>[Open Doors]</t>";
  142. displayNameDefault = "<t color='#F64747'>[Open Doors]</t>";
  143. textToolTip = "<t color='#F64747'>[Open Doors]</t>";
  144. position = "pilotview";
  145. radius = 20;
  146. priority = 9999;
  147. onlyForPlayer = 1;
  148. condition = "this doorPhase ""Doors"" < 0.5 AND (alive this) AND (player in [gunner this, driver this])";
  149. statement = "this animateDoor ['Doors', 1];this animate ['DoorsHandler',1]";
  150. animPeriod = 5;
  151. };
  152. class CloseCargoDoor: OpenCargoDoor
  153. {
  154. displayName = "<t color='#009FD4'>[Close Doors]</t>";
  155. displayNameDefault = "<t color='#009FD4'>[Close Doors]</t>";
  156. textToolTip = "<t color='#009FD4'>[Close Doors]</t>";
  157. priority = 9999;
  158. condition = "this doorPhase ""Doors"" > 0.5 AND (alive this) AND (player in [gunner this, driver this])";
  159. statement = "this animateDoor ['Doors', 0];this animate ['DoorsHandler',0];";
  160. animPeriod = 5;
  161. };
  162. };
  163. class ACE_SelfActions:ACE_SelfActions
  164. {
  165. #include "../../common/universal_hud_color_changer.hpp"
  166. };
  167. #include "../../common/universal_mfd.hpp"
  168. class Turrets: Turrets
  169. {
  170. class CopilotTurret: CopilotTurret
  171. {
  172. #include "common_copilot.hpp"
  173. };
  174. class GunnerTurret1:GunnerTurret1
  175. {
  176. #include "ball_turret_weapons.hpp"
  177. };
  178. class GunnerTurret2:GunnerTurret2
  179. {
  180. #include "ball_turret_weapons.hpp"
  181. };
  182. };
  183. };
  184. #include "_mk4_reskin.hpp"
  185. class macro_new_vehicle(laat,cargo_Mk2):swop_LAAT_cargo
  186. {
  187. scope=2;
  188. displayName="LAAT/C MK.II";
  189. author="RD501"
  190. side=1;
  191. crew="SWOP_Clonetrooper_P1";
  192. //transportSoldier=24;
  193. smokeLauncherGrenadeCount = 48;
  194. smokeLauncherAngle = 360;
  195. forceInGarage = 1;
  196. faction = macro_republic_faction
  197. editorSubcategory = macro_editor_cat_air(Republic_heli)
  198. vehicleClass = macro_editor_vehicle_type_air(Republic)
  199. maximumLoad = 5000000000;
  200. slingLoadMaxCargoMass = 5000000000;
  201. //#include "flight_model.hpp"
  202. // cyclicAsideForceCoef = 1*1;
  203. // cyclicForwardForceCoef = 1*4;
  204. // backRotorForceCoef =1*1;
  205. // maxSpeed=200;
  206. // bodyFrictionCoef = 0.9*40;
  207. #include "ace_stuff.hpp"
  208. class ACE_SelfActions
  209. {
  210. #include "../../common/universal_hud_color_changer.hpp"
  211. };
  212. #include "../../common/universal_mfd.hpp"
  213. //#include "flight_model.hpp"
  214. #include "sounds.hpp"
  215. class UserActions
  216. {
  217. #include "user_action.hpp"
  218. };
  219. class EventHandlers : DefaultEventhandlers {
  220. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  221. init = "[_this select 0] call RD501_Main_fnc_laatc_lift";
  222. }
  223. weapons[]=
  224. {
  225. macro_new_weapon(cannon,laat),
  226. macro_new_weapon(wynd,a2a),
  227. "CMFlareLauncher",
  228. "SmokeLauncher",
  229. "Laserdesignator_pilotCamera"
  230. };
  231. magazines[]=
  232. {
  233. "300Rnd_CMFlare_Chaff_Magazine",
  234. "300Rnd_CMFlare_Chaff_Magazine",
  235. "300Rnd_CMFlare_Chaff_Magazine",
  236. macro_new_mag(a2a,4),
  237. macro_new_mag(a2a,4),
  238. "SmokeLauncherMag",
  239. macro_new_mag(laat_cannon,100),
  240. macro_new_mag(laat_cannon,100),
  241. macro_new_mag(laat_cannon,100),
  242. macro_new_mag(laat_cannon,100),
  243. macro_new_mag(laat_cannon,100),
  244. "SmokeLauncherMag",
  245. "SmokeLauncherMag",
  246. "SmokeLauncherMag",
  247. "SmokeLauncherMag",
  248. "SmokeLauncherMag",
  249. "SmokeLauncherMag",
  250. "Laserbatteries"
  251. };
  252. //#include "flight_model.hpp"
  253. };
  254. //mk4 reskins (with swop skins)
  255. reskined_laat_mk4_full_path(spec_ops,Spec Op,LAAT\textures\gunship_2_d.paa,LAAT\textures\gunship_1_spec.paa)
  256. reskined_laat_mk4_full_path(muunilinst,Muunilinst,LAAT\textures\gunship_2_arc_d.paa,LAAT\textures\gunship_1_arc_d.paa)
  257. reskined_laat_mk4_full_path(blue,Blue,LAAT\textures\gunship_2_blue.paa,LAAT\textures\gunship_1_blue.paa)
  258. //mk3 reskins
  259. // reskined_laat_mk3(red_krayt,Red Krayt,krayt_red\LaatKraytBodyRed.paa,krayt_red\LaatKraytWingRed.paa)
  260. // reskined_laat_mk3(blue_krayt,Blue Krayt,krayt_blue\LaatKraytBodyBlue.paa,krayt_blue\LaatKraytWingBlue.paa)
  261. // reskined_laat_mk3(medic_krayt,Medic Krayt,medic_red\redMedicLaatBody.paa,medic_red\redMedicLaatWing.paa)
  262. // reskined_laat_mk3(stealth_blue_krayt,Stealth Blue Krayt,krayt_black_blue\LaatKraytBodyBlackBlue.paa,krayt_black_blue\LaatKraytWingBlackBlue.paa)
  263. // reskined_laat_mk3(stealth_red_krayt,Stealth Red Krayt,krayt_black_red\LaatKraytBodyBlackRed.paa,krayt_black_red\LaatKraytWingBlackRed.paa)
  264. // reskined_laat_mk3(stealth_white_krayt,Stealth White Krayt,krayt_black_white\LaatKraytBodyBlackWhite.paa,krayt_black_white\LaatKraytWingBlackWhite.paa)
  265. // reskined_laat_mk3(ranger_enforcer,Ranger Enforcer,ranger_enforcer_Laat\reBody.paa,ranger_enforcer_Laat\reWing.paa)
  266. };