config.cpp 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  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. {};
  235. class macro_new_weapon(loyalist,20mm): autocannon_30mm_CTWS
  236. {
  237. displayName="Autocannon 20mm HE";
  238. reloadTime=0.24;
  239. muzzles[]=
  240. {
  241. "HE"
  242. };
  243. class HE: autocannon_Base_F
  244. {
  245. displayName="Autocannon 20mm HE";
  246. magazines[]=
  247. {
  248. macro_new_mag(loyalist_20mm,100)
  249. };
  250. reloadTime=0.24;
  251. magazineReloadTime=10;
  252. class player: player
  253. {
  254. dispersion=0.0018;
  255. };
  256. };
  257. };
  258. class macro_new_weapon(loyalist,30mm): autocannon_30mm_CTWS
  259. {
  260. displayName="Autocannon 30mm Dual Purpose";
  261. muzzles[]=
  262. {
  263. "HE",
  264. "AP"
  265. };
  266. class HE: autocannon_Base_F
  267. {
  268. displayName="Autocannon 30mm HE";
  269. magazines[]=
  270. {
  271. macro_new_mag(loyalist_30mm_HE,50)
  272. };
  273. reloadTime=0.3;
  274. magazineReloadTime=10;
  275. class player: player
  276. {
  277. dispersion=0.0018;
  278. };
  279. };
  280. class AP: autocannon_Base_F
  281. {
  282. displayName="Autocannon 30mm AP";
  283. magazines[]=
  284. {
  285. macro_new_mag(loyalist_30mm_AP,10)
  286. };
  287. reloadTime=1;
  288. magazineReloadTime=10;
  289. class player: player
  290. {
  291. dispersion=0.00108;
  292. };
  293. };
  294. };
  295. };
  296. class CfgMagazines
  297. {
  298. class 3AS_300Rnd_SabreMG_Mag;
  299. class 140Rnd_30mm_MP_shells;
  300. class macro_new_mag(loyalist_mg,300):3AS_300Rnd_SabreMG_Mag
  301. {
  302. displayName="300 Rnd Heavy MG Ammo";
  303. displayNameShort="Heavy MG";
  304. ammo=macro_new_ammo(loyalist_mg)
  305. };
  306. class macro_new_mag(loyalist_20mm,100):140Rnd_30mm_MP_shells
  307. {
  308. displayName="100 Rnd 20mm HE Cannon";
  309. displayNameShort="20mm HE";
  310. count = 100;
  311. ammo=macro_new_ammo(loyalist_20mm)
  312. };
  313. class macro_new_mag(loyalist_30mm_HE,50):140Rnd_30mm_MP_shells
  314. {
  315. displayName="50 Rnd 30mm HE Cannon";
  316. displayNameShort="30mm HE";
  317. count=50;
  318. ammo=macro_new_ammo(loyalist_30mm_HE)
  319. };
  320. class macro_new_mag(loyalist_30mm_AP,10):140Rnd_30mm_MP_shells
  321. {
  322. displayName="50 Rnd 30mm AP Cannon";
  323. displayNameShort="30mm AP";
  324. count = 10;
  325. ammo=macro_new_ammo(loyalist_30mm_AP)
  326. };
  327. };
  328. class CfgAmmo
  329. {
  330. class 3AS_EC60_BluePlasma;
  331. class B_30mm_MP;
  332. class macro_new_ammo(loyalist_mg):3AS_EC60_BluePlasma
  333. {
  334. hit=30;
  335. indirectHit=5;
  336. indirectHitRange=1;
  337. cartridge="FxCartridge_127";
  338. visibleFire=8;
  339. audibleFire=120;
  340. dangerRadiusBulletClose=12;
  341. dangerRadiusHit=16;
  342. suppressionRadiusBulletClose=8;
  343. suppressionRadiusHit=12;
  344. cost=5;
  345. airLock=1;
  346. caliber=2.5999999;
  347. typicalSpeed=880;
  348. timeToLive=10;
  349. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_small_purple.p3d";
  350. tracerScale=1;
  351. tracerStartTime=0;
  352. tracerEndTime=10;
  353. };
  354. class macro_new_ammo(loyalist_20mm):B_30mm_MP
  355. {
  356. hit=90;
  357. indirectHit=30;
  358. indirectHitRange=3;
  359. explosive=0.60000002;
  360. typicalSpeed=1070;
  361. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_medium_purple.p3d";
  362. tracerScale=1;
  363. tracerStartTime=0;
  364. tracerEndTime=10;
  365. };
  366. class macro_new_ammo(loyalist_30mm_HE):B_30mm_MP
  367. {
  368. hit=140;
  369. indirectHit=90;
  370. indirectHitRange=5;
  371. explosive=0.60000002;
  372. typicalSpeed=1070;
  373. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_medium_purple.p3d";
  374. tracerScale=1;
  375. tracerStartTime=0;
  376. tracerEndTime=10;
  377. };
  378. class macro_new_ammo(loyalist_30mm_AP):B_30mm_MP
  379. {
  380. hit=240;
  381. indirectHit=0;
  382. indirectHitRange=0;
  383. explosive=0.60000002;
  384. caliber=7.4000001;
  385. typicalSpeed=1370;
  386. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_medium_purple.p3d";
  387. tracerScale=1;
  388. tracerStartTime=0;
  389. tracerEndTime=10;
  390. };
  391. };