config.cpp 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. #include "../../../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class RD501_patch_LoyalistVic
  5. {
  6. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  7. requiredAddons[]=
  8. {
  9. RD501_patch_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_QUOTE(macro_new_unit_class(opfor,human_rifleman));
  50. faction = MACRO_QUOTE(macro_faction(CIS));
  51. editorSubcategory = MACRO_QUOTE(macro_editor_cat(car));
  52. vehicleClass = MACRO_QUOTE(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_QUOTE(macro_new_unit_class(opfor,human_rifleman));
  122. maxSpeed=130;
  123. enginePower=422.5;
  124. peakTorque=2433.75;
  125. armor=380;
  126. faction = MACRO_QUOTE(macro_faction(CIS));
  127. editorSubcategory = MACRO_QUOTE(macro_editor_cat(APC));
  128. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(APC));
  129. class Turrets: Turrets
  130. {
  131. class MainTurret: MainTurret
  132. {
  133. weapons[]=
  134. {
  135. macro_new_weapon(loyalist,20mm),
  136. macro_new_weapon(wynd,ugm)
  137. };
  138. magazines[]=
  139. {
  140. macro_new_mag(loyalist_20mm,100),
  141. macro_new_mag(loyalist_20mm,100),
  142. macro_new_mag(loyalist_20mm,100),
  143. macro_new_mag(ugm,10),
  144. macro_new_mag(ugm,10)
  145. };
  146. };
  147. };
  148. class EventHandlers
  149. {
  150. init = "[_this select 0] execVM 'RD501_Vehicles\_init_functions\wheel_dmg.sqf';";
  151. };
  152. };
  153. class LandVehicle;
  154. class Tank: LandVehicle
  155. {
  156. class NewTurret;
  157. class Sounds;
  158. class HitPoints;
  159. };
  160. class Tank_F: Tank
  161. {
  162. class Turrets
  163. {
  164. class MainTurret: NewTurret
  165. {
  166. class ViewGunner;
  167. class Turrets
  168. {
  169. class CommanderOptics;
  170. };
  171. };
  172. };
  173. };
  174. class APC_Tracked_03_base_F: Tank_F
  175. {
  176. class Turrets: Turrets
  177. {
  178. class MainTurret: MainTurret{};
  179. };
  180. };
  181. class macro_new_vehicle(Loyalist,Broadsword):APC_Tracked_03_base_F
  182. {
  183. displayName = "Loyalist LT-X9 Broadsword";
  184. scope = 2;
  185. forceInGarage = 1;
  186. side = 0;
  187. crew=MACRO_QUOTE(macro_new_unit_class(opfor,human_rifleman));
  188. enginePower=585;
  189. peakTorque=3610;
  190. faction = MACRO_QUOTE(macro_faction(CIS));
  191. editorSubcategory = MACRO_QUOTE(macro_editor_cat(APC));
  192. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(APC));
  193. hiddenSelectionsTextures[]=
  194. {
  195. "A3\armor_f_epb\apc_tracked_03\data\apc_tracked_03_ext_indp_co.paa",
  196. "A3\armor_f_epb\apc_tracked_03\data\apc_tracked_03_ext2_indp_co.paa",
  197. "A3\Armor_F\Data\camonet_AAF_Digi_Green_CO.paa",
  198. "A3\armor_f\data\cage_aaf_co.paa"
  199. };
  200. class Turrets: Turrets
  201. {
  202. class MainTurret: MainTurret
  203. {
  204. weapons[]=
  205. {
  206. macro_new_weapon(loyalist,30mm)
  207. };
  208. magazines[]=
  209. {
  210. macro_new_mag(loyalist_30mm_HE,50),
  211. macro_new_mag(loyalist_30mm_HE,50),
  212. macro_new_mag(loyalist_30mm_HE,50),
  213. macro_new_mag(loyalist_30mm_AP,10),
  214. macro_new_mag(loyalist_30mm_AP,10)
  215. };
  216. };
  217. };
  218. };
  219. };
  220. class CfgWeapons
  221. {
  222. class 3AS_Sabre_MG;
  223. class player;
  224. class macro_new_weapon(loyalist_mg,50cal):3AS_Sabre_MG
  225. {
  226. displayName="Loyalist Heavy MG";
  227. magazineReloadTime=3;
  228. magazines[]=
  229. {
  230. macro_new_mag(loyalist_mg,300)
  231. };
  232. };
  233. class autocannon_Base_F;
  234. class autocannon_30mm_CTWS: autocannon_Base_F
  235. {};
  236. class macro_new_weapon(loyalist,20mm): autocannon_30mm_CTWS
  237. {
  238. displayName="Autocannon 20mm HE";
  239. reloadTime=0.24;
  240. muzzles[]=
  241. {
  242. "HE"
  243. };
  244. class HE: autocannon_Base_F
  245. {
  246. displayName="Autocannon 20mm HE";
  247. magazines[]=
  248. {
  249. macro_new_mag(loyalist_20mm,100)
  250. };
  251. reloadTime=0.24;
  252. magazineReloadTime=10;
  253. class player: player
  254. {
  255. dispersion=0.0018;
  256. };
  257. };
  258. };
  259. class macro_new_weapon(loyalist,30mm): autocannon_30mm_CTWS
  260. {
  261. displayName="Autocannon 30mm Dual Purpose";
  262. muzzles[]=
  263. {
  264. "HE",
  265. "AP"
  266. };
  267. class HE: autocannon_Base_F
  268. {
  269. displayName="Autocannon 30mm HE";
  270. magazines[]=
  271. {
  272. macro_new_mag(loyalist_30mm_HE,50)
  273. };
  274. reloadTime=0.3;
  275. magazineReloadTime=10;
  276. class player: player
  277. {
  278. dispersion=0.0018;
  279. };
  280. };
  281. class AP: autocannon_Base_F
  282. {
  283. displayName="Autocannon 30mm AP";
  284. magazines[]=
  285. {
  286. macro_new_mag(loyalist_30mm_AP,10)
  287. };
  288. reloadTime=1;
  289. magazineReloadTime=10;
  290. class player: player
  291. {
  292. dispersion=0.00108;
  293. };
  294. };
  295. };
  296. };
  297. class CfgMagazines
  298. {
  299. class 3AS_300Rnd_SabreMG_Mag;
  300. class 140Rnd_30mm_MP_shells;
  301. class macro_new_mag(loyalist_mg,300):3AS_300Rnd_SabreMG_Mag
  302. {
  303. displayName="300 Rnd Heavy MG Ammo";
  304. displayNameShort="Heavy MG";
  305. ammo=MACRO_QUOTE(macro_new_ammo(loyalist_mg));
  306. };
  307. class macro_new_mag(loyalist_20mm,100):140Rnd_30mm_MP_shells
  308. {
  309. displayName="100 Rnd 20mm HE Cannon";
  310. displayNameShort="20mm HE";
  311. count = 100;
  312. ammo=MACRO_QUOTE(macro_new_ammo(loyalist_20mm));
  313. };
  314. class macro_new_mag(loyalist_30mm_HE,50):140Rnd_30mm_MP_shells
  315. {
  316. displayName="50 Rnd 30mm HE Cannon";
  317. displayNameShort="30mm HE";
  318. count=50;
  319. ammo=MACRO_QUOTE(macro_new_ammo(loyalist_30mm_HE));
  320. };
  321. class macro_new_mag(loyalist_30mm_AP,10):140Rnd_30mm_MP_shells
  322. {
  323. displayName="50 Rnd 30mm AP Cannon";
  324. displayNameShort="30mm AP";
  325. count = 10;
  326. ammo=MACRO_QUOTE(macro_new_ammo(loyalist_30mm_AP));
  327. };
  328. };
  329. class CfgAmmo
  330. {
  331. class 3AS_EC60_BluePlasma;
  332. class B_30mm_MP;
  333. class macro_new_ammo(loyalist_mg):3AS_EC60_BluePlasma
  334. {
  335. hit=30;
  336. indirectHit=5;
  337. indirectHitRange=1;
  338. cartridge="FxCartridge_127";
  339. visibleFire=8;
  340. audibleFire=120;
  341. dangerRadiusBulletClose=12;
  342. dangerRadiusHit=16;
  343. suppressionRadiusBulletClose=8;
  344. suppressionRadiusHit=12;
  345. cost=5;
  346. airLock=1;
  347. caliber=2.5999999;
  348. typicalSpeed=880;
  349. timeToLive=10;
  350. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_small_purple.p3d";
  351. tracerScale=1;
  352. tracerStartTime=0;
  353. tracerEndTime=10;
  354. };
  355. class macro_new_ammo(loyalist_20mm):B_30mm_MP
  356. {
  357. hit=90;
  358. indirectHit=30;
  359. indirectHitRange=3;
  360. explosive=0.60000002;
  361. typicalSpeed=1070;
  362. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_medium_purple.p3d";
  363. tracerScale=1;
  364. tracerStartTime=0;
  365. tracerEndTime=10;
  366. };
  367. class macro_new_ammo(loyalist_30mm_HE):B_30mm_MP
  368. {
  369. hit=140;
  370. indirectHit=90;
  371. indirectHitRange=5;
  372. explosive=0.60000002;
  373. typicalSpeed=1070;
  374. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_medium_purple.p3d";
  375. tracerScale=1;
  376. tracerStartTime=0;
  377. tracerEndTime=10;
  378. };
  379. class macro_new_ammo(loyalist_30mm_AP):B_30mm_MP
  380. {
  381. hit=240;
  382. indirectHit=0;
  383. indirectHitRange=0;
  384. explosive=0.60000002;
  385. caliber=7.4000001;
  386. typicalSpeed=1370;
  387. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_medium_purple.p3d";
  388. tracerScale=1;
  389. tracerStartTime=0;
  390. tracerEndTime=10;
  391. };
  392. };