config.cpp 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. //Get this addons macro
  2. //get the macro for the air macro_patch_name(vehicles)
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. class CfgPatches
  6. {
  7. class macro_patch_name(bantha)
  8. {
  9. addonRootClass=macro_patch_name(vehicles)
  10. requiredAddons[]=
  11. {
  12. macro_patch_name(vehicles)
  13. };
  14. requiredVersion=0.1;
  15. units[]=
  16. {
  17. macro_new_vehicle(bantha,501st_MkI)
  18. };
  19. weapons[]=
  20. {
  21. };
  22. };
  23. };
  24. #include "../../common/sensor_templates.hpp"
  25. class DefaultEventhandlers ;
  26. class CfgVehicles
  27. {
  28. class Car_F;
  29. class Wheeled_APC_F : Car_F
  30. {
  31. class turrets;
  32. };
  33. class 212th_APC_Wheeled_01_base_F : Wheeled_APC_F
  34. {
  35. class Turrets: Turrets
  36. {
  37. class MainTurret;
  38. };
  39. }
  40. class 212th_B_APC_Wheeled_01_base_F : 212th_APC_Wheeled_01_base_F
  41. {
  42. class Turrets: Turrets
  43. {
  44. class MainTurret;
  45. };
  46. }
  47. class 212th_B_APC_Wheeled_01_cannon_F : 212th_B_APC_Wheeled_01_base_F
  48. {
  49. class Turrets: Turrets
  50. {
  51. class MainTurret;
  52. };
  53. };
  54. class 212th_B_APC_Wheeled_01_cannon_F_OCimport_01 : 212th_B_APC_Wheeled_01_cannon_F
  55. {
  56. class HitPoints;
  57. class Turrets: Turrets
  58. {
  59. class MainTurret:MainTurret
  60. {
  61. class HitPoints;
  62. class turrets;
  63. };
  64. };
  65. };
  66. class 212th_B_APC_Wheeled_01_cannon_F_OCimport_02 : 212th_B_APC_Wheeled_01_cannon_F_OCimport_01
  67. {
  68. class HitPoints: HitPoints
  69. {
  70. class HitBody;
  71. class HitEngine;
  72. class HitFuel;
  73. class HitHull;
  74. };
  75. class Turrets: Turrets
  76. {
  77. class MainTurret:MainTurret
  78. {
  79. class HitPoints:HitPoints
  80. {
  81. class HitTurret;
  82. class HitGun;
  83. };
  84. class turrets: turrets
  85. {
  86. class commanderoptics;
  87. };
  88. };
  89. };
  90. };
  91. class macro_new_vehicle(bantha,501st_MkI):212th_B_APC_Wheeled_01_cannon_F_OCimport_02
  92. {
  93. armor = 600;//320;
  94. armorStructural = 5;
  95. htMax = 1800;
  96. htMin = 60;
  97. minTotalDamageThreshold = 0.001;
  98. explosionShielding = 1;
  99. crewVulnerable = false;
  100. crewCrashProtection = 0;
  101. ace_repair_canRepair =1;
  102. memoryPointLMissile[] = {"Rocket_1","Rocket_2"};
  103. memoryPointRMissile[] = {"Rocket_2","Rocket_1"};
  104. scope=2;
  105. scopeCurator=2;
  106. displayName="Bantha (501st) Mk.I (Mynock)";
  107. hiddenSelectionsTextures[]=
  108. {
  109. "RD501_Vehicles\textures\bantha\bantha_ext01_mynock_co.paa",
  110. "RD501_Vehicles\textures\bantha\bantha_tire_mynock_co.paa",
  111. "RD501_Vehicles\textures\bantha\bantha_turret_mynock_co.paa",
  112. "RD501_Vehicles\textures\bantha\bantha_int01_mynock_co.paa",
  113. };
  114. faction = macro_republic_faction
  115. editorSubcategory = macro_editor_cat(APC)
  116. vehicleClass = macro_editor_vehicle_type(APC)
  117. slingLoadCargoMemoryPoints[] = {
  118. "wheel_1_1_axis","wheel_1_2_axis","wheel_1_3_axis","wheel_1_4_axis","wheel_1_5_axis",
  119. "wheel_2_1_axis","wheel_2_2_axis","wheel_2_3_axis","wheel_2_4_axis","wheel_2_5_axis",
  120. "light_l_flare","light_l_flare2",
  121. "light_r_flare","light_r_flare2",
  122. "commander_turret_axis",
  123. "engineeffectl","engineeffectr"
  124. };
  125. slingLoadCargoMemoryPointsDir[] = {};
  126. class EventHandlers
  127. {
  128. init = "[_this select 0] execVM 'RD501_Vehicles\_init_functions\wheel_dmg.sqf';";
  129. };
  130. class HitPoints: HitPoints
  131. {
  132. class HitBody: HitBody//basicly the armor
  133. {
  134. armor = 3.5;
  135. material = -1;
  136. name = "karoserie";
  137. visual = "zbytek";
  138. passThrough = 0.35;
  139. minimalHit = 0.1;
  140. explosionShielding = 0.45;
  141. radius = 0.3;
  142. };
  143. class HitEngine: HitEngine // hit front red for death
  144. {
  145. armor = 3.5;//1.9;
  146. material = -1;
  147. name = "motor";
  148. passThrough = 0.2;
  149. minimalHit = 0.1;
  150. explosionShielding = 0.4;
  151. radius = 0.3;
  152. };
  153. class HitFuel: HitFuel
  154. {
  155. armor = 3.5;//1.4;
  156. material = -1;
  157. name = "palivo";
  158. passThrough = 0.3;
  159. minimalHit = 0.1;
  160. explosionShielding = 0.4;
  161. radius = 0.3;
  162. };
  163. class HitHull: HitHull
  164. {
  165. armor = 3.5;//2.2;
  166. material = -1;
  167. name = "palivo";
  168. passThrough = 0.4;
  169. minimalHit = 0.1;
  170. explosionShielding = 0.2;
  171. radius = 0.3;
  172. };
  173. };
  174. class Turrets: Turrets
  175. {
  176. class MainTurret:MainTurret
  177. {
  178. weapons[] = {"SCI_autocannon_Z20_HBB","missiles_DAGR","missiles_titan"};
  179. magazines[] = {"SCI_500Rnd_Z20_HBB","SCI_500Rnd_Z20_HBB","SCI_500Rnd_Z20_HBB","SCI_500Rnd_Z20_HBB","12Rnd_PG_missiles","2Rnd_GAT_missiles"};
  180. class HitPoints:HitPoints
  181. {
  182. class HitTurret:HitTurret
  183. {
  184. armor = 13;//1
  185. };
  186. class HitGun:HitGun
  187. {
  188. armor = 13;//0.7;
  189. };
  190. };
  191. class turrets:turrets
  192. {
  193. class commanderoptics:commanderoptics
  194. {
  195. weapons[] = {"CMFlareLauncher","SmokeLauncher","212th_arifle_VALKEN38A_F","Laserdesignator_vehicle"};
  196. magazines[] = {"300Rnd_CMFlare_Chaff_Magazine","SmokeLauncherMag","SmokeLauncherMag","SmokeLauncherMag","SmokeLauncherMag","SmokeLauncherMag","212th_200Rnd_VALKEN38SAW_mag","212th_200Rnd_VALKEN38SAW_mag","212th_200Rnd_VALKEN38SAW_mag","212th_200Rnd_VALKEN38SAW_mag","212th_200Rnd_VALKEN38SAW_mag","212th_200Rnd_VALKEN38SAW_mag","212th_200Rnd_VALKEN38SAW_mag","212th_200Rnd_VALKEN38SAW_mag","212th_200Rnd_VALKEN38SAW_mag","212th_200Rnd_VALKEN38SAW_mag","212th_200Rnd_VALKEN38SAW_mag","Laserbatteries"};
  197. };
  198. };
  199. };
  200. };
  201. class TransportBackpacks;
  202. class TransportItems
  203. {
  204. class _xx_ACE_elasticBandage
  205. {
  206. count = 0;
  207. };
  208. class _xx_ACE_packingBandage
  209. {
  210. count = 0;
  211. };
  212. class _xx_ACE_quikclot
  213. {
  214. count = 0;
  215. };
  216. class _xx_ACE_salineIV
  217. {
  218. count = 0;
  219. };
  220. class _xx_ACE_salineIV_250
  221. {
  222. count = 0;
  223. };
  224. class _xx_ACE_salineIV_500
  225. {
  226. count = 0;
  227. };
  228. class _xx_ACE_tourniquet
  229. {
  230. count = 0;
  231. };
  232. class _xx_OPTRE_M2_Smoke_Blue
  233. {
  234. count = 0;
  235. };
  236. class _xx_OPTRE_M2_Smoke_Green
  237. {
  238. count = 0;
  239. };
  240. class _xx_OPTRE_M2_Smoke_Purple
  241. {
  242. count = 0;
  243. };
  244. class _xx_OPTRE_M2_Smoke_Red
  245. {
  246. count = 0;
  247. };
  248. class _xx_SmokeShell
  249. {
  250. count = 0;
  251. };
  252. class _xx_SW_halfshield_Mag
  253. {
  254. count = 0;
  255. };
  256. class _xx_SW_SquadShield_Mag
  257. {
  258. count = 0;
  259. };
  260. class _xx_SWOP_termDet_G
  261. {
  262. count = 0;
  263. };
  264. };
  265. class TransportMagazines
  266. {
  267. class _xx_SCI_200Rnd_VALKEN38SAW_mag
  268. {
  269. count = 0;
  270. };
  271. class _xx_SCI_35Rnd_DC15A_mag
  272. {
  273. count = 0;
  274. };
  275. class _xx_SCI_45Rnd_DC15S_mag
  276. {
  277. count = 0;
  278. };
  279. class _xx_SCI_5Rnd_VALKEN38SAW_mag
  280. {
  281. count = 0;
  282. };
  283. class _xx_SCI_600Rnd_z6_mag
  284. {
  285. count = 0;
  286. };
  287. class _xx_SCI_PLX1_Missile
  288. {
  289. count = 0;
  290. };
  291. class _xx_SCI_RPS6_HEAA
  292. {
  293. count = 0;
  294. };
  295. };
  296. class TransportWeapons
  297. {
  298. class _xx_SCI_arifle_DC15A_F
  299. {
  300. count = 0;
  301. };
  302. class _xx_SCI_arifle_DC15S_F
  303. {
  304. count = 0;
  305. };
  306. class _xx_SCI_arifle_z6_F
  307. {
  308. count = 0;
  309. };
  310. class _xx_SCI_RPS6
  311. {
  312. count = 0;
  313. };
  314. };
  315. };
  316. };