config.cpp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  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="R-2 Drone Bag";
  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 ACE_Actions : ACE_Actions
  147. {
  148. class ACE_MainActions : ACE_MainActions
  149. {
  150. condition = macro_quote(true);
  151. class RD501_Drone_Refuel
  152. {
  153. distance = 4;
  154. displayName = "Refuel Drone";
  155. condition = macro_quote(true);
  156. statement = macro_quote(_this call macro_fnc_name(refuelUAVDrone));
  157. position = macro_quote(call ace_interaction_fnc_getVehiclePos);
  158. };
  159. };
  160. };
  161. class assembleInfo
  162. {
  163. dissasembleTo[]=
  164. {
  165. macro_new_vehicle(drone,Clone_Recon_bag)
  166. };
  167. };
  168. };
  169. class macro_new_vehicle(drone,Clone_Recon_Droid_ATTE):swclonerecondroid
  170. {
  171. displayname = "AT-TE Commander Camera";
  172. scope=2
  173. forceInGarage = 1;
  174. author = "RD501";
  175. faction = macro_republic_faction
  176. class EventHandlers {
  177. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  178. };
  179. };
  180. class macro_new_vehicle(drone,rep_stealth_fixedwing):B_UAV_05_F
  181. {
  182. displayname = "GAR Phantom";
  183. scope=2;
  184. forceInGarage = 1;
  185. author = "RD501";
  186. faction = macro_republic_faction
  187. hiddenSelections[] = {"camo1","camo2"};
  188. hiddenSelectionsMaterials[] = {"\RD501_Vehicles\textures\sentinel\phantom_fuselage_01.rvmat",""};
  189. hiddenSelectionsTextures[] = {"\RD501_Vehicles\textures\sentinel\phantom_fuselage_01_gar_co.paa",""};
  190. weapons[] = {
  191. macro_basic_air_weapons,
  192. macro_new_weapon(generic,ion_aircraft_cannon)
  193. };
  194. magazines[] = {
  195. macro_basic_air_mags,
  196. macro_new_mag(generic_aircraft_cannon_blue,1000),
  197. macro_new_mag(generic_aircraft_cannon_blue,1000)
  198. };
  199. class pilotCamera
  200. {
  201. class OpticsIn
  202. {
  203. class Wide
  204. {
  205. opticsDisplayName = "WFOV";
  206. initAngleX = 0;
  207. minAngleX = 0;
  208. maxAngleX = 0;
  209. initAngleY = 0;
  210. minAngleY = 0;
  211. maxAngleY = 0;
  212. initFov=0.42;//"(30 / 120)";
  213. minFov=0.42;//"(30 / 120)";
  214. maxFov=0.42;//"(30 / 120)";
  215. directionStabilized = 1;
  216. visionMode[] = {"Normal","NVG", "Ti"};
  217. thermalMode[] = {0,1,2,3,4,5};
  218. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_wide_F.p3d";
  219. opticsPPEffects[] = {"OpticsCHAbera2", "OpticsBlur2"};
  220. };
  221. class Medium: Wide
  222. {
  223. opticsDisplayName = "MFOV";
  224. initFov="0.42/4";//"(30 / 120)";
  225. minFov="0.42/4";//"(30 / 120)";
  226. maxFov="0.42/4";//"(30 / 120)";
  227. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_medium_F.p3d";
  228. };
  229. class Narrow: Wide
  230. {
  231. opticsDisplayName = "NFOV";
  232. initFov="0.42/8";//"(30 / 120)";
  233. minFov="0.42/8";//"(30 / 120)";
  234. maxFov="0.42/8";//"(30 / 120)";
  235. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  236. };
  237. class NarrowX16: Wide
  238. {
  239. opticsDisplayName = "NFOV";
  240. initFov="0.42/16";//"(30 / 120)";
  241. minFov="0.42/16";//"(30 / 120)";
  242. maxFov="0.42/16";//"(30 / 120)";
  243. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  244. };
  245. class NarrowX24: Wide
  246. {
  247. opticsDisplayName = "NFOV";
  248. initFov="0.42/24";//"(30 / 120)";
  249. minFov="0.42/24";//"(30 / 120)";
  250. maxFov="0.42/24";//"(30 / 120)";
  251. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  252. };
  253. class NarrowX36: Wide
  254. {
  255. opticsDisplayName = "NFOV";
  256. initFov="0.42/36";//"(30 / 120)";
  257. minFov="0.42/36";//"(30 / 120)";
  258. maxFov="0.42/36";//"(30 / 120)";
  259. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  260. };
  261. class NarrowX48: Wide
  262. {
  263. opticsDisplayName = "NFOV";
  264. initFov="0.42/48";//"(30 / 120)";
  265. minFov="0.42/48";//"(30 / 120)";
  266. maxFov="0.42/48";//"(30 / 120)";
  267. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  268. };
  269. class NarrowX60: Wide
  270. {
  271. opticsDisplayName = "NFOV";
  272. initFov="0.42/60";//"(30 / 120)";
  273. minFov="0.42/60";//"(30 / 120)";
  274. maxFov="0.42/60";//"(30 / 120)";
  275. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  276. };
  277. class NarrowX80: Wide
  278. {
  279. opticsDisplayName = "NFOV";
  280. initFov="0.42/80";//"(30 / 120)";
  281. minFov="0.42/80";//"(30 / 120)";
  282. maxFov="0.42/80";//"(30 / 120)";
  283. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  284. };
  285. class NarrowX100: Wide
  286. {
  287. opticsDisplayName = "NFOV";
  288. initFov="0.42/100";//"(30 / 120)";
  289. minFov="0.42/100";//"(30 / 120)";
  290. maxFov="0.42/100";//"(30 / 120)";
  291. gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  292. };
  293. showMiniMapInOptics = 1;
  294. showUAVViewInOptics = 0;
  295. showSlingLoadManagerInOptics = 0;
  296. };
  297. minTurn = -190;
  298. maxTurn = 180;
  299. initTurn = 0;
  300. minElev = -10;
  301. maxElev = 90;
  302. initElev = 0;
  303. maxXRotSpeed = 0.3;
  304. maxYRotSpeed = 0.3;
  305. pilotOpticsShowCursor = 1;
  306. controllable = 1;
  307. };
  308. class EventHandlers
  309. {
  310. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base
  311. {};
  312. };
  313. class Components:Components
  314. {};
  315. class GunClouds:GunClouds
  316. {};
  317. class GunFire:GunFire
  318. {};
  319. class HitPoints:HitPoints
  320. {};
  321. class MGunClouds:MGunClouds
  322. {};
  323. class OpticsIn:OpticsIn
  324. {};
  325. class OpticsOut:OpticsOut
  326. {};
  327. class Reflectors:Reflectors
  328. {};
  329. class TurnIn:TurnIn
  330. {};
  331. class TurnOut:TurnOut
  332. {};
  333. class Turrets:Turrets
  334. {
  335. class MainTurret:MainTurret
  336. {};
  337. };
  338. class TurretSpec:TurretSpec
  339. {};
  340. class ViewGunner:ViewGunner
  341. {};
  342. class ViewOptics:ViewOptics
  343. {};
  344. };
  345. class macro_new_vehicle(drone,razor_stealth_fixedwing): macro_new_vehicle(drone,rep_stealth_fixedwing)
  346. {
  347. displayname = "GAR Phantom (Razor)";
  348. hiddenSelectionsTextures[] = {"\RD501_Vehicles\textures\sentinel\phantom_fuselage_01_razor_co.paa",""};
  349. };
  350. class macro_new_vehicle(drone,cis_stealth_fixedwing):B_UAV_05_F
  351. {
  352. displayname = "CIS Phantom";
  353. scope=2;
  354. forceInGarage = 1;
  355. side=0;
  356. author = "RD501";
  357. faction = macro_cis_faction
  358. crew = "SWOP_CIS_droid_crew";
  359. hiddenSelections[] = {"camo1","camo2"};
  360. hiddenSelectionsMaterials[] = {"\RD501_Vehicles\textures\sentinel\phantom_fuselage_01.rvmat",""};
  361. hiddenSelectionsTextures[] = {"\RD501_Vehicles\textures\sentinel\phantom_fuselage_01_cis_co",""};
  362. weapons[] = {
  363. macro_basic_air_weapons,
  364. macro_new_weapon(generic,cis_aircraft_cannon)
  365. };
  366. magazines[] = {
  367. macro_basic_air_mags,
  368. macro_new_mag(generic_aircraft_cannon_red,1000),
  369. macro_new_mag(generic_aircraft_cannon_red,1000),
  370. };
  371. class EventHandlers
  372. {
  373. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base
  374. {};
  375. };
  376. class Components:Components
  377. {};
  378. class GunClouds:GunClouds
  379. {};
  380. class GunFire:GunFire
  381. {};
  382. class HitPoints:HitPoints
  383. {};
  384. class MGunClouds:MGunClouds
  385. {};
  386. class OpticsIn:OpticsIn
  387. {};
  388. class OpticsOut:OpticsOut
  389. {};
  390. class Reflectors:Reflectors
  391. {};
  392. class TurnIn:TurnIn
  393. {};
  394. class TurnOut:TurnOut
  395. {};
  396. class Turrets:Turrets
  397. {
  398. class MainTurret:MainTurret
  399. {};
  400. };
  401. class TurretSpec:TurretSpec
  402. {};
  403. class ViewGunner:ViewGunner
  404. {};
  405. class ViewOptics:ViewOptics
  406. {};
  407. };
  408. class macro_new_vehicle(drone,razor_recon_bag):JLTS_UAV_prowler_gar_backpack
  409. {
  410. displayName="Hummingbird Recon Drone";
  411. hiddenSelectionsTextures[]=
  412. {
  413. "\RD501_Vehicles\air\drones\Clone_backpack_uav.paa"
  414. };
  415. class assembleInfo: assembleInfo
  416. {
  417. displayName="Hummingbird Drone Bag";
  418. assembleTo = macro_new_vehicle(drone,razor_recon)
  419. };
  420. };
  421. class macro_new_vehicle(drone,razor_recon):JLTS_UAV_prowler_gar
  422. {
  423. class ACE_Actions : ACE_Actions
  424. {
  425. class ACE_MainActions : ACE_MainActions
  426. {
  427. class RD501_Drone_Refuel
  428. {
  429. displayName = "Refuel Drone";
  430. condition = macro_quote(true);
  431. statement = macro_quote(_this call macro_fnc_name(refuelUAVDrone));
  432. };
  433. };
  434. };
  435. displayName = "Hummingbird Recon Drone"
  436. faction = macro_republic_faction
  437. scope=2;
  438. forceInGarage = 1;
  439. altFullForce = 1000;
  440. altNoForce = 1100;
  441. hiddenSelectionsTextures[]=
  442. {
  443. "\MRC\JLTS\drones\prowler1000\data\prowler_co.paa"
  444. };
  445. class assembleInfo
  446. {
  447. dissasembleTo[]=
  448. {
  449. macro_new_vehicle(drone,razor_recon_bag)
  450. };
  451. };
  452. };
  453. };