config.cpp 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. #define COMPONENT vehicle_weapons
  2. #include "../RD501_main/config_macros.hpp"
  3. #include "_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(vehicle_weapons)
  7. {
  8. author=DANKAUTHORS;
  9. requiredAddons[]=
  10. {
  11. macro_lvl1_req
  12. };
  13. requiredVersion=0.1;
  14. units[]={};
  15. weapons[]={
  16. };
  17. };
  18. };
  19. //scopes
  20. class CfgWeapons
  21. {
  22. };
  23. class CfgMagazineWells
  24. {
  25. class macro_new_magwell(generic_aircraft_laser)
  26. {
  27. macro_new_magwell(generic_aircraft_colors)[]=
  28. {
  29. macro_new_mag(generic_aircraft_gun,1000),
  30. macro_new_mag(generic_aircraft_gun_blue,1000),
  31. macro_new_mag(generic_aircraft_gun_green,1000),
  32. macro_new_mag(generic_aircraft_gun_purple,1000),
  33. macro_new_mag(generic_aircraft_gun_preatorian,1000)
  34. };
  35. };
  36. class macro_new_magwell(generic_aircraft_cannon)
  37. {
  38. macro_new_magwell(generic_aircraft_colors)[]=
  39. {
  40. macro_new_mag(generic_aircraft_cannon_red,1000),
  41. macro_new_mag(generic_aircraft_cannon_green,1000),
  42. macro_new_mag(generic_aircraft_cannon_blue,1000),
  43. macro_new_mag(generic_aircraft_cannon_plasma_red,1000),
  44. macro_new_mag(generic_aircraft_cannon_plasma_blue,1000),
  45. macro_new_mag(generic_aircraft_cannon_purple,1000)
  46. };
  47. };
  48. };
  49. class CfgMagazines
  50. {
  51. class 500Rnd_Cannon_30mm_Plane_CAS_02_F;
  52. //laser gun + kannon
  53. #include "_mags/aircraft_laser_gun.hpp"
  54. //laser cannon
  55. #include "_mags/aircraft_laser_cannon.hpp"
  56. class OPTRE_6Rnd_ASGM2_rockets;
  57. class macro_new_mag(MRLS_M80,2): OPTRE_6Rnd_ASGM2_rockets
  58. {
  59. count = 2;
  60. };
  61. class SWOP_e11_Mag;
  62. #include "_mags/super_mg.hpp"
  63. class 100Rnd_TXLaser_Cannon_mag;
  64. #include "_mags/tank_cannons.hpp"
  65. class og9_Laser_Cannon_mag;
  66. class macro_new_mag(homing_spider,10): og9_Laser_Cannon_mag
  67. {
  68. displayNameShort = "Blaster Cannon.";
  69. ammo = macro_new_ammo(homing_spider)
  70. count = 10;
  71. tracersEvery = 1;
  72. initSpeed =800;
  73. maxLeadSpeed = 30000;
  74. nameSound = "cannon";
  75. };
  76. class 4Rnd_AAA_missiles;
  77. class 7Rnd_Rocket_04_AP_F;
  78. class magazine_Missile_rim116_x21;
  79. class magazine_Missile_rim162_x8;
  80. class PylonRack_12Rnd_PG_missiles;
  81. class 4Rnd_LG_Jian;
  82. #include "_mags/missiles.hpp"
  83. class 4Rnd_BombCluster_02_F;
  84. class PylonRack_Bomb_SDB_x4;
  85. class 2Rnd_GBU12_LGB;
  86. class macro_new_mag(cluster_bomb,4) : 4Rnd_BombCluster_02_F
  87. {
  88. ammo = macro_new_ammo(cluster_bomb)
  89. count = 4;
  90. DisplayName = "Thunderstorm CB";
  91. displayNameShort = "Thunderstorm CB";
  92. tracersEvery=1;
  93. };
  94. class macro_new_mag(cluster_bomb,2) : macro_new_mag(cluster_bomb,4)
  95. {
  96. count = 2;
  97. };
  98. class macro_new_mag(sdb_bomb,4) : PylonRack_Bomb_SDB_x4
  99. {
  100. ammo = macro_new_ammo(sdb_bomb)
  101. count = 4;
  102. DisplayName = "Wrath PGB";
  103. displayNameShort = "Wrath PGB";
  104. tracersEvery=1;
  105. };
  106. class macro_new_mag(lgb_bomb,4) : 2Rnd_GBU12_LGB
  107. {
  108. ammo = macro_new_ammo(lgb_bomb)
  109. count = 4;
  110. DisplayName = "Ruinscape GB";
  111. displayNameShort = "Ruinscape GB";
  112. tracersEvery=1;
  113. };
  114. class 1000Rnd_Laser_Cannon_LAAT;
  115. class macro_new_mag(laat_cannon,100) : 1000Rnd_Laser_Cannon_LAAT
  116. {
  117. displayNameShort = "";
  118. ammo = macro_new_ammo(laat_cannon)
  119. count = 100;
  120. tracersEvery = 1;
  121. initSpeed = 2000;
  122. muzzleImpulseFactor = 0;
  123. brightness = 100;
  124. magazineReloadTime=10;
  125. macro_no_muzzle_impulse
  126. };
  127. class 500Rnd_Cannon_ARCback;
  128. class macro_new_mag(voltic,200):500Rnd_Cannon_ARCback
  129. {
  130. displayNameShort = "";
  131. ammo = macro_new_ammo(voltic)
  132. count = 200;
  133. tracersEvery = 1;
  134. initSpeed = 1036;
  135. maxLeadSpeed = 300;
  136. macro_no_muzzle_impulse
  137. };
  138. class 1000Rnd_Laser_Cannon_EWEBSWBF_REP;
  139. class macro_new_mag(laat_ball_turret,200): 1000Rnd_Laser_Cannon_EWEBSWBF_REP
  140. {
  141. displayName = "Laat Ball Turret Mag";
  142. displayNameShort = "Ball Turret Mag";
  143. ammo =macro_new_ammo(ball_turret)
  144. count = 300;
  145. tracersEvery = 1;
  146. initSpeed = 1036;
  147. maxLeadSpeed = 300;
  148. muzzleImpulseFactor = 0;
  149. scope = 1;
  150. };
  151. class 2Rnd_Bomb_03_F;
  152. class macro_new_mag(carpet_I_bomb_mag,20): 2Rnd_Bomb_03_F
  153. {
  154. dlc = "RD501";
  155. scope = 2;
  156. displayName = "20 Rnd Carpet I Bomb";
  157. displayNameShort = "20 Rnd Bomb";
  158. count = 20;
  159. ammo = macro_new_ammo(carpet_I_bomb);
  160. initSpeed = 0;
  161. maxLeadSpeed = 1000;
  162. };
  163. };
  164. #include "_common/sensor_templates.hpp"
  165. class CfgAmmo
  166. {
  167. class B_35mm_AA_Tracer_Red;
  168. class LaserAmmo_Minigun;
  169. class SWOP_DTL19_BlasterRifle_Ammo;
  170. class TurboLaser_Laserx2;
  171. class ATTE_Laser;
  172. class M_Air_AA;
  173. class Rocket_04_AP_F;
  174. class ammo_Missile_rim162;
  175. class M_PG_AT;
  176. class M_Jian_AT;
  177. class ammo_Missile_rim116;
  178. class TurboLaser_Laserx2;
  179. //laser gun + kannon
  180. #include "_ammo/aircraft_laser_gun.hpp"
  181. //laser cannon
  182. #include "_ammo/aircraft_laser_cannon.hpp"
  183. #include "_ammo/super_mg.hpp"
  184. #include "_ammo/tank_cannons.hpp"
  185. class macro_new_ammo(homing_spider): TurboLaser_Laserx2//og9_Laser
  186. {
  187. hit = 185;
  188. indirectHit = 75;
  189. indirectHitRange = 1;
  190. visibleFire = 32;
  191. audibleFire = 32;
  192. visibleFireTime = 6;
  193. explosionSoundEffect = "DefaultExplosion";
  194. effectFly = "og9_Laser_Effect";
  195. explosive = 0.5;
  196. airLock = 1;
  197. CraterEffects = "ExploAmmoLaserCrater";
  198. explosionEffects = "ExploAmmoLaserCannon";
  199. model = "\SpiderDroid\Laserog9";
  200. caliber = 20;
  201. };
  202. #include "_ammo/missiles.hpp"
  203. class BombCluster_02_Ammo_F;
  204. class ammo_Bomb_SDB;
  205. class Bo_GBU12_LGB;
  206. class macro_new_ammo(cluster_bomb) : BombCluster_02_Ammo_F
  207. {
  208. DisplayName = "Thunderstorm CB";
  209. displayNameShort = "Thunderstorm CB";
  210. //effectFly = "RD501_Effect_Violet";
  211. //effectsFire = "RD501_Effect_Violet";
  212. //effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  213. //effectsMissile = "RD501_FX_Missile_AA";
  214. muzzleEffect = "";
  215. //effectsSmoke = "RD501_Effect_Violet";
  216. tracerColor[] = {"blue"};
  217. brightness = 20000;
  218. lightColor[] = {0, 0, 1, 1};
  219. triggerTime = 0.1;
  220. ExplosionEffects = "ProtonbombAmmoExplosion";
  221. hit = 650;
  222. indirectHit =325;
  223. indirectHitRange = 6;
  224. };
  225. class macro_new_ammo(sdb_bomb) : ammo_Bomb_SDB
  226. {
  227. DisplayName = "Wrath PGB";
  228. displayNameShort = "Wrath PGB";
  229. // effectFly = "RD501_Effect_Violet";
  230. // effectsFire = "RD501_Effect_Violet";
  231. // effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  232. // effectsMissile = "RD501_FX_Missile_AA";
  233. muzzleEffect = "";
  234. //effectsSmoke = "RD501_Effect_Violet";
  235. tracerColor[] = {"blue"};
  236. brightness = 20000;
  237. lightColor[] = {0, 0, 1, 1};
  238. triggerTime = 0.1;
  239. ExplosionEffects = "ProtonbombAmmoExplosion";
  240. hit = 2000;
  241. indirectHit = 1000;
  242. indirectHitRange = 3;
  243. };
  244. class macro_new_ammo(lgb_bomb) : Bo_GBU12_LGB
  245. {
  246. DisplayName = "Ruin GBU";
  247. displayNameShort = "Ruin GBU";
  248. // effectFly = "RD501_Effect_Violet";
  249. // effectsFire = "RD501_Effect_Violet";
  250. // effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  251. // effectsMissile = "RD501_FX_Missile_AA";
  252. muzzleEffect = "";
  253. // effectsSmoke = "RD501_Effect_Violet";
  254. tracerColor[] = {"blue"};
  255. brightness = 20000;
  256. lightColor[] = {0, 0, 1, 1};
  257. triggerTime = 0.1;
  258. ExplosionEffects = "ProtonbombAmmoExplosion";
  259. hit = 650;
  260. indirectHit =650;
  261. indirectHitRange = 25;
  262. };
  263. class macro_new_ammo(laat_cannon): TurboLaser_Laserx2//TurboLaser_Laserx2//SW_SpeederBikeCanon_Ammo//swop_bywingCannonammo//LAAT_Laser
  264. {
  265. explosive = 0.30;
  266. hit = 500;
  267. indirectHit =300;
  268. indirectHitRange = 6;
  269. caliber = .0;
  270. timeToLive=9;
  271. ACE_caliber=1;
  272. //explosionEffects = "SWOP_LaserExploSmall";
  273. //effectFly = "SWOP_blueLaserEffect";
  274. CraterEffects = "ExploAmmoLaserCrater";
  275. explosionSoundEffect = "DefaultExplosion";
  276. //explosionEffects = "ExploAmmoLaserCannon";
  277. //model = "\tie\tracer_blue";
  278. model = "\TIE\tracer_green.p3d";
  279. effectFly = "SWOP_greenLaserEffect";
  280. //explosionSoundEffect = "DefaultExplosion";
  281. //CraterEffects = "ExploAmmoLaserCrater";
  282. ExplosionEffects = "HEShellExplosion";
  283. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  284. allowAgainstInfantry = 1;
  285. cost = 1;
  286. };
  287. class swop_bywingCannonammo;
  288. class macro_new_ammo(voltic):swop_bywingCannonammo
  289. {
  290. hit = 400;
  291. indirectHit = 150;
  292. indirectHitRange = 6;
  293. explosive = 0.2;
  294. caliber = 9;
  295. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  296. allowAgainstInfantry = 1;
  297. };
  298. class macro_new_ammo(ball_turret):TurboLaser_Laserx2//SW_SpeederBikeCanon_Ammo//Vwing_ammo
  299. {
  300. hit = 225;
  301. timeToLive = 5;
  302. indirectHit = 20;
  303. indirectHitRange = 6;
  304. explosive = 0.2;
  305. caliber = 6;
  306. ACE_caliber=0;
  307. tracerScale = 1;
  308. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  309. allowAgainstInfantry = 1;
  310. model = "\SWOP_Main\Effects\Tracer\Lasergreen";
  311. cost = 1;
  312. CraterEffects = "ExploAmmoLaserCrater";
  313. CraterWaterEffects = "ImpactEffectsWaterHE";
  314. ExplosionEffects ="SWOP_LaserExploSmallblue2";
  315. soundHit1[] = {"SWOP_Main\FlyBy\impactosheavy\impactosheavy1.ogg", 1.2, 1, 50};
  316. soundHit2[] = {"SWOP_Main\FlyBy\impactosheavy\impactosheavy2.ogg", 1.2, 1, 50};
  317. soundHit3[] = {"SWOP_Main\FlyBy\impactosheavy\impactosheavy3.ogg", 1.2, 1, 50};
  318. soundHit4[] = {"SWOP_Main\FlyBy\impactosheavy\impactosheavy4.ogg", 1.2, 1, 50};
  319. multiSoundHit[] = {"soundHit1", 0.25, "soundHit2", 0.25, "soundHit3", 0.25, "soundHit4", 0.25};
  320. };
  321. class Bo_Mk82;
  322. class macro_new_ammo(carpet_I_bomb): Bo_Mk82
  323. {
  324. model = "OPTRE_weapons\Aircraft\500lb_bomb_fly.p3d";
  325. hit = 10000;
  326. indirectHit = 10000;
  327. indirectHitRange = 30;
  328. caliber = 3;
  329. explosive = 1;
  330. timeToLive = 240;
  331. triggerTime=5;
  332. triggerOnImpact=true;
  333. //ExplosionEffects = "ProtonbombAmmoExplosionOrangeRD501";//"ProtonbombAmmoExplosionPurpleRD501";//"ProtonbombAmmoExplosionYellowRD501";//"ProtonbombAmmoExplosion";
  334. //explosionTime = 20;
  335. };
  336. };