config.cpp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  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 drones
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_drone_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(drones)
  13. {
  14. addonRootClass=macro_patch_name(vehicles)
  15. requiredAddons[]=
  16. {
  17. "A3_data_F",
  18. "A3_anims_F",
  19. "A3_weapons_F",
  20. "A3_characters_F",
  21. macro_patch_name(vehicles)
  22. };
  23. requiredVersion=0.1;
  24. units[]=
  25. {
  26. macro_new_vehicle(drone,cis_Hover_Droid),
  27. macro_new_vehicle(drone,Interrogation_Droid),
  28. macro_new_vehicle(drone,CIS_Dio_Droid),
  29. macro_new_vehicle(drone,Rebel_Dio_Droid),
  30. macro_new_vehicle(drone,Clone_Recon_Droid),
  31. macro_new_vehicle(drone,Clone_Recon_Droid_ATTE),
  32. macro_new_vehicle(drone,rep_stealth_fixedwing),
  33. macro_new_vehicle(drone,cis_stealth_fixedwing),
  34. macro_new_vehicle(drone,razor_stealth_fixedwing),
  35. macro_new_vehicle(drone,razor_recon),
  36. macro_new_vehicle(drone,razor_recon_bag),
  37. macro_new_vehicle(drone,Clone_Recon_bag)
  38. };
  39. weapons[]=
  40. {
  41. };
  42. };
  43. };
  44. #include "../../common/sensor_templates.hpp"
  45. class CBA_Extended_EventHandlers_base;
  46. class CfgVehicles
  47. {
  48. #include "inheritance.hpp"
  49. class macro_new_vehicle(drone,cis_Hover_Droid): swcishoverdroid
  50. {
  51. scope=2
  52. forceInGarage = 1;
  53. displayName = "CIS Hover Droid MK.II";
  54. armor = 0.1;
  55. cost = 20000;
  56. altFullForce = 1000;
  57. altNoForce = 1100;
  58. LODTurnedIn = -1;
  59. hiddenselectionstextures[] = {"SW_CloneWarsWeapons\Recon\hover_droid_diff.paa"};
  60. faction = macro_cis_faction
  61. class EventHandlers {
  62. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  63. };
  64. class Turrets: Turrets
  65. {
  66. class MainTurret:MainTurret
  67. {
  68. weapons[] = {"Laserdesignator_mounted","heavyrepeater"};
  69. magazines[] = {
  70. "Laserbatteries",
  71. "SWOP_HeavyRepeater_Mag",
  72. "SWOP_HeavyRepeater_Mag",
  73. "SWOP_HeavyRepeater_Mag","SWOP_HeavyRepeater_Mag",
  74. "SWOP_HeavyRepeater_Mag","SWOP_HeavyRepeater_Mag",
  75. "SWOP_HeavyRepeater_Mag","SWOP_HeavyRepeater_Mag"
  76. };
  77. }
  78. }
  79. };
  80. class macro_new_vehicle(drone,Interrogation_Droid): SWOP_interrogationdroid
  81. {
  82. author = "RD501";
  83. scope=2
  84. forceInGarage = 1;
  85. displayName = "Interrogation Droid MK.II";
  86. altFullForce = 1000;
  87. altNoForce = 1100;
  88. faction = macro_cis_faction
  89. class EventHandlers {
  90. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  91. };
  92. };
  93. class macro_new_vehicle(drone,CIS_Dio_Droid): SWOP_Dio_Droid
  94. {
  95. author = "RD501";
  96. scope=2
  97. forceInGarage = 1;
  98. displayName = "ID10 Droid MK.II";
  99. altFullForce = 1000;
  100. altNoForce = 1100;
  101. faction = macro_cis_faction
  102. class EventHandlers {
  103. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  104. };
  105. };
  106. class macro_new_vehicle(drone,Rebel_Dio_Droid): SWOP_Rebel_Dio_Droid
  107. {
  108. author = "RD501";
  109. scope=2
  110. forceInGarage = 1;
  111. displayName = "Rebel ID10 Droid MK.II";
  112. altFullForce = 1000;
  113. altNoForce = 1100;
  114. faction = macro_rebel_faction
  115. class EventHandlers {
  116. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  117. };
  118. };
  119. class macro_new_vehicle(drone,Clone_Recon_bag):JLTS_UAV_prowler_gar_backpack
  120. {
  121. displayName="Hummingbird Recon Drone";
  122. hiddenSelectionsTextures[]=
  123. {
  124. "\RD501_Vehicles\air\drones\Clone_backpack_uav.paa"
  125. };
  126. class assembleInfo: assembleInfo
  127. {
  128. displayName="R2 Drone Bag";
  129. assembleTo = macro_new_vehicle(drone,Clone_Recon_Droid)
  130. };
  131. };
  132. class macro_new_vehicle(drone,Clone_Recon_Droid): swclonerecondroid
  133. {
  134. author = "RD501";
  135. scope=2
  136. forceInGarage = 1;
  137. displayName = "R-2 Recon Droid";
  138. altFullForce = 100;
  139. altNoForce = 1000;
  140. fuelCapacity = 90;
  141. fuelConsumptionRate = 1;
  142. faction = macro_republic_faction
  143. class EventHandlers {
  144. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  145. };
  146. class assembleInfo
  147. {
  148. dissasembleTo[]=
  149. {
  150. macro_new_vehicle(drone,Clone_Recon_bag)
  151. };
  152. };
  153. };
  154. class macro_new_vehicle(drone,Clone_Recon_Droid_ATTE):swclonerecondroid
  155. {
  156. displayname = "AT-TE Commander Camera";
  157. scope=2
  158. forceInGarage = 1;
  159. author = "RD501";
  160. faction = macro_republic_faction
  161. class EventHandlers {
  162. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  163. };
  164. };
  165. class macro_new_vehicle(drone,rep_stealth_fixedwing):B_UAV_05_F
  166. {
  167. displayname = "GAR Phantom";
  168. scope=2;
  169. forceInGarage = 1;
  170. author = "RD501";
  171. faction = macro_republic_faction
  172. hiddenSelections[] = {"camo1","camo2"};
  173. hiddenSelectionsMaterials[] = {"\RD501_Vehicles\textures\sentinel\phantom_fuselage_01.rvmat",""};
  174. hiddenSelectionsTextures[] = {"\RD501_Vehicles\textures\sentinel\phantom_fuselage_01_gar_co.paa",""};
  175. weapons[] = {
  176. macro_basic_air_weapons,
  177. macro_new_weapon(generic,ion_aircraft_cannon)
  178. };
  179. magazines[] = {
  180. macro_basic_air_mags,
  181. macro_new_mag(generic_aircraft_cannon_blue,1000),
  182. macro_new_mag(generic_aircraft_cannon_blue,1000)
  183. };
  184. class pilotCamera
  185. {
  186. class OpticsIn
  187. {
  188. class Wide
  189. {
  190. opticsDisplayName = "WFOV";
  191. initAngleX = 0;
  192. minAngleX = 0;
  193. maxAngleX = 0;
  194. initAngleY = 0;
  195. minAngleY = 0;
  196. maxAngleY = 0;
  197. initFov=0.42;//"(30 / 120)";
  198. minFov=0.42;//"(30 / 120)";
  199. maxFov=0.42;//"(30 / 120)";
  200. directionStabilized = 1;
  201. visionMode[] = {"Normal","NVG", "Ti"};
  202. thermalMode[] = {0,1,2,3,4,5};
  203. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_wide_F.p3d";
  204. opticsPPEffects[] = {"OpticsCHAbera2", "OpticsBlur2"};
  205. };
  206. class Medium: Wide
  207. {
  208. opticsDisplayName = "MFOV";
  209. initFov="0.42/4";//"(30 / 120)";
  210. minFov="0.42/4";//"(30 / 120)";
  211. maxFov="0.42/4";//"(30 / 120)";
  212. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_medium_F.p3d";
  213. };
  214. class Narrow: Wide
  215. {
  216. opticsDisplayName = "NFOV";
  217. initFov="0.42/8";//"(30 / 120)";
  218. minFov="0.42/8";//"(30 / 120)";
  219. maxFov="0.42/8";//"(30 / 120)";
  220. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  221. };
  222. class NarrowX16: Wide
  223. {
  224. opticsDisplayName = "NFOV";
  225. initFov="0.42/16";//"(30 / 120)";
  226. minFov="0.42/16";//"(30 / 120)";
  227. maxFov="0.42/16";//"(30 / 120)";
  228. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  229. };
  230. class NarrowX24: Wide
  231. {
  232. opticsDisplayName = "NFOV";
  233. initFov="0.42/24";//"(30 / 120)";
  234. minFov="0.42/24";//"(30 / 120)";
  235. maxFov="0.42/24";//"(30 / 120)";
  236. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  237. };
  238. class NarrowX36: Wide
  239. {
  240. opticsDisplayName = "NFOV";
  241. initFov="0.42/36";//"(30 / 120)";
  242. minFov="0.42/36";//"(30 / 120)";
  243. maxFov="0.42/36";//"(30 / 120)";
  244. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  245. };
  246. class NarrowX48: Wide
  247. {
  248. opticsDisplayName = "NFOV";
  249. initFov="0.42/48";//"(30 / 120)";
  250. minFov="0.42/48";//"(30 / 120)";
  251. maxFov="0.42/48";//"(30 / 120)";
  252. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  253. };
  254. class NarrowX60: Wide
  255. {
  256. opticsDisplayName = "NFOV";
  257. initFov="0.42/60";//"(30 / 120)";
  258. minFov="0.42/60";//"(30 / 120)";
  259. maxFov="0.42/60";//"(30 / 120)";
  260. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  261. };
  262. class NarrowX80: Wide
  263. {
  264. opticsDisplayName = "NFOV";
  265. initFov="0.42/80";//"(30 / 120)";
  266. minFov="0.42/80";//"(30 / 120)";
  267. maxFov="0.42/80";//"(30 / 120)";
  268. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  269. };
  270. class NarrowX100: Wide
  271. {
  272. opticsDisplayName = "NFOV";
  273. initFov="0.42/100";//"(30 / 120)";
  274. minFov="0.42/100";//"(30 / 120)";
  275. maxFov="0.42/100";//"(30 / 120)";
  276. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  277. };
  278. showMiniMapInOptics = 1;
  279. showUAVViewInOptics = 0;
  280. showSlingLoadManagerInOptics = 0;
  281. };
  282. minTurn = -190;
  283. maxTurn = 180;
  284. initTurn = 0;
  285. minElev = -10;
  286. maxElev = 90;
  287. initElev = 0;
  288. maxXRotSpeed = 0.3;
  289. maxYRotSpeed = 0.3;
  290. pilotOpticsShowCursor = 1;
  291. controllable = 1;
  292. };
  293. class EventHandlers
  294. {
  295. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base
  296. {};
  297. };
  298. class Components:Components
  299. {};
  300. class GunClouds:GunClouds
  301. {};
  302. class GunFire:GunFire
  303. {};
  304. class HitPoints:HitPoints
  305. {};
  306. class MGunClouds:MGunClouds
  307. {};
  308. class OpticsIn:OpticsIn
  309. {};
  310. class OpticsOut:OpticsOut
  311. {};
  312. class Reflectors:Reflectors
  313. {};
  314. class TurnIn:TurnIn
  315. {};
  316. class TurnOut:TurnOut
  317. {};
  318. class Turrets:Turrets
  319. {
  320. class MainTurret:MainTurret
  321. {};
  322. };
  323. class TurretSpec:TurretSpec
  324. {};
  325. class ViewGunner:ViewGunner
  326. {};
  327. class ViewOptics:ViewOptics
  328. {};
  329. };
  330. class macro_new_vehicle(drone,razor_stealth_fixedwing): macro_new_vehicle(drone,rep_stealth_fixedwing)
  331. {
  332. displayname = "GAR Phantom (Razor)";
  333. hiddenSelectionsTextures[] = {"\RD501_Vehicles\textures\sentinel\phantom_fuselage_01_razor_co.paa",""};
  334. };
  335. class macro_new_vehicle(drone,cis_stealth_fixedwing):B_UAV_05_F
  336. {
  337. displayname = "CIS Phantom";
  338. scope=2;
  339. forceInGarage = 1;
  340. side=0;
  341. author = "RD501";
  342. faction = macro_cis_faction
  343. crew = "SWOP_CIS_droid_crew";
  344. hiddenSelections[] = {"camo1","camo2"};
  345. hiddenSelectionsMaterials[] = {"\RD501_Vehicles\textures\sentinel\phantom_fuselage_01.rvmat",""};
  346. hiddenSelectionsTextures[] = {"\RD501_Vehicles\textures\sentinel\phantom_fuselage_01_cis_co",""};
  347. weapons[] = {
  348. macro_basic_air_weapons,
  349. macro_new_weapon(generic,cis_aircraft_cannon)
  350. };
  351. magazines[] = {
  352. macro_basic_air_mags,
  353. macro_new_mag(generic_aircraft_cannon_red,1000),
  354. macro_new_mag(generic_aircraft_cannon_red,1000),
  355. };
  356. class EventHandlers
  357. {
  358. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base
  359. {};
  360. };
  361. class Components:Components
  362. {};
  363. class GunClouds:GunClouds
  364. {};
  365. class GunFire:GunFire
  366. {};
  367. class HitPoints:HitPoints
  368. {};
  369. class MGunClouds:MGunClouds
  370. {};
  371. class OpticsIn:OpticsIn
  372. {};
  373. class OpticsOut:OpticsOut
  374. {};
  375. class Reflectors:Reflectors
  376. {};
  377. class TurnIn:TurnIn
  378. {};
  379. class TurnOut:TurnOut
  380. {};
  381. class Turrets:Turrets
  382. {
  383. class MainTurret:MainTurret
  384. {};
  385. };
  386. class TurretSpec:TurretSpec
  387. {};
  388. class ViewGunner:ViewGunner
  389. {};
  390. class ViewOptics:ViewOptics
  391. {};
  392. };
  393. class macro_new_vehicle(drone,razor_recon_bag):JLTS_UAV_prowler_gar_backpack
  394. {
  395. displayName="Hummingbird Recon Drone";
  396. hiddenSelectionsTextures[]=
  397. {
  398. "\RD501_Vehicles\air\drones\Clone_backpack_uav.paa"
  399. };
  400. class assembleInfo: assembleInfo
  401. {
  402. displayName="Hummingbird Drone Bag";
  403. assembleTo = macro_new_vehicle(drone,razor_recon)
  404. };
  405. };
  406. class macro_new_vehicle(drone,razor_recon):JLTS_UAV_prowler_gar
  407. {
  408. displayName = "Hummingbird Recon Drone"
  409. faction = macro_republic_faction
  410. scope=2;
  411. forceInGarage = 1;
  412. altFullForce = 1000;
  413. altNoForce = 1100;
  414. hiddenSelectionsTextures[]=
  415. {
  416. "\MRC\JLTS\drones\prowler1000\data\prowler_co.paa"
  417. };
  418. class assembleInfo
  419. {
  420. dissasembleTo[]=
  421. {
  422. macro_new_vehicle(drone,razor_recon_bag)
  423. };
  424. };
  425. };
  426. };