config.cpp 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. #include "../../../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class macro_patch_name(LoyalistVic)
  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(Loyalist,Gladius),
  15. macro_new_vehicle(Loyalist,Scimitar),
  16. macro_new_vehicle(Loyalist,Broadsword)
  17. };
  18. weapons[]=
  19. {
  20. };
  21. };
  22. };
  23. #include "../../common/sensor_templates.hpp"
  24. class DefaultEventhandlers;
  25. class CfgVehicles
  26. {
  27. class Car;
  28. class Car_F: Car{
  29. class Turrets;
  30. };
  31. class MRAP_03_base_F: Car_F
  32. {
  33. class Turrets: Turrets{};
  34. };
  35. class MRAP_03_hmg_base_F: MRAP_03_base_F
  36. {
  37. class Turrets: Turrets{};
  38. };
  39. class I_MRAP_03_hmg_F: MRAP_03_hmg_base_F
  40. {
  41. class Turrets: Turrets{class MainTurret;};
  42. };
  43. class macro_new_vehicle(Loyalist,Gladius):I_MRAP_03_hmg_F
  44. {
  45. displayName = "Loyalist FT-13 Gladius";
  46. scope = 2;
  47. forceInGarage = 1;
  48. side = 0;
  49. crew=macro_new_unit_class(opfor,human_rifleman)
  50. faction = macro_cis_faction
  51. editorSubcategory = macro_editor_cat(car)
  52. vehicleClass = macro_editor_vehicle_type(Car)
  53. class Turrets: Turrets
  54. {
  55. class MainTurret: MainTurret
  56. {
  57. memoryPointsGetInGunner="pos gunner";
  58. memoryPointsGetInGunnerDir="pos gunner dir";
  59. body="mainTurret";
  60. gun="mainGun";
  61. weapons[]=
  62. {
  63. macro_new_weapon(loyalist_mg,50cal)
  64. };
  65. magazines[]=
  66. {
  67. macro_new_mag(loyalist_mg,300),
  68. macro_new_mag(loyalist_mg,300),
  69. macro_new_mag(loyalist_mg,300)
  70. };
  71. };
  72. };
  73. class EventHandlers
  74. {
  75. init = "[_this select 0] execVM 'RD501_Vehicles\_init_functions\wheel_dmg.sqf';";
  76. };
  77. };
  78. class Wheeled_APC_F: Car_F
  79. {
  80. class NewTurret;
  81. class Turrets
  82. {
  83. class MainTurret: NewTurret
  84. {
  85. class ViewOptics;
  86. class ViewGunner;
  87. class Turrets
  88. {
  89. class CommanderOptics;
  90. };
  91. };
  92. };
  93. };
  94. class APC_Wheeled_03_base_F: Wheeled_APC_F
  95. {
  96. class Turrets: Turrets
  97. {
  98. class MainTurret: MainTurret{};
  99. };
  100. };
  101. class I_APC_Wheeled_03_base_F: APC_Wheeled_03_base_F
  102. {
  103. class Turrets: Turrets
  104. {
  105. class MainTurret: MainTurret{};
  106. };
  107. }
  108. class I_APC_Wheeled_03_cannon_F: I_APC_Wheeled_03_base_F
  109. {
  110. class Turrets: Turrets
  111. {
  112. class MainTurret: MainTurret{};
  113. };
  114. };
  115. class macro_new_vehicle(Loyalist,Scimitar):I_APC_Wheeled_03_cannon_F
  116. {
  117. displayName = "Loyalist AF-3C Scimitar";
  118. scope = 2;
  119. forceInGarage = 1;
  120. side = 0;
  121. crew=macro_new_unit_class(opfor,human_rifleman)
  122. maxSpeed=130;
  123. enginePower=422.5;
  124. peakTorque=2433.75;
  125. faction = macro_cis_faction
  126. editorSubcategory = macro_editor_cat(APC)
  127. vehicleClass = macro_editor_vehicle_type(APC)
  128. class Turrets: Turrets
  129. {
  130. class MainTurret: MainTurret
  131. {
  132. weapons[]=
  133. {
  134. macro_new_weapon(loyalist,20mm),
  135. macro_new_weapon(wynd,ugm)
  136. };
  137. magazines[]=
  138. {
  139. macro_new_mag(loyalist_20mm,100),
  140. macro_new_mag(loyalist_20mm,100),
  141. macro_new_mag(loyalist_20mm,100),
  142. macro_new_mag(ugm,10),
  143. macro_new_mag(ugm,10)
  144. };
  145. };
  146. };
  147. class EventHandlers
  148. {
  149. init = "[_this select 0] execVM 'RD501_Vehicles\_init_functions\wheel_dmg.sqf';";
  150. };
  151. };
  152. class LandVehicle;
  153. class Tank: LandVehicle
  154. {
  155. class NewTurret;
  156. class Sounds;
  157. class HitPoints;
  158. };
  159. class Tank_F: Tank
  160. {
  161. class Turrets
  162. {
  163. class MainTurret: NewTurret
  164. {
  165. class ViewGunner;
  166. class Turrets
  167. {
  168. class CommanderOptics;
  169. };
  170. };
  171. };
  172. };
  173. class APC_Tracked_03_base_F: Tank_F
  174. {
  175. class Turrets: Turrets
  176. {
  177. class MainTurret: MainTurret{};
  178. };
  179. };
  180. class macro_new_vehicle(Loyalist,Broadsword):APC_Tracked_03_base_F
  181. {
  182. displayName = "Loyalist LT-X9 Broadsword";
  183. scope = 2;
  184. forceInGarage = 1;
  185. side = 0;
  186. crew=macro_new_unit_class(opfor,human_rifleman)
  187. enginePower=585;
  188. peakTorque=3610;
  189. faction = macro_cis_faction
  190. editorSubcategory = macro_editor_cat(APC)
  191. vehicleClass = macro_editor_vehicle_type(APC)
  192. hiddenSelectionsTextures[]=
  193. {
  194. "A3\armor_f_epb\apc_tracked_03\data\apc_tracked_03_ext_indp_co.paa",
  195. "A3\armor_f_epb\apc_tracked_03\data\apc_tracked_03_ext2_indp_co.paa",
  196. "A3\Armor_F\Data\camonet_AAF_Digi_Green_CO.paa",
  197. "A3\armor_f\data\cage_aaf_co.paa"
  198. };
  199. class Turrets: Turrets
  200. {
  201. class MainTurret: MainTurret
  202. {
  203. weapons[]=
  204. {
  205. macro_new_weapon(loyalist,30mm)
  206. };
  207. magazines[]=
  208. {
  209. macro_new_mag(loyalist_30mm_HE,50),
  210. macro_new_mag(loyalist_30mm_HE,50),
  211. macro_new_mag(loyalist_30mm_HE,50),
  212. macro_new_mag(loyalist_30mm_AP,10),
  213. macro_new_mag(loyalist_30mm_AP,10)
  214. };
  215. };
  216. };
  217. }
  218. };
  219. class CfgWeapons
  220. {
  221. class 3AS_Sabre_MG;
  222. class player;
  223. class macro_new_weapon(loyalist_mg,50cal):3AS_Sabre_MG
  224. {
  225. displayName="Loyalist Heavy MG";
  226. magazineReloadTime=3;
  227. magazines[]=
  228. {
  229. macro_new_mag(loyalist_mg,300)
  230. };
  231. };
  232. class autocannon_Base_F;
  233. class autocannon_30mm_CTWS: autocannon_Base_F{};
  234. class macro_new_weapon(loyalist,20mm): autocannon_30mm_CTWS
  235. {
  236. displayName="Autocannon 20mm HE";
  237. reloadTime=0.24;
  238. muzzles[]=
  239. {
  240. "HE"
  241. };
  242. class HE: autocannon_Base_F
  243. {
  244. displayName="Autocannon 20mm HE";
  245. magazines[]=
  246. {
  247. macro_new_mag(loyalist_20mm,100)
  248. };
  249. reloadTime=0.24;
  250. magazineReloadTime=10;
  251. class player: player
  252. {
  253. dispersion=0.0018;
  254. };
  255. };
  256. };
  257. class macro_new_weapon(loyalist,30mm): autocannon_30mm_CTWS
  258. {
  259. displayName="Autocannon 30mm Dual Purpose";
  260. muzzles[]=
  261. {
  262. "HE",
  263. "AP"
  264. };
  265. class HE: autocannon_Base_F
  266. {
  267. displayName="Autocannon 30mm HE";
  268. magazines[]=
  269. {
  270. macro_new_mag(loyalist_30mm_HE,50)
  271. };
  272. reloadTime=0.3;
  273. magazineReloadTime=10;
  274. class player: player
  275. {
  276. dispersion=0.0018;
  277. };
  278. };
  279. class AP: autocannon_Base_F
  280. {
  281. displayName="Autocannon 30mm AP";
  282. magazines[]=
  283. {
  284. macro_new_mag(loyalist_30mm_AP,10)
  285. };
  286. reloadTime=1;
  287. magazineReloadTime=10;
  288. class player: player
  289. {
  290. dispersion=0.00108;
  291. };
  292. };
  293. };
  294. };
  295. class CfgMagazines
  296. {
  297. class 3AS_300Rnd_SabreMG_Mag;
  298. class 140Rnd_30mm_MP_shells;
  299. class macro_new_mag(loyalist_mg,300):3AS_300Rnd_SabreMG_Mag
  300. {
  301. displayName="300 Rnd Heavy MG Ammo";
  302. displayNameShort="Heavy MG";
  303. ammo=macro_new_ammo(loyalist_mg)
  304. };
  305. class macro_new_mag(loyalist_20mm,100):140Rnd_30mm_MP_shells
  306. {
  307. displayName="100 Rnd 20mm HE Cannon";
  308. displayNameShort="20mm HE";
  309. count = 100;
  310. ammo=macro_new_ammo(loyalist_20mm)
  311. };
  312. class macro_new_mag(loyalist_30mm_HE,50):140Rnd_30mm_MP_shells
  313. {
  314. displayName="50 Rnd 30mm HE Cannon";
  315. displayNameShort="30mm HE";
  316. count=50;
  317. ammo=macro_new_ammo(loyalist_30mm_HE)
  318. };
  319. class macro_new_mag(loyalist_30mm_AP,10):140Rnd_30mm_MP_shells
  320. {
  321. displayName="50 Rnd 30mm HE Cannon";
  322. displayNameShort="30mm HE";
  323. count = 10;
  324. ammo=macro_new_ammo(loyalist_30mm_AP)
  325. };
  326. };
  327. class CfgAmmo
  328. {
  329. class 3AS_EC60_BluePlasma;
  330. class B_30mm_MP;
  331. class macro_new_ammo(loyalist_mg):3AS_EC60_BluePlasma
  332. {
  333. hit=30;
  334. indirectHit=0;
  335. indirectHitRange=0;
  336. cartridge="FxCartridge_127";
  337. visibleFire=8;
  338. audibleFire=120;
  339. dangerRadiusBulletClose=12;
  340. dangerRadiusHit=16;
  341. suppressionRadiusBulletClose=8;
  342. suppressionRadiusHit=12;
  343. cost=5;
  344. airLock=1;
  345. caliber=2.5999999;
  346. typicalSpeed=880;
  347. timeToLive=10;
  348. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_small_purple.p3d";
  349. tracerScale=1;
  350. tracerStartTime=0;
  351. tracerEndTime=10;
  352. };
  353. class macro_new_ammo(loyalist_20mm):B_30mm_MP
  354. {
  355. hit=90;
  356. indirectHit=3;
  357. indirectHitRange=30;
  358. explosive=0.60000002;
  359. typicalSpeed=1070;
  360. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_medium_purple.p3d";
  361. tracerScale=1;
  362. tracerStartTime=0;
  363. tracerEndTime=10;
  364. };
  365. class macro_new_ammo(loyalist_30mm_HE):B_30mm_MP
  366. {
  367. hit=140;
  368. indirectHit=5;
  369. indirectHitRange=90;
  370. explosive=0.60000002;
  371. typicalSpeed=1070;
  372. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_medium_purple.p3d";
  373. tracerScale=1;
  374. tracerStartTime=0;
  375. tracerEndTime=10;
  376. };
  377. class macro_new_ammo(loyalist_30mm_HE):B_30mm_MP
  378. {
  379. hit=240;
  380. indirectHit=0;
  381. indirectHitRange=0;
  382. explosive=0.60000002;
  383. caliber=7.4000001;
  384. typicalSpeed=1370;
  385. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_medium_purple.p3d";
  386. tracerScale=1;
  387. tracerStartTime=0;
  388. tracerEndTime=10;
  389. };
  390. };