config.cpp 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. #include "../../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class macro_patch_name(staticturret)
  5. {
  6. addonRootClass=macro_patch_name(vehicles)
  7. requiredAddons[]=
  8. {
  9. macro_patch_name(vehicles)
  10. };
  11. requiredVersion=0.1;
  12. units[]=
  13. {
  14. macro_new_vehicle(stat,reweb),
  15. macro_new_vehicle(stat,ragl40),
  16. macro_new_vehicle(stat,Striker),
  17. macro_new_vehicle(stat,Railgun)
  18. };
  19. weapons[]=
  20. {
  21. macro_new_weapon(stat,eweb),
  22. macro_new_weapon(stat,ragl40),
  23. macro_new_weapon(stat,aap4),
  24. macro_new_weapon(stat,mar1)
  25. };
  26. };
  27. };
  28. class CfgVehicles
  29. {
  30. class StaticMGWeapon;
  31. class AT_01_base_F:StaticMGWeapon
  32. {
  33. class Turrets;
  34. };
  35. class B_static_AT_F:AT_01_base_F
  36. {
  37. class Turrets:Turrets{
  38. class MainTurret;};
  39. };
  40. class 3AS_HeavyRepeater_base:StaticMGWeapon
  41. {
  42. class Turrets;
  43. };
  44. class 3AS_HeavyRepeater_Unarmoured: 3AS_HeavyRepeater_base
  45. {
  46. class Turrets: Turrets
  47. {
  48. class MainTurret;
  49. };
  50. };
  51. class 3AS_HeavyRepeater_Armoured:3AS_HeavyRepeater_base
  52. {
  53. class Turrets: Turrets
  54. {
  55. class MainTurret;
  56. };
  57. };
  58. class LandVehicle;
  59. class StaticWeapon : LandVehicle
  60. {
  61. class Turrets;
  62. };
  63. class OPTRE_Static_M41:StaticMGWeapon
  64. {
  65. class Turrets;
  66. };
  67. class OPTRE_Static_Gauss:OPTRE_Static_M41
  68. {
  69. class Turrets: Turrets
  70. {
  71. class MainTurret;
  72. };
  73. };
  74. class macro_new_vehicle(stat,reweb): 3AS_HeavyRepeater_Unarmoured
  75. {
  76. scope = 2;
  77. author="501st Aux Mod";
  78. displayName = "Republic Heavy E-Web";
  79. faction = macro_republic_faction
  80. editorSubcategory = macro_editor_cat(turrets)
  81. vehicleClass = macro_editor_vehicle_type(turrets)
  82. class Turrets: Turrets
  83. {
  84. class MainTurret: MainTurret
  85. {
  86. weapons[]=
  87. {
  88. macro_new_weapon(stat,eweb)
  89. };
  90. magazines[]=
  91. {
  92. macro_new_mag(eweb,600)
  93. };
  94. };
  95. };
  96. class assembleInfo
  97. {
  98. dissasembleTo[]=
  99. {
  100. macro_new_vehicle(stat,reweb_bag)
  101. };
  102. };
  103. };
  104. class macro_new_vehicle(stat,ragl40): 3AS_HeavyRepeater_Armoured
  105. {
  106. scope = 2;
  107. author="501st Aux Mod";
  108. displayName = "RAGL40 'Boomer'";
  109. faction = macro_republic_faction
  110. editorSubcategory = macro_editor_cat(turrets)
  111. vehicleClass = macro_editor_vehicle_type(turrets)
  112. class Turrets: Turrets
  113. {
  114. class MainTurret: MainTurret
  115. {
  116. weapons[]=
  117. {
  118. macro_new_weapon(stat,ragl40)
  119. };
  120. magazines[]=
  121. {
  122. macro_new_mag(ragl40he,40)
  123. };
  124. };
  125. };
  126. class assembleInfo
  127. {
  128. dissasembleTo[]=
  129. {
  130. macro_new_vehicle(stat,ragl40_bag)
  131. };
  132. };
  133. };
  134. class macro_new_vehicle(stat,Striker): B_static_AT_F
  135. {
  136. scope = 2;
  137. author="501st Aux Mod";
  138. displayName = "AAP4 'Striker'";
  139. faction = macro_republic_faction
  140. editorSubcategory = macro_editor_cat(turrets)
  141. vehicleClass = macro_editor_vehicle_type(turrets)
  142. model = "\OPTRE_Weapons\static\LAU65D\LAU65D_pod.p3d";
  143. class Turrets: Turrets
  144. {
  145. class MainTurret: MainTurret
  146. {
  147. animationSourceBody = "Turret_rot";
  148. animationSourceCamElev = "camElev";
  149. animationSourceGun = "camElev";
  150. memoryPointsGetInGunner = "pos_gunner";
  151. memoryPointsGetInGunnerDir = "pos_gunner_dir";
  152. body = "Turret_rot";
  153. discreteDistanceCameraPoint[] = {"eye"};
  154. stabilizedInAxes = "StabilizedInAxesNone";
  155. gunnerAction = "Gunner_OPTRE_Lau";
  156. maxTurn = 360;
  157. weapons[] = {macro_new_weapon(stat,aap4)};
  158. magazines[] = {macro_new_mag(aap,4)};
  159. };
  160. };
  161. class assembleInfo
  162. {
  163. dissasembleTo[]=
  164. {
  165. macro_new_vehicle(stat,Striker_bag)
  166. };
  167. };
  168. };
  169. class macro_new_vehicle(stat,Railgun): OPTRE_Static_Gauss
  170. {
  171. scope = 2;
  172. author="501st Aux Mod";
  173. displayName = "MAR1 'Driver'";
  174. faction = macro_republic_faction
  175. editorSubcategory = macro_editor_cat(turrets)
  176. vehicleClass = macro_editor_vehicle_type(turrets)
  177. class Turrets: Turrets
  178. {
  179. class MainTurret: MainTurret
  180. {
  181. weapons[]=
  182. {
  183. macro_new_weapon(stat,mar1)
  184. };
  185. magazines[]=
  186. {
  187. macro_new_mag(mar,1)
  188. };
  189. class Viewoptics
  190. {
  191. initAngleX = 0;
  192. initAngleY = 0;
  193. initFov = 0.75;
  194. maxAngleX = 30;
  195. maxAngleY = 100;
  196. maxFov = 1.1;
  197. maxMoveX = 0;
  198. maxMoveY = 0;
  199. maxMoveZ = 0;
  200. minAngleX = -30;
  201. minAngleY = -100;
  202. minFov = 0.0125;
  203. minMoveX = 0;
  204. minMoveY = 0;
  205. minMoveZ = 0;
  206. opticsZoomInit = 0.75;
  207. opticsZoomMax = 0.75;
  208. opticsZoomMin = 0.25;
  209. thermalMode[] = {5,6};
  210. visionMode[] = {"Normal","NVG","Ti"};
  211. }
  212. };
  213. };
  214. class assembleInfo
  215. {
  216. dissasembleTo[]=
  217. {
  218. macro_new_vehicle(stat,Railgun_bag)
  219. };
  220. };
  221. };
  222. class Weapon_bag_base;
  223. class JLTS_UAV_prowler_gar_backpack:Weapon_bag_base
  224. {
  225. class assembleInfo;
  226. }
  227. class macro_new_vehicle(stat,reweb_bag):JLTS_UAV_prowler_gar_backpack
  228. {
  229. displayName="Republic E-Web Bag";
  230. hiddenSelectionsTextures[]=
  231. {
  232. "\RD501_Vehicles\air\drones\Clone_backpack_uav.paa"
  233. };
  234. class assembleInfo: assembleInfo
  235. {
  236. displayName="Assemble E-Web Bag";
  237. assembleTo = macro_new_vehicle(stat,reweb)
  238. };
  239. };
  240. class macro_new_vehicle(stat,ragl40_bag):JLTS_UAV_prowler_gar_backpack
  241. {
  242. displayName="RAGL40 'Boomer' Bag";
  243. hiddenSelectionsTextures[]=
  244. {
  245. "\RD501_Vehicles\air\drones\Clone_backpack_uav.paa"
  246. };
  247. class assembleInfo: assembleInfo
  248. {
  249. displayName="Assemble Boomer";
  250. assembleTo = macro_new_vehicle(stat,ragl40)
  251. };
  252. };
  253. class macro_new_vehicle(stat,Striker_bag):JLTS_UAV_prowler_gar_backpack
  254. {
  255. displayName="AAP4 'Striker' Bag";
  256. hiddenSelectionsTextures[]=
  257. {
  258. "\RD501_Vehicles\air\drones\Clone_backpack_uav.paa"
  259. };
  260. class assembleInfo: assembleInfo
  261. {
  262. displayName="Assemble Striker";
  263. assembleTo = macro_new_vehicle(stat,Striker)
  264. };
  265. };
  266. class macro_new_vehicle(stat,Railgun_bag):JLTS_UAV_prowler_gar_backpack
  267. {
  268. displayName="MAR1 'Driver' Bag";
  269. hiddenSelectionsTextures[]=
  270. {
  271. "\RD501_Vehicles\air\drones\Clone_backpack_uav.paa"
  272. };
  273. class assembleInfo: assembleInfo
  274. {
  275. displayName="Assemble Driver";
  276. assembleTo = macro_new_vehicle(stat,Railgun)
  277. };
  278. };
  279. };
  280. class CfgWeapons
  281. {
  282. class 3AS_HeavyRepeater;
  283. class 3AS_BlasterTurret_Repeater:3AS_HeavyRepeater
  284. {
  285. class manual;
  286. }
  287. class macro_new_weapon(stat,eweb):3AS_BlasterTurret_Repeater
  288. {
  289. class manual: manual
  290. {
  291. dispersion=0.011;
  292. reloadTime=0.05;
  293. };
  294. magazines[]=
  295. {
  296. macro_new_mag(eweb,600)
  297. };
  298. };
  299. class macro_new_weapon(stat,ragl40):3AS_BlasterTurret_Repeater
  300. {
  301. magazines[]=
  302. {
  303. macro_new_mag(ragl40he,40)
  304. };
  305. };
  306. class ace_javelin_Titan_Static;
  307. class macro_new_weapon(stat,aap4):ace_javelin_Titan_Static
  308. {
  309. ace_javelin_enabled = 1; // Enable Javelin-style locking (0-disabled, 1-enabled)
  310. weaponInfoType = "ACE_RscOptics_javelin"; // Inteface
  311. modelOptics = "\z\ace\addons\javelin\data\reticle_titan.p3d"; // Optics model
  312. canLock = 0; // Disable vanilla locking (0-disabled, 1-enabled)
  313. lockingTargetSound[] = {"", 0, 1}; // Locking sound
  314. lockedTargetSound[] = {"", 0, 1}; // Target acquired sound
  315. magazines[]=
  316. {
  317. macro_new_mag(aap,4)
  318. };
  319. };
  320. class macro_new_weapon(stat,mar1):3AS_BlasterTurret_Repeater
  321. {
  322. class manual: manual
  323. {
  324. dispersion=0.00001;
  325. reloadTime=0.05;
  326. };
  327. magazines[]=
  328. {
  329. macro_new_mag(mar,1)
  330. };
  331. };
  332. };
  333. class CfgMagazines
  334. {
  335. class 3AS_500_Rnd_BlasterTurret_mag;
  336. class 40Rnd_20mm_G_belt;
  337. class 1Rnd_GAT_missiles;
  338. class macro_new_mag(eweb,600): 3AS_500_Rnd_BlasterTurret_mag
  339. {
  340. scope=2;
  341. displayName= "Republic E-Web Charge"
  342. count=600;
  343. ammo=macro_new_ammo(z1000)
  344. };
  345. class macro_new_mag(ragl40he,40): 40Rnd_20mm_G_belt
  346. {
  347. scope=2;
  348. displayName= "RAGL40 'Boomer' belt"
  349. count=40;
  350. ammo=macro_new_ammo(UGL_HE)
  351. };
  352. class macro_new_mag(aap,4): 1Rnd_GAT_missiles
  353. {
  354. scope=2;
  355. displayName= "AAP4 'Striker' Pod"
  356. count=4;
  357. };
  358. class macro_new_mag(mar,1): 3AS_500_Rnd_BlasterTurret_mag
  359. {
  360. scope=2;
  361. displayName= "MAR1 'Driver' Slug"
  362. count=1;
  363. ammo=macro_new_ammo(mar1)
  364. };
  365. };