config.cpp 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  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. #include "_mags/aa_gun.hpp"
  77. class 4Rnd_AAA_missiles;
  78. class 7Rnd_Rocket_04_AP_F;
  79. class magazine_Missile_rim116_x21;
  80. class magazine_Missile_rim162_x8;
  81. class PylonRack_12Rnd_PG_missiles;
  82. class 4Rnd_LG_Jian;
  83. #include "_mags/missiles.hpp"
  84. class 4Rnd_BombCluster_02_F;
  85. class PylonRack_Bomb_SDB_x4;
  86. class 2Rnd_GBU12_LGB;
  87. class macro_new_mag(cluster_bomb,4) : 4Rnd_BombCluster_02_F
  88. {
  89. ammo = macro_new_ammo(cluster_bomb)
  90. count = 4;
  91. DisplayName = "Thunderstorm CB";
  92. displayNameShort = "Thunderstorm CB";
  93. tracersEvery=1;
  94. };
  95. class macro_new_mag(cluster_bomb,2) : macro_new_mag(cluster_bomb,4)
  96. {
  97. count = 2;
  98. };
  99. class macro_new_mag(sdb_bomb,4) : PylonRack_Bomb_SDB_x4
  100. {
  101. ammo = macro_new_ammo(sdb_bomb)
  102. count = 4;
  103. DisplayName = "Wrath PGB";
  104. displayNameShort = "Wrath PGB";
  105. tracersEvery=1;
  106. };
  107. class macro_new_mag(lgb_bomb,4) : 2Rnd_GBU12_LGB
  108. {
  109. ammo = macro_new_ammo(lgb_bomb)
  110. count = 4;
  111. DisplayName = "Ruinscape GB";
  112. displayNameShort = "Ruinscape GB";
  113. tracersEvery=1;
  114. };
  115. class 1000Rnd_Laser_Cannon_LAAT;
  116. class macro_new_mag(laat_cannon,100) : 1000Rnd_Laser_Cannon_LAAT
  117. {
  118. displayNameShort = "";
  119. ammo = macro_new_ammo(laat_cannon)
  120. count = 100;
  121. tracersEvery = 1;
  122. initSpeed = 2000;
  123. muzzleImpulseFactor = 0;
  124. brightness = 100;
  125. magazineReloadTime=10;
  126. macro_no_muzzle_impulse
  127. };
  128. class 500Rnd_Cannon_ARCback;
  129. class macro_new_mag(voltic,200):500Rnd_Cannon_ARCback
  130. {
  131. displayNameShort = "";
  132. ammo = macro_new_ammo(voltic)
  133. count = 200;
  134. tracersEvery = 1;
  135. initSpeed = 1036;
  136. maxLeadSpeed = 300;
  137. macro_no_muzzle_impulse
  138. };
  139. class 1000Rnd_Laser_Cannon_EWEBSWBF_REP;
  140. class macro_new_mag(laat_ball_turret,200): 1000Rnd_Laser_Cannon_EWEBSWBF_REP
  141. {
  142. displayName = "Laat Ball Turret Mag";
  143. displayNameShort = "Ball Turret Mag";
  144. ammo =macro_new_ammo(ball_turret)
  145. count = 300;
  146. tracersEvery = 1;
  147. initSpeed = 1036;
  148. maxLeadSpeed = 300;
  149. muzzleImpulseFactor = 0;
  150. scope = 1;
  151. };
  152. class 2Rnd_Bomb_03_F;
  153. class macro_new_mag(carpet_I_bomb_mag,20): 2Rnd_Bomb_03_F
  154. {
  155. dlc = "RD501";
  156. scope = 2;
  157. displayName = "20 Rnd Carpet I Bomb";
  158. displayNameShort = "20 Rnd Bomb";
  159. count = 20;
  160. ammo = macro_new_ammo(carpet_I_bomb);
  161. initSpeed = 0;
  162. maxLeadSpeed = 1000;
  163. };
  164. };
  165. #include "_common/sensor_templates.hpp"
  166. class CfgAmmo
  167. {
  168. class B_35mm_AA_Tracer_Red;
  169. class LaserAmmo_Minigun;
  170. class SWOP_DTL19_BlasterRifle_Ammo;
  171. class TurboLaser_Laserx2;
  172. class ATTE_Laser;
  173. class M_Air_AA;
  174. class Rocket_04_AP_F;
  175. class ammo_Missile_rim162;
  176. class M_PG_AT;
  177. class M_Jian_AT;
  178. class ammo_Missile_rim116;
  179. class TurboLaser_Laserx2;
  180. //laser gun + kannon
  181. #include "_ammo/aircraft_laser_gun.hpp"
  182. //laser cannon
  183. #include "_ammo/aircraft_laser_cannon.hpp"
  184. #include "_ammo/super_mg.hpp"
  185. #include "_ammo/tank_cannons.hpp"
  186. class macro_new_ammo(homing_spider): TurboLaser_Laserx2//og9_Laser
  187. {
  188. hit = 185;
  189. indirectHit = 75;
  190. indirectHitRange = 1;
  191. visibleFire = 32;
  192. audibleFire = 32;
  193. visibleFireTime = 6;
  194. explosionSoundEffect = "DefaultExplosion";
  195. effectFly = "og9_Laser_Effect";
  196. explosive = 0.5;
  197. airLock = 1;
  198. CraterEffects = "ExploAmmoLaserCrater";
  199. explosionEffects = "ExploAmmoLaserCannon";
  200. model = "\SpiderDroid\Laserog9";
  201. caliber = 20;
  202. };
  203. #include "_ammo/missiles.hpp"
  204. class BombCluster_02_Ammo_F;
  205. class ammo_Bomb_SDB;
  206. class Bo_GBU12_LGB;
  207. class macro_new_ammo(cluster_bomb) : BombCluster_02_Ammo_F
  208. {
  209. DisplayName = "Thunderstorm CB";
  210. displayNameShort = "Thunderstorm CB";
  211. //effectFly = "RD501_Effect_Violet";
  212. //effectsFire = "RD501_Effect_Violet";
  213. //effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  214. //effectsMissile = "RD501_FX_Missile_AA";
  215. muzzleEffect = "";
  216. //effectsSmoke = "RD501_Effect_Violet";
  217. tracerColor[] = {"blue"};
  218. brightness = 20000;
  219. lightColor[] = {0, 0, 1, 1};
  220. triggerTime = 0.1;
  221. ExplosionEffects = "ProtonbombAmmoExplosion";
  222. hit = 650;
  223. indirectHit =325;
  224. indirectHitRange = 6;
  225. };
  226. class macro_new_ammo(sdb_bomb) : ammo_Bomb_SDB
  227. {
  228. DisplayName = "Wrath PGB";
  229. displayNameShort = "Wrath PGB";
  230. // effectFly = "RD501_Effect_Violet";
  231. // effectsFire = "RD501_Effect_Violet";
  232. // effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  233. // effectsMissile = "RD501_FX_Missile_AA";
  234. muzzleEffect = "";
  235. //effectsSmoke = "RD501_Effect_Violet";
  236. tracerColor[] = {"blue"};
  237. brightness = 20000;
  238. lightColor[] = {0, 0, 1, 1};
  239. triggerTime = 0.1;
  240. ExplosionEffects = "ProtonbombAmmoExplosion";
  241. hit = 2000;
  242. indirectHit = 1000;
  243. indirectHitRange = 3;
  244. };
  245. class macro_new_ammo(lgb_bomb) : Bo_GBU12_LGB
  246. {
  247. DisplayName = "Ruin GBU";
  248. displayNameShort = "Ruin GBU";
  249. // effectFly = "RD501_Effect_Violet";
  250. // effectsFire = "RD501_Effect_Violet";
  251. // effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  252. // effectsMissile = "RD501_FX_Missile_AA";
  253. muzzleEffect = "";
  254. // effectsSmoke = "RD501_Effect_Violet";
  255. tracerColor[] = {"blue"};
  256. brightness = 20000;
  257. lightColor[] = {0, 0, 1, 1};
  258. triggerTime = 0.1;
  259. ExplosionEffects = "ProtonbombAmmoExplosion";
  260. hit = 650;
  261. indirectHit =650;
  262. indirectHitRange = 25;
  263. };
  264. class macro_new_ammo(laat_cannon): TurboLaser_Laserx2//TurboLaser_Laserx2//SW_SpeederBikeCanon_Ammo//swop_bywingCannonammo//LAAT_Laser
  265. {
  266. explosive = 0.5;
  267. hit = 1000;
  268. indirectHit =800;
  269. indirectHitRange = 6;
  270. caliber = 1;
  271. timeToLive=9;
  272. ACE_caliber=1;
  273. craterEffects = "ImpactEffectsMedium";
  274. explosionSoundEffect = "DefaultExplosion";
  275. ExplosionEffects = "ExploAmmoExplosion";
  276. model = "\TIE\tracer_green.p3d";
  277. effectFly = "SWOP_greenLaserEffect";
  278. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  279. allowAgainstInfantry = 1;
  280. cost = 1;
  281. soundSetBulletFly[] = {"SWOP_HEAVYBullet_FlyBy_SoundSet"};
  282. SoundSetExplosion[] = {"Mortar_Exp_SoundSet","Mortar_Tail_SoundSet","Explosion_Debris_SoundSet"};
  283. soundSetSonicCrack[] = {"bulletSonicCrack_SoundSet","bulletSonicCrackTail_SoundSet"};
  284. supersonicCrackFar[] = {"\ca\Weapons\Data\Sound\supersonic_crack_50meters.wss", 1, 50};
  285. supersonicCrackNear[] = {"\ca\Weapons\Data\Sound\supersonic_crack_close.wss", 1, 50};
  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 = 600;
  301. timeToLive = 5;
  302. indirectHit = 400;
  303. indirectHitRange = 1;
  304. explosive = 1;
  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 = "-";
  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. };