config.cpp 11 KB

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