config.cpp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. //Get this addons macro
  2. //get the macro for the air macro_patch_name(vehicles)
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon Mynock
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_Mynock_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(mynock)
  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(T1000,Republic),
  23. macro_new_vehicle(Claymore,Republic),
  24. macro_new_vehicle(Warhammer,Republic),
  25. macro_new_vehicle(Glaive,Mynock),
  26. macro_new_vehicle(Glaive,Republic),
  27. macro_new_vehicle(Longbow,Republic),
  28. macro_new_vehicle(Courser,Republic)
  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_vehicle(T1000,Mynock):O_MBT_02_Cannon_F
  41. {
  42. scope=2;
  43. scopeCurator=2;
  44. forceInGarage = 1;
  45. side=1;
  46. displayName="Republic T1000 MBT (Mynock)"
  47. crew = "SWOP_Clonetrooper_P1";
  48. hiddenSelections[] = {"Camo1", "Camo2", "Camo3", "Camo4", "Camo5", "CamoSlat"};
  49. textureList[] = {};
  50. hiddenSelectionsTextures[] =
  51. {
  52. "RD501_Vehicles\textures\t1000\t1000_ext1_mynock_co.paa",
  53. "RD501_Vehicles\textures\t1000\t1000_turret_mynock_co.paa",
  54. "RD501_Vehicles\textures\t1000\t1000_ext2_mynock_co.paa",
  55. "RD501_Vehicles\textures\grey.paa"
  56. };
  57. faction = macro_republic_faction
  58. editorSubcategory = macro_editor_cat(Tank)
  59. vehicleClass = macro_editor_vehicle_type(Tank)
  60. class TransportBackpacks;
  61. class TransportItems;
  62. class TransportWeapons;
  63. class TransportMagazines;
  64. class EventHandlers :DefaultEventhandlers
  65. {
  66. fired = "_this call (uinamespace getviariable 'BIS_fnc_effectFired');";
  67. };
  68. class Turrets: Turrets
  69. {
  70. class MainTurret: MainTurret
  71. {
  72. weapons[] = {macro_new_weapon(mynock_cannon,mbt), macro_new_weapon(generic,plasma_aircraft_cannon)};
  73. magazines[] = {macro_new_mag(mynock_mbt_ap,12), macro_new_mag(mynock_mbt_ap,12), macro_new_mag(mynock_mbt_ap,12), macro_new_mag(mynock_mbt_he,12), macro_new_mag(mynock_mbt_he,12), macro_new_mag(mynock_mbt_he,12), macro_new_mag(generic_aircraft_cannon_plasma_red,1000), macro_new_mag(generic_aircraft_cannon_plasma_red,1000)};
  74. class Turrets: Turrets
  75. {
  76. class CommanderOptics: CommanderOptics
  77. {
  78. weapons[] = {macro_new_weapon(generic,plasma_aircraft_cannon),"CMFlareLauncher","SmokeLauncher"};
  79. magazines[] = {"300Rnd_CMFlare_Chaff_Magazine",macro_new_mag(generic_aircraft_cannon_plasma_red,1000), macro_new_mag(generic_aircraft_cannon_plasma_red,1000), "SmokeLauncherMag"};
  80. };
  81. };
  82. };
  83. };
  84. };
  85. class macro_new_vehicle(Claymore,Mynock):B_MBT_01_TUSK_F
  86. {
  87. scope=2;
  88. side=1;
  89. scopeCurator=2;
  90. forceInGarage = 1;
  91. displayName="Republic Claymore MBT (Mynock)"
  92. crew = "SWOP_Clonetrooper_P1";
  93. hiddenSelections[] = {"Camo1", "Camo2", "Camo3", "Camo4", "Camo5", "CamoSlat"};
  94. textureList[] = {};
  95. hiddenSelectionsTextures[] =
  96. {
  97. "RD501_Vehicles\textures\mbt01\mbt01_ext1_mynock_co.paa",
  98. "RD501_Vehicles\textures\mbt01\claymore\claymore_tower_mynock_co.paa",
  99. "RD501_Vehicles\textures\mbt01\claymore\claymore_addons_mynock_co.paa",
  100. "a3\Armor_F\Data\camonet_NATO_Desert_CO.paa"
  101. };
  102. faction = macro_republic_faction
  103. editorSubcategory = macro_editor_cat(Tank)
  104. vehicleClass = macro_editor_vehicle_type(Tank)
  105. class TransportBackpacks;
  106. class TransportItems;
  107. class TransportWeapons;
  108. class TransportMagazines;
  109. class EventHandlers :DefaultEventhandlers
  110. {
  111. fired = "_this call (uinamespace getviariable 'BIS_fnc_effectFired');";
  112. };
  113. class Turrets: Turrets
  114. {
  115. class MainTurret: MainTurret
  116. {
  117. weapons[] = {macro_new_weapon(mynock_cannon,mbt), macro_new_weapon(generic,plasma_aircraft_cannon)};
  118. magazines[] = {macro_new_mag(mynock_mbt_ap,12), macro_new_mag(mynock_mbt_ap,12), macro_new_mag(mynock_mbt_ap,12), macro_new_mag(mynock_mbt_he,12), macro_new_mag(mynock_mbt_he,12), macro_new_mag(mynock_mbt_he,12), macro_new_mag(generic_aircraft_cannon_plasma_red,1000), macro_new_mag(generic_aircraft_cannon_plasma_red,1000)};
  119. class Turrets: Turrets
  120. {
  121. class CommanderOptics: CommanderOptics
  122. {
  123. weapons[] = {macro_new_weapon(generic,plasma_aircraft_cannon),"CMFlareLauncher","SmokeLauncher"};
  124. magazines[] = {"300Rnd_CMFlare_Chaff_Magazine",macro_new_mag(generic_aircraft_cannon_plasma_red,1000), macro_new_mag(generic_aircraft_cannon_plasma_red,1000), "SmokeLauncherMag"};
  125. };
  126. };
  127. };
  128. };
  129. };
  130. class macro_new_vehicle(Warhammer,Mynock):I_MBT_03_cannon_F
  131. {
  132. scope=2;
  133. side=1;
  134. scopeCurator=2;
  135. forceInGarage = 1;
  136. displayName="Republic Warhammer MBT (Mynock)"
  137. crew = "SWOP_Clonetrooper_P1";
  138. hiddenSelections[] = {"Camo1", "Camo2", "Camo3", "Camo4", "Camo5", "CamoSlat"};
  139. textureList[] = {};
  140. hiddenSelectionsTextures[] =
  141. {
  142. "RD501_Vehicles\textures\warhammer\warhammer_ext01_mynock_co.paa",
  143. "RD501_Vehicles\textures\warhammer\warhammer_ext02_mynock_co.paa",
  144. "RD501_Vehicles\textures\warhammer\warhammer_ext03_mynock_co.paa",
  145. "A3\Armor_F\Data\camonet_AAF_Digi_Green_CO.paa"
  146. };
  147. faction = macro_republic_faction
  148. editorSubcategory = macro_editor_cat(Tank)
  149. vehicleClass = macro_editor_vehicle_type(Tank)
  150. class TransportBackpacks;
  151. class TransportItems;
  152. class TransportWeapons;
  153. class TransportMagazines;
  154. class EventHandlers :DefaultEventhandlers
  155. {
  156. fired = "_this call (uinamespace getviariable 'BIS_fnc_effectFired');";
  157. };
  158. class Turrets: Turrets
  159. {
  160. class MainTurret: MainTurret
  161. {
  162. weapons[] = {macro_new_weapon(mynock_cannon,mbt), macro_new_weapon(generic,plasma_aircraft_cannon)};
  163. magazines[] = {"300Rnd_CMFlare_Chaff_Magazine",macro_new_mag(mynock_mbt_ap,12), macro_new_mag(mynock_mbt_ap,12), macro_new_mag(mynock_mbt_ap,12), macro_new_mag(mynock_mbt_he,12), macro_new_mag(mynock_mbt_he,12), macro_new_mag(mynock_mbt_he,12), macro_new_mag(generic_aircraft_cannon_plasma_red,1000), macro_new_mag(generic_aircraft_cannon_plasma_red,1000)};
  164. class Turrets: Turrets
  165. {
  166. class CommanderOptics: CommanderOptics
  167. {
  168. weapons[] = {macro_new_weapon(generic,plasma_aircraft_cannon),"CMFlareLauncher","SmokeLauncher"};
  169. magazines[] = {macro_new_mag(generic_aircraft_cannon_plasma_red,1000), macro_new_mag(generic_aircraft_cannon_plasma_red,1000), "SmokeLauncherMag"};
  170. };
  171. };
  172. };
  173. };
  174. };
  175. class macro_new_vehicle(Glaive,Mynock):B_AFV_Wheeled_01_up_cannon_F
  176. {
  177. scope=2;
  178. side=1;
  179. scopeCurator=2;
  180. forceInGarage = 1;
  181. displayName="Republic Glaive TD (Mynock)"
  182. crew = "SWOP_Clonetrooper_P1";
  183. hiddenSelections[] = {"Camo1", "Camo2", "Camo3", "Camo4", "Camo5", "CamoSlat"};
  184. textureList[] = {};
  185. hiddenSelectionsTextures[] =
  186. {
  187. "RD501_Vehicles\textures\glaive\glaive_ext1_mynock_co.paa",
  188. "RD501_Vehicles\textures\glaive\glaive_ext2_mynock_co.paa",
  189. "RD501_Vehicles\textures\glaive\glaive_wheel_mynock_co.paa",
  190. "RD501_Vehicles\textures\glaive\glaive_ext3_mynock_co.paa",
  191. "RD501_Vehicles\textures\glaive\glaive_turret_mynock_co.paa",
  192. "RD501_Vehicles\textures\grey.paa",
  193. "RD501_Vehicles\textures\glaive\glaive_ext3_mynock_co.paa"
  194. };
  195. faction = macro_republic_faction
  196. editorSubcategory = macro_editor_cat(APC)
  197. vehicleClass = macro_editor_vehicle_type(APC)
  198. class TransportBackpacks;
  199. class TransportItems;
  200. class TransportWeapons;
  201. class TransportMagazines;
  202. class EventHandlers :DefaultEventhandlers
  203. {
  204. fired = "_this call (uinamespace getviariable 'BIS_fnc_effectFired');";
  205. init = "[_this select 0] execVM 'RD501_Vehicles\_init_functions\wheel_dmg.sqf';";
  206. };
  207. class Turrets: Turrets
  208. {
  209. class MainTurret: MainTurret
  210. {
  211. weapons[] = {macro_new_weapon(mynock_cannon,td), macro_new_weapon(generic,plasma_aircraft_cannon)};
  212. magazines[] = {macro_new_mag(mynock_mbt_td,12), macro_new_mag(mynock_mbt_td,12), macro_new_mag(mynock_mbt_td,12), macro_new_mag(mynock_mbt_td,12), macro_new_mag(mynock_mbt_td,12), macro_new_mag(mynock_mbt_td,12), macro_new_mag(generic_aircraft_cannon_plasma_red,1000), macro_new_mag(generic_aircraft_cannon_plasma_red,1000)}; class Turrets: Turrets
  213. {
  214. class CommanderOptics: CommanderOptics
  215. {
  216. weapons[] = {macro_new_weapon(generic,plasma_aircraft_cannon),"SmokeLauncher","CMFlareLauncher"};
  217. magazines[] = {"300Rnd_CMFlare_Chaff_Magazine",macro_new_mag(generic_aircraft_cannon_plasma_red,1000), macro_new_mag(generic_aircraft_cannon_plasma_red,1000), "SmokeLauncherMag"};
  218. };
  219. };
  220. };
  221. };
  222. };
  223. class macro_new_vehicle(Glaive,Republic): macro_new_vehicle(Glaive,Mynock)
  224. {
  225. displayName="Republic Glaive TD"
  226. hiddenSelectionsTextures[]=
  227. {
  228. "RD501_Vehicles\textures\glaive\glaive_ext1_republic_co.paa",
  229. "RD501_Vehicles\textures\glaive\glaive_ext2_republic_co.paa",
  230. "RD501_Vehicles\textures\glaive\glaive_wheel_republic_co.paa",
  231. "RD501_Vehicles\textures\glaive\glaive_ext3_republic_co.paa",
  232. "RD501_Vehicles\textures\glaive\glaive_turret_republic_co.paa",
  233. "RD501_Vehicles\textures\cream.paa",
  234. "RD501_Vehicles\textures\glaive\glaive_ext3_republic_co.paa"
  235. };
  236. };
  237. class macro_new_vehicle(Longbow,Mynock):O_APC_Tracked_02_AA_F
  238. {
  239. scope=2;
  240. side=1;
  241. scopeCurator=2;
  242. forceInGarage = 1;
  243. displayName="Republic Longbow AA (Mynock)"
  244. crew = "SWOP_Clonetrooper_P1";
  245. hiddenSelections[] = {"Camo1", "Camo2", "Camo3", "Camo4", "Camo5", "CamoSlat"};
  246. textureList[] = {};
  247. hiddenSelectionsTextures[] =
  248. {
  249. "RD501_Vehicles\textures\longbow\longbow_ext1_mynock_co.paa",
  250. "RD501_Vehicles\textures\longbow\longbow_ext2_mynock_co.paa",
  251. "RD501_Vehicles\textures\longbow\longbow_tower_mynock_co.paa",
  252. "A3\Armor_F\Data\camonet_CSAT_HEX_Desert_CO.paa",
  253. "RD501_Vehicles\FE_Vehicles\textures\grey.paa",
  254. };
  255. faction = macro_republic_faction
  256. editorSubcategory = macro_editor_cat(AA)
  257. vehicleClass = macro_editor_vehicle_type(AA)
  258. class TransportBackpacks;
  259. class TransportItems;
  260. class TransportWeapons;
  261. class TransportMagazines;
  262. class EventHandlers :DefaultEventhandlers
  263. {
  264. fired = "_this call (uinamespace getviariable 'BIS_fnc_effectFired');";
  265. };
  266. class Turrets: Turrets
  267. {
  268. class MainTurret: MainTurret
  269. {
  270. weapons[] = {macro_new_weapon(aa_gun,aa_gun_base),"missiles_titan_AA"};
  271. magazines[] = {macro_new_mag(AA_Gun_Base,1000),macro_new_mag(AA_Gun_Base,1000),macro_new_mag(AA_Gun_Base,1000),macro_new_mag(AA_Gun_Base,1000),"4Rnd_Titan_long_missiles_O","4Rnd_Titan_long_missiles_O"};
  272. class Turrets: Turrets
  273. {
  274. class CommanderOptics: CommanderOptics
  275. {
  276. weapons[] = {"CMFlareLauncher","SmokeLauncher"};
  277. magazines[] = {"300Rnd_CMFlare_Chaff_Magazine","SmokeLauncherMag"};
  278. };
  279. };
  280. };
  281. };
  282. };
  283. class macro_new_vehicle(Courser,Republic):O_LSV_02_unarmed_F
  284. {
  285. scope=2;
  286. side=1;
  287. scopeCurator=2;
  288. forceInGarage = 1;
  289. displayName="Republic Courser"
  290. crew = "SWOP_Clonetrooper_P1";
  291. //hiddenSelections[] = {"Camo1","Camo2","Camo3"};
  292. //hiddenSelectionsTextures[] =
  293. //{
  294. // "\RD501_Vehicles\textures\LAAT\krayt_black_red\laatkraytbodyblackred.paa",
  295. // "\RD501_Vehicles\textures\LAAT\krayt_black_red\laatkraytbodyblackred.paa",
  296. // "\RD501_Vehicles\textures\LAAT\krayt_black_red\laatkraytbodyblackred.paa"
  297. //};
  298. faction = macro_republic_faction
  299. editorSubcategory = macro_editor_cat(Transport)
  300. vehicleClass = macro_editor_vehicle_type(Transport)
  301. };
  302. };