config.cpp 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  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(cluster_emp,2) : macro_new_mag(cluster_bomb,4)
  100. {
  101. ammo = macro_new_ammo(cluster_emp)
  102. DisplayName = "Lightning EMP CB";
  103. displayNameShort = "Lightning EMP CB";
  104. count = 2;
  105. };
  106. class macro_new_mag(sdb_bomb,4) : PylonRack_Bomb_SDB_x4
  107. {
  108. ammo = macro_new_ammo(sdb_bomb)
  109. count = 4;
  110. DisplayName = "Wrath PGB";
  111. displayNameShort = "Wrath PGB";
  112. tracersEvery=1;
  113. };
  114. class macro_new_mag(lgb_bomb,4) : 2Rnd_GBU12_LGB
  115. {
  116. ammo = macro_new_ammo(lgb_bomb)
  117. count = 4;
  118. DisplayName = "Ruinscape GB";
  119. displayNameShort = "Ruinscape GB";
  120. tracersEvery=1;
  121. };
  122. class 1000Rnd_Laser_Cannon_LAAT;
  123. class macro_new_mag(laat_cannon,100) : 1000Rnd_Laser_Cannon_LAAT
  124. {
  125. displayNameShort = "";
  126. ammo = macro_new_ammo(laat_cannon)
  127. count = 100;
  128. tracersEvery = 1;
  129. initSpeed = 2000;
  130. muzzleImpulseFactor = 0;
  131. brightness = 100;
  132. magazineReloadTime=10;
  133. macro_no_muzzle_impulse
  134. };
  135. class 500Rnd_Cannon_ARCback;
  136. class macro_new_mag(voltic,200):500Rnd_Cannon_ARCback
  137. {
  138. displayNameShort = "";
  139. ammo = macro_new_ammo(voltic)
  140. count = 200;
  141. tracersEvery = 1;
  142. initSpeed = 1036;
  143. maxLeadSpeed = 300;
  144. macro_no_muzzle_impulse
  145. };
  146. class 1000Rnd_Laser_Cannon_EWEBSWBF_REP;
  147. class macro_new_mag(laat_ball_turret,200): 1000Rnd_Laser_Cannon_EWEBSWBF_REP
  148. {
  149. displayName = "Laat Ball Turret Mag";
  150. displayNameShort = "Ball Turret Mag";
  151. ammo =macro_new_ammo(ball_turret)
  152. count = 300;
  153. tracersEvery = 1;
  154. initSpeed = 1036;
  155. maxLeadSpeed = 300;
  156. muzzleImpulseFactor = 0;
  157. scope = 1;
  158. };
  159. class 2Rnd_Bomb_03_F;
  160. class macro_new_mag(carpet_I_bomb_mag,20): 2Rnd_Bomb_03_F
  161. {
  162. dlc = "RD501";
  163. scope = 2;
  164. displayName = "20 Rnd Carpet I Bomb";
  165. displayNameShort = "20 Rnd Bomb";
  166. count = 20;
  167. ammo = macro_new_ammo(carpet_I_bomb);
  168. initSpeed = 0;
  169. maxLeadSpeed = 1000;
  170. };
  171. };
  172. #include "_common/sensor_templates.hpp"
  173. class CfgAmmo
  174. {
  175. class B_35mm_AA_Tracer_Red;
  176. class LaserAmmo_Minigun;
  177. class SWOP_DTL19_BlasterRifle_Ammo;
  178. class TurboLaser_Laserx2;
  179. class ATTE_Laser;
  180. class M_Air_AA;
  181. class Rocket_04_AP_F;
  182. class ammo_Missile_rim162;
  183. class M_PG_AT;
  184. class M_Jian_AT;
  185. class ammo_Missile_rim116;
  186. class TurboLaser_Laserx2;
  187. //laser gun + kannon
  188. #include "_ammo/aircraft_laser_gun.hpp"
  189. //laser cannon
  190. #include "_ammo/aircraft_laser_cannon.hpp"
  191. #include "_ammo/super_mg.hpp"
  192. #include "_ammo/tank_cannons.hpp"
  193. class macro_new_ammo(homing_spider): TurboLaser_Laserx2//og9_Laser
  194. {
  195. hit = 185;
  196. indirectHit = 75;
  197. indirectHitRange = 1;
  198. visibleFire = 32;
  199. audibleFire = 32;
  200. visibleFireTime = 6;
  201. explosionSoundEffect = "DefaultExplosion";
  202. effectFly = "og9_Laser_Effect";
  203. explosive = 0.5;
  204. airLock = 1;
  205. CraterEffects = "ExploAmmoLaserCrater";
  206. explosionEffects = "ExploAmmoLaserCannon";
  207. model = "\SpiderDroid\Laserog9";
  208. caliber = 20;
  209. };
  210. #include "_ammo/missiles.hpp"
  211. class BombCluster_02_Ammo_F;
  212. class ammo_Bomb_SDB;
  213. class Bo_GBU12_LGB;
  214. class macro_new_ammo(cluster_bomb) : BombCluster_02_Ammo_F
  215. {
  216. DisplayName = "Thunderstorm CB";
  217. displayNameShort = "Thunderstorm CB";
  218. //effectFly = "RD501_Effect_Violet";
  219. //effectsFire = "RD501_Effect_Violet";
  220. //effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  221. //effectsMissile = "RD501_FX_Missile_AA";
  222. muzzleEffect = "";
  223. //effectsSmoke = "RD501_Effect_Violet";
  224. tracerColor[] = {"blue"};
  225. brightness = 20000;
  226. lightColor[] = {0, 0, 1, 1};
  227. triggerTime = 0.1;
  228. ExplosionEffects = "ProtonbombAmmoExplosion";
  229. hit = 650;
  230. indirectHit =325;
  231. indirectHitRange = 6;
  232. };
  233. class Mo_cluster_Bomb_02_F;
  234. class macro_new_ammo(cluster_emp_sub): Mo_cluster_Bomb_02_F
  235. {
  236. hit = 0.1;
  237. indirectHit = 0.01;
  238. indirectHitRange=40;
  239. JLTS_isEMPAmmo=1;
  240. explosionEffects="JLTS_fx_exp_EMP";
  241. SoundSetExplosion[]=
  242. {
  243. "JLTS_GrenadeEMP_Exp_SoundSet",
  244. "JLTS_GrenadeEMP_Tail_SoundSet",
  245. "Explosion_Debris_SoundSet"
  246. };
  247. class CamShakeExplode
  248. {
  249. distance=10;
  250. duration=1;
  251. frequency=20;
  252. power=0;
  253. };
  254. };
  255. class macro_new_ammo(cluster_emp) : BombCluster_02_Ammo_F
  256. {
  257. DisplayName = "Lightning EMP CB";
  258. displayNameShort = "Lightning EMP CB";
  259. muzzleEffect = "";
  260. tracerColor[] = {"blue"};
  261. brightness = 20000;
  262. lightColor[] = {0, 0, 1, 1};
  263. triggerTime = 0.1;
  264. hit = 50;
  265. indirectHitRange = 0;
  266. submunitionAmmo[]=
  267. {
  268. macro_new_ammo(cluster_emp_sub),
  269. 1.0
  270. };
  271. submunitionConeType[]=
  272. {
  273. "randomcenter",
  274. 45
  275. };
  276. };
  277. class macro_new_ammo(sdb_bomb) : ammo_Bomb_SDB
  278. {
  279. DisplayName = "Wrath PGB";
  280. displayNameShort = "Wrath PGB";
  281. // effectFly = "RD501_Effect_Violet";
  282. // effectsFire = "RD501_Effect_Violet";
  283. // effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  284. // effectsMissile = "RD501_FX_Missile_AA";
  285. muzzleEffect = "";
  286. //effectsSmoke = "RD501_Effect_Violet";
  287. tracerColor[] = {"blue"};
  288. brightness = 20000;
  289. lightColor[] = {0, 0, 1, 1};
  290. triggerTime = 0.1;
  291. ExplosionEffects = "ProtonbombAmmoExplosion";
  292. hit = 2000;
  293. indirectHit = 1000;
  294. indirectHitRange = 3;
  295. };
  296. class macro_new_ammo(lgb_bomb) : Bo_GBU12_LGB
  297. {
  298. DisplayName = "Ruin GBU";
  299. displayNameShort = "Ruin GBU";
  300. // effectFly = "RD501_Effect_Violet";
  301. // effectsFire = "RD501_Effect_Violet";
  302. // effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  303. // effectsMissile = "RD501_FX_Missile_AA";
  304. muzzleEffect = "";
  305. // effectsSmoke = "RD501_Effect_Violet";
  306. tracerColor[] = {"blue"};
  307. brightness = 20000;
  308. lightColor[] = {0, 0, 1, 1};
  309. triggerTime = 0.1;
  310. ExplosionEffects = "ProtonbombAmmoExplosion";
  311. hit = 650;
  312. indirectHit =650;
  313. indirectHitRange = 25;
  314. };
  315. class macro_new_ammo(laat_cannon): TurboLaser_Laserx2//TurboLaser_Laserx2//SW_SpeederBikeCanon_Ammo//swop_bywingCannonammo//LAAT_Laser
  316. {
  317. explosive = 0.5;
  318. hit = 1000;
  319. indirectHit =800;
  320. indirectHitRange = 6;
  321. caliber = 1;
  322. timeToLive=9;
  323. ACE_caliber=1;
  324. craterEffects = "ImpactEffectsMedium";
  325. explosionSoundEffect = "DefaultExplosion";
  326. ExplosionEffects = "ExploAmmoExplosion";
  327. model = "\TIE\tracer_green.p3d";
  328. effectFly = "SWOP_greenLaserEffect";
  329. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  330. allowAgainstInfantry = 1;
  331. cost = 1;
  332. soundSetBulletFly[] = {"SWOP_HEAVYBullet_FlyBy_SoundSet"};
  333. SoundSetExplosion[] = {"Mortar_Exp_SoundSet","Mortar_Tail_SoundSet","Explosion_Debris_SoundSet"};
  334. soundSetSonicCrack[] = {"bulletSonicCrack_SoundSet","bulletSonicCrackTail_SoundSet"};
  335. supersonicCrackFar[] = {"\ca\Weapons\Data\Sound\supersonic_crack_50meters.wss", 1, 50};
  336. supersonicCrackNear[] = {"\ca\Weapons\Data\Sound\supersonic_crack_close.wss", 1, 50};
  337. };
  338. class swop_bywingCannonammo;
  339. class macro_new_ammo(voltic):swop_bywingCannonammo
  340. {
  341. hit = 400;
  342. indirectHit = 150;
  343. indirectHitRange = 6;
  344. explosive = 0.2;
  345. caliber = 9;
  346. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  347. allowAgainstInfantry = 1;
  348. };
  349. class macro_new_ammo(ball_turret):TurboLaser_Laserx2//SW_SpeederBikeCanon_Ammo//Vwing_ammo
  350. {
  351. hit = 600;
  352. timeToLive = 5;
  353. indirectHit = 400;
  354. indirectHitRange = 1;
  355. explosive = 1;
  356. caliber = 6;
  357. ACE_caliber=0;
  358. tracerScale = 1;
  359. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  360. allowAgainstInfantry = 1;
  361. model = "\SWOP_Main\Effects\Tracer\Lasergreen";
  362. cost = 1;
  363. CraterEffects = "-";
  364. CraterWaterEffects = "ImpactEffectsWaterHE";
  365. ExplosionEffects ="SWOP_LaserExploSmallblue2";
  366. soundHit1[] = {"SWOP_Main\FlyBy\impactosheavy\impactosheavy1.ogg", 1.2, 1, 50};
  367. soundHit2[] = {"SWOP_Main\FlyBy\impactosheavy\impactosheavy2.ogg", 1.2, 1, 50};
  368. soundHit3[] = {"SWOP_Main\FlyBy\impactosheavy\impactosheavy3.ogg", 1.2, 1, 50};
  369. soundHit4[] = {"SWOP_Main\FlyBy\impactosheavy\impactosheavy4.ogg", 1.2, 1, 50};
  370. multiSoundHit[] = {"soundHit1", 0.25, "soundHit2", 0.25, "soundHit3", 0.25, "soundHit4", 0.25};
  371. };
  372. class Bo_Mk82;
  373. class macro_new_ammo(carpet_I_bomb): Bo_Mk82
  374. {
  375. model = "OPTRE_weapons\Aircraft\500lb_bomb_fly.p3d";
  376. hit = 10000;
  377. indirectHit = 10000;
  378. indirectHitRange = 30;
  379. caliber = 3;
  380. explosive = 1;
  381. timeToLive = 240;
  382. triggerTime=5;
  383. triggerOnImpact=true;
  384. //ExplosionEffects = "ProtonbombAmmoExplosionOrangeRD501";//"ProtonbombAmmoExplosionPurpleRD501";//"ProtonbombAmmoExplosionYellowRD501";//"ProtonbombAmmoExplosion";
  385. //explosionTime = 20;
  386. };
  387. };