config.cpp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  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. "3AS_LAAT"
  13. };
  14. requiredVersion=0.1;
  15. units[]={};
  16. weapons[]={
  17. };
  18. };
  19. };
  20. //scopes
  21. class CfgWeapons
  22. {
  23. };
  24. class CfgMagazineWells
  25. {
  26. class macro_new_magwell(generic_aircraft_laser)
  27. {
  28. macro_new_magwell(generic_aircraft_colors)[]=
  29. {
  30. macro_new_mag(generic_aircraft_gun,1000),
  31. macro_new_mag(generic_aircraft_gun_blue,1000),
  32. macro_new_mag(generic_aircraft_gun_green,1000),
  33. macro_new_mag(generic_aircraft_gun_purple,1000),
  34. macro_new_mag(generic_aircraft_gun_preatorian,1000)
  35. };
  36. };
  37. class macro_new_magwell(generic_aircraft_cannon)
  38. {
  39. macro_new_magwell(generic_aircraft_colors)[]=
  40. {
  41. macro_new_mag(generic_aircraft_cannon_red,1000),
  42. macro_new_mag(generic_aircraft_cannon_green,1000),
  43. macro_new_mag(generic_aircraft_cannon_blue,1000),
  44. macro_new_mag(generic_aircraft_cannon_plasma_red,1000),
  45. macro_new_mag(generic_aircraft_cannon_plasma_blue,1000),
  46. macro_new_mag(generic_aircraft_cannon_purple,1000)
  47. };
  48. };
  49. };
  50. class CfgMagazines
  51. {
  52. class 500Rnd_Cannon_30mm_Plane_CAS_02_F;
  53. //laser gun + kannon
  54. #include "_mags/aircraft_laser_gun.hpp"
  55. //laser cannon
  56. #include "_mags/aircraft_laser_cannon.hpp"
  57. class OPTRE_6Rnd_ASGM2_rockets;
  58. class macro_new_mag(MRLS_M80,2): OPTRE_6Rnd_ASGM2_rockets
  59. {
  60. count = 2;
  61. };
  62. class SWOP_e11_Mag;
  63. #include "_mags/super_mg.hpp"
  64. class 100Rnd_TXLaser_Cannon_mag;
  65. #include "_mags/tank_cannons.hpp"
  66. class og9_Laser_Cannon_mag;
  67. class macro_new_mag(homing_spider,10): og9_Laser_Cannon_mag
  68. {
  69. displayNameShort = "Blaster Cannon.";
  70. ammo = macro_new_ammo(homing_spider)
  71. count = 10;
  72. tracersEvery = 1;
  73. initSpeed =800;
  74. maxLeadSpeed = 30000;
  75. nameSound = "cannon";
  76. };
  77. #include "_mags/aa_gun.hpp"
  78. class 4Rnd_AAA_missiles;
  79. class 7Rnd_Rocket_04_AP_F;
  80. class magazine_Missile_rim116_x21;
  81. class magazine_Missile_rim162_x8;
  82. class PylonRack_12Rnd_PG_missiles;
  83. class 4Rnd_LG_Jian;
  84. #include "_mags/missiles.hpp"
  85. class 4Rnd_BombCluster_02_F;
  86. class PylonRack_Bomb_SDB_x4;
  87. class 2Rnd_GBU12_LGB;
  88. class macro_new_mag(cluster_bomb,4) : 4Rnd_BombCluster_02_F
  89. {
  90. ammo = macro_new_ammo(cluster_bomb)
  91. count = 4;
  92. DisplayName = "Thunderstorm CB";
  93. displayNameShort = "Thunderstorm CB";
  94. tracersEvery=1;
  95. };
  96. class macro_new_mag(cluster_bomb,2) : macro_new_mag(cluster_bomb,4)
  97. {
  98. count = 2;
  99. };
  100. class macro_new_mag(cluster_emp,2) : macro_new_mag(cluster_bomb,4)
  101. {
  102. ammo = macro_new_ammo(cluster_emp)
  103. DisplayName = "Lightning EMP CB";
  104. displayNameShort = "Lightning EMP CB";
  105. count = 2;
  106. };
  107. class macro_new_mag(sdb_bomb,4) : PylonRack_Bomb_SDB_x4
  108. {
  109. ammo = macro_new_ammo(sdb_bomb)
  110. count = 4;
  111. DisplayName = "Wrath PGB";
  112. displayNameShort = "Wrath PGB";
  113. tracersEvery=1;
  114. };
  115. class macro_new_mag(lgb_bomb,4) : 2Rnd_GBU12_LGB
  116. {
  117. ammo = macro_new_ammo(lgb_bomb)
  118. count = 4;
  119. DisplayName = "Ruinscape GB";
  120. displayNameShort = "Ruinscape GB";
  121. tracersEvery=1;
  122. };
  123. class 1000Rnd_Laser_Cannon_LAAT;
  124. class macro_new_mag(laat_cannon,100) : 1000Rnd_Laser_Cannon_LAAT
  125. {
  126. displayNameShort = "";
  127. ammo = macro_new_ammo(laat_cannon)
  128. count = 100;
  129. tracersEvery = 1;
  130. initSpeed = 2000;
  131. brightness = 100;
  132. magazineReloadTime=10;
  133. macro_no_muzzle_impulse
  134. };
  135. class macro_new_mag(laat_cannon_double,100): macro_new_mag(laat_cannon,100)
  136. {
  137. ammo = macro_new_ammo(laat_cannon_double);
  138. };
  139. class 500Rnd_Cannon_ARCback;
  140. class macro_new_mag(voltic,200):500Rnd_Cannon_ARCback
  141. {
  142. displayNameShort = "";
  143. ammo = macro_new_ammo(voltic)
  144. count = 200;
  145. tracersEvery = 1;
  146. initSpeed = 1036;
  147. maxLeadSpeed = 300;
  148. macro_no_muzzle_impulse
  149. };
  150. class Laser_Battery_F;
  151. class macro_new_mag(laat_ball_beam,300): Laser_Battery_F
  152. {
  153. displayName = "Laat Ball Turret Mag";
  154. displayNameShort = "Ball Turret Mag";
  155. count = 300;
  156. ammo = macro_new_ammo(ball_beam)
  157. };
  158. class 1000Rnd_Laser_Cannon_EWEBSWBF_REP;
  159. class macro_new_mag(laat_ball_turret,200): 1000Rnd_Laser_Cannon_EWEBSWBF_REP
  160. {
  161. displayName = "Laat Ball Turret Mag";
  162. displayNameShort = "Ball Turret Mag";
  163. ammo =macro_new_ammo(ball_turret)
  164. count = 300;
  165. tracersEvery = 1;
  166. initSpeed = 1036;
  167. maxLeadSpeed = 300;
  168. muzzleImpulseFactor = 0;
  169. scope = 1;
  170. };
  171. class 2Rnd_Bomb_03_F;
  172. class macro_new_mag(carpet_I_bomb_mag,20): 2Rnd_Bomb_03_F
  173. {
  174. dlc = "RD501";
  175. scope = 2;
  176. displayName = "20 Rnd Carpet I Bomb";
  177. displayNameShort = "20 Rnd Bomb";
  178. count = 20;
  179. ammo = macro_new_ammo(carpet_I_bomb);
  180. initSpeed = 0;
  181. maxLeadSpeed = 1000;
  182. };
  183. };
  184. #include "_common/sensor_templates.hpp"
  185. class CfgAmmo
  186. {
  187. class B_35mm_AA_Tracer_Red;
  188. class LaserAmmo_Minigun;
  189. class SWOP_DTL19_BlasterRifle_Ammo;
  190. class TurboLaser_Laserx2;
  191. class ATTE_Laser;
  192. class M_Air_AA;
  193. class Rocket_04_AP_F;
  194. class ammo_Missile_rim162;
  195. class M_PG_AT;
  196. class M_Jian_AT;
  197. class ammo_Missile_rim116;
  198. class TurboLaser_Laserx2;
  199. //laser gun + kannon
  200. #include "_ammo/aircraft_laser_gun.hpp"
  201. //laser cannon
  202. #include "_ammo/aircraft_laser_cannon.hpp"
  203. #include "_ammo/super_mg.hpp"
  204. #include "_ammo/tank_cannons.hpp"
  205. class macro_new_ammo(homing_spider): TurboLaser_Laserx2//og9_Laser
  206. {
  207. hit = 185;
  208. indirectHit = 75;
  209. indirectHitRange = 1;
  210. visibleFire = 32;
  211. audibleFire = 32;
  212. visibleFireTime = 6;
  213. explosionSoundEffect = "DefaultExplosion";
  214. effectFly = "og9_Laser_Effect";
  215. explosive = 0.5;
  216. airLock = 1;
  217. CraterEffects = "ExploAmmoLaserCrater";
  218. explosionEffects = "ExploAmmoLaserCannon";
  219. model = "\SpiderDroid\Laserog9";
  220. caliber = 20;
  221. };
  222. #include "_ammo/missiles.hpp"
  223. class BombCluster_02_Ammo_F;
  224. class ammo_Bomb_SDB;
  225. class Bo_GBU12_LGB;
  226. class macro_new_ammo(cluster_bomb) : BombCluster_02_Ammo_F
  227. {
  228. DisplayName = "Thunderstorm CB";
  229. displayNameShort = "Thunderstorm CB";
  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 = 650;
  242. indirectHit =325;
  243. indirectHitRange = 6;
  244. };
  245. class Mo_cluster_Bomb_02_F;
  246. class macro_new_ammo(cluster_emp_sub): Mo_cluster_Bomb_02_F
  247. {
  248. hit = 0.1;
  249. indirectHit = 0.01;
  250. indirectHitRange=40;
  251. JLTS_isEMPAmmo=1;
  252. explosionEffects="JLTS_fx_exp_EMP";
  253. SoundSetExplosion[]=
  254. {
  255. "JLTS_GrenadeEMP_Exp_SoundSet",
  256. "JLTS_GrenadeEMP_Tail_SoundSet",
  257. "Explosion_Debris_SoundSet"
  258. };
  259. class CamShakeExplode
  260. {
  261. distance=10;
  262. duration=1;
  263. frequency=20;
  264. power=0;
  265. };
  266. };
  267. class macro_new_ammo(cluster_emp) : BombCluster_02_Ammo_F
  268. {
  269. DisplayName = "Lightning EMP CB";
  270. displayNameShort = "Lightning EMP CB";
  271. muzzleEffect = "";
  272. tracerColor[] = {"blue"};
  273. brightness = 20000;
  274. lightColor[] = {0, 0, 1, 1};
  275. triggerTime = 0.1;
  276. hit = 50;
  277. indirectHitRange = 0;
  278. submunitionAmmo[]=
  279. {
  280. macro_new_ammo(cluster_emp_sub),
  281. 1.0
  282. };
  283. submunitionConeType[]=
  284. {
  285. "randomcenter",
  286. 45
  287. };
  288. };
  289. class macro_new_ammo(sdb_bomb) : ammo_Bomb_SDB
  290. {
  291. DisplayName = "Wrath PGB";
  292. displayNameShort = "Wrath PGB";
  293. // effectFly = "RD501_Effect_Violet";
  294. // effectsFire = "RD501_Effect_Violet";
  295. // effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  296. // effectsMissile = "RD501_FX_Missile_AA";
  297. muzzleEffect = "";
  298. //effectsSmoke = "RD501_Effect_Violet";
  299. tracerColor[] = {"blue"};
  300. brightness = 20000;
  301. lightColor[] = {0, 0, 1, 1};
  302. triggerTime = 0.1;
  303. ExplosionEffects = "ProtonbombAmmoExplosion";
  304. hit = 2000;
  305. indirectHit = 1000;
  306. indirectHitRange = 3;
  307. };
  308. class macro_new_ammo(lgb_bomb) : Bo_GBU12_LGB
  309. {
  310. DisplayName = "Ruin GBU";
  311. displayNameShort = "Ruin GBU";
  312. // effectFly = "RD501_Effect_Violet";
  313. // effectsFire = "RD501_Effect_Violet";
  314. // effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  315. // effectsMissile = "RD501_FX_Missile_AA";
  316. muzzleEffect = "";
  317. // effectsSmoke = "RD501_Effect_Violet";
  318. tracerColor[] = {"blue"};
  319. brightness = 20000;
  320. lightColor[] = {0, 0, 1, 1};
  321. triggerTime = 0.1;
  322. ExplosionEffects = "ProtonbombAmmoExplosion";
  323. hit = 650;
  324. indirectHit =650;
  325. indirectHitRange = 25;
  326. };
  327. class macro_new_ammo(laat_cannon): TurboLaser_Laserx2//TurboLaser_Laserx2//SW_SpeederBikeCanon_Ammo//swop_bywingCannonammo//LAAT_Laser
  328. {
  329. explosive = 0.5;
  330. hit = 1000;
  331. indirectHit =800;
  332. indirectHitRange = 6;
  333. caliber = 1;
  334. timeToLive=9;
  335. ACE_caliber=1;
  336. craterEffects = "ImpactEffectsMedium";
  337. explosionSoundEffect = "DefaultExplosion";
  338. ExplosionEffects = "ExploAmmoExplosion";
  339. model="a3\weapons_f\data\bullettracer\tracer_green";
  340. tracerScale = 10;
  341. effectFly = "SWOP_greenLaserEffect";
  342. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  343. allowAgainstInfantry = 1;
  344. cost = 1;
  345. soundSetBulletFly[] = {"SWOP_HEAVYBullet_FlyBy_SoundSet"};
  346. SoundSetExplosion[] = {"Mortar_Exp_SoundSet","Mortar_Tail_SoundSet","Explosion_Debris_SoundSet"};
  347. soundSetSonicCrack[] = {"bulletSonicCrack_SoundSet","bulletSonicCrackTail_SoundSet"};
  348. supersonicCrackFar[] = {"\ca\Weapons\Data\Sound\supersonic_crack_50meters.wss", 1, 50};
  349. supersonicCrackNear[] = {"\ca\Weapons\Data\Sound\supersonic_crack_close.wss", 1, 50};
  350. };
  351. class macro_new_ammo(laat_cannon_double): macro_new_ammo(laat_cannon)
  352. {
  353. model = "\TIE\tracer_green.p3d";
  354. tracerScale = 1;
  355. }
  356. class swop_bywingCannonammo;
  357. class macro_new_ammo(voltic):swop_bywingCannonammo
  358. {
  359. hit = 400;
  360. indirectHit = 150;
  361. indirectHitRange = 6;
  362. explosive = 0.2;
  363. caliber = 9;
  364. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  365. allowAgainstInfantry = 1;
  366. };
  367. class laserAmmo_F;
  368. class macro_new_ammo(ball_beam): laserAmmo_F
  369. {
  370. hit = 600;
  371. indirectHit = 400;
  372. indirectHitRange = 1;
  373. explosive = 1;
  374. caliber = 6;
  375. ACE_caliber = 0;
  376. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  377. allowAgainstInfantry = 1;
  378. };
  379. class macro_new_ammo(ball_turret):TurboLaser_Laserx2//SW_SpeederBikeCanon_Ammo//Vwing_ammo
  380. {
  381. hit = 600;
  382. timeToLive = 5;
  383. indirectHit = 400;
  384. indirectHitRange = 1;
  385. explosive = 1;
  386. caliber = 6;
  387. ACE_caliber = 0;
  388. tracerScale = 1;
  389. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  390. allowAgainstInfantry = 1;
  391. model = "\SWOP_Main\Effects\Tracer\Lasergreen";
  392. cost = 1;
  393. CraterEffects = "-";
  394. CraterWaterEffects = "ImpactEffectsWaterHE";
  395. ExplosionEffects ="SWOP_LaserExploSmallblue2";
  396. soundHit1[] = {"SWOP_Main\FlyBy\impactosheavy\impactosheavy1.ogg", 1.2, 1, 50};
  397. soundHit2[] = {"SWOP_Main\FlyBy\impactosheavy\impactosheavy2.ogg", 1.2, 1, 50};
  398. soundHit3[] = {"SWOP_Main\FlyBy\impactosheavy\impactosheavy3.ogg", 1.2, 1, 50};
  399. soundHit4[] = {"SWOP_Main\FlyBy\impactosheavy\impactosheavy4.ogg", 1.2, 1, 50};
  400. multiSoundHit[] = {"soundHit1", 0.25, "soundHit2", 0.25, "soundHit3", 0.25, "soundHit4", 0.25};
  401. };
  402. class Bo_Mk82;
  403. class macro_new_ammo(carpet_I_bomb): Bo_Mk82
  404. {
  405. model = "OPTRE_weapons\Aircraft\500lb_bomb_fly.p3d";
  406. hit = 10000;
  407. indirectHit = 10000;
  408. indirectHitRange = 30;
  409. caliber = 3;
  410. explosive = 1;
  411. timeToLive = 240;
  412. triggerTime=5;
  413. triggerOnImpact=true;
  414. //ExplosionEffects = "ProtonbombAmmoExplosionOrangeRD501";//"ProtonbombAmmoExplosionPurpleRD501";//"ProtonbombAmmoExplosionYellowRD501";//"ProtonbombAmmoExplosion";
  415. //explosionTime = 20;
  416. };
  417. };