config.cpp 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  1. #include "../../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class RD501_patch_vehicle_ammunition
  5. {
  6. author="RD501";
  7. addonRootClass= MACRO_QUOTE(RD501_patch_vehicle_weapons);
  8. requiredAddons[]={"3AS_VehicleWeapons"};
  9. requiredVersion=0.1;
  10. units[]={};
  11. weapons[]={};
  12. };
  13. };
  14. #include "../_common/sensor_templates.hpp"
  15. class CfgAmmo
  16. {
  17. class B_35mm_AA_Tracer_Red;
  18. class M_Air_AA;
  19. class Rocket_04_AP_F;
  20. class ammo_Missile_rim162;
  21. class M_PG_AT;
  22. class M_Jian_AT;
  23. class 3AS_ATT_redPlasma_AT;
  24. //#include "_ammo/missiles.hpp"
  25. class BombCluster_02_Ammo_F;
  26. class ammo_Bomb_SDB;
  27. class Bo_GBU12_LGB;
  28. class macro_new_ammo(cluster_bomb) : BombCluster_02_Ammo_F
  29. {
  30. DisplayName = "Thunderstorm CB";
  31. displayNameShort = "Thunderstorm CB";
  32. //effectFly = "RD501_Effect_Violet";
  33. //effectsFire = "RD501_Effect_Violet";
  34. //effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  35. //effectsMissile = "RD501_FX_Missile_AA";
  36. muzzleEffect = "";
  37. //effectsSmoke = "RD501_Effect_Violet";
  38. tracerColor[] = {"blue"};
  39. brightness = 20000;
  40. lightColor[] = {0, 0, 1, 1};
  41. triggerTime = 0.1;
  42. ExplosionEffects = "ProtonbombAmmoExplosion";
  43. hit = 650;
  44. indirectHit =325;
  45. indirectHitRange = 6;
  46. };
  47. class Mo_cluster_Bomb_02_F;
  48. class macro_new_ammo(cluster_emp_sub): Mo_cluster_Bomb_02_F
  49. {
  50. hit = 0.1;
  51. indirectHit = 0.01;
  52. indirectHitRange=40;
  53. JLTS_isEMPAmmo=1;
  54. explosionEffects="JLTS_fx_exp_EMP";
  55. SoundSetExplosion[]=
  56. {
  57. "JLTS_GrenadeEMP_Exp_SoundSet",
  58. "JLTS_GrenadeEMP_Tail_SoundSet",
  59. "Explosion_Debris_SoundSet"
  60. };
  61. class CamShakeExplode
  62. {
  63. distance=10;
  64. duration=1;
  65. frequency=20;
  66. power=0;
  67. };
  68. };
  69. class macro_new_ammo(cluster_emp) : BombCluster_02_Ammo_F
  70. {
  71. DisplayName = "Lightning EMP CB";
  72. displayNameShort = "Lightning EMP CB";
  73. muzzleEffect = "";
  74. tracerColor[] = {"blue"};
  75. brightness = 20000;
  76. lightColor[] = {0, 0, 1, 1};
  77. triggerTime = 0.1;
  78. hit = 50;
  79. indirectHitRange = 0;
  80. submunitionAmmo[]=
  81. {
  82. macro_new_ammo(cluster_emp_sub),
  83. 1.0
  84. };
  85. submunitionConeType[]=
  86. {
  87. "randomcenter",
  88. 45
  89. };
  90. };
  91. class macro_new_ammo(sdb_bomb) : ammo_Bomb_SDB
  92. {
  93. DisplayName = "Wrath PGB";
  94. displayNameShort = "Wrath PGB";
  95. // effectFly = "RD501_Effect_Violet";
  96. // effectsFire = "RD501_Effect_Violet";
  97. // effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  98. // effectsMissile = "RD501_FX_Missile_AA";
  99. muzzleEffect = "";
  100. //effectsSmoke = "RD501_Effect_Violet";
  101. tracerColor[] = {"blue"};
  102. brightness = 20000;
  103. lightColor[] = {0, 0, 1, 1};
  104. triggerTime = 0.1;
  105. ExplosionEffects = "ProtonbombAmmoExplosion";
  106. hit = 2000;
  107. indirectHit = 1000;
  108. indirectHitRange = 3;
  109. };
  110. class macro_new_ammo(lgb_bomb) : Bo_GBU12_LGB
  111. {
  112. DisplayName = "Ruin GBU";
  113. displayNameShort = "Ruin GBU";
  114. // effectFly = "RD501_Effect_Violet";
  115. // effectsFire = "RD501_Effect_Violet";
  116. // effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  117. // effectsMissile = "RD501_FX_Missile_AA";
  118. muzzleEffect = "";
  119. // effectsSmoke = "RD501_Effect_Violet";
  120. tracerColor[] = {"blue"};
  121. brightness = 20000;
  122. lightColor[] = {0, 0, 1, 1};
  123. triggerTime = 0.1;
  124. ExplosionEffects = "ProtonbombAmmoExplosion";
  125. hit = 650;
  126. indirectHit =650;
  127. indirectHitRange = 25;
  128. };
  129. class macro_new_ammo(laat_cannon): B_35mm_AA_Tracer_Red
  130. {
  131. explosive = 0.5;
  132. hit = 1000;
  133. indirectHit =800;
  134. indirectHitRange = 6;
  135. caliber = 1;
  136. timeToLive=9;
  137. ACE_caliber=1;
  138. craterEffects = "ImpactEffectsMedium";
  139. explosionSoundEffect = "DefaultExplosion";
  140. ExplosionEffects = "ExploAmmoExplosion";
  141. model="RD501_Vehicle_Weapons\_ammo\data\laser_big_green.p3d";
  142. tracerScale = 1;
  143. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  144. allowAgainstInfantry = 1;
  145. cost = 1;
  146. tracerStartTime=0;
  147. tracerEndTime=10;
  148. };
  149. class Gatling_30mm_HE_Plane_CAS_01_F;
  150. class macro_new_ammo(voltic):Gatling_30mm_HE_Plane_CAS_01_F
  151. {
  152. hit = 400;
  153. indirectHit = 150;
  154. indirectHitRange = 6;
  155. explosive = 0.2;
  156. caliber = 9;
  157. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  158. allowAgainstInfantry = 1;
  159. tracerScale=1;
  160. tracerStartTime=0;
  161. tracerEndTime=10;
  162. model="RD501_Vehicle_Weapons\_ammo\data\laser_medium_blue.p3d";
  163. };
  164. class laserAmmo_F;
  165. class macro_new_ammo(ball_beam): laserAmmo_F
  166. {
  167. hit = 600;
  168. indirectHit = 400;
  169. indirectHitRange = 1;
  170. explosive = 1;
  171. caliber = 6;
  172. ACE_caliber = 0;
  173. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  174. allowAgainstInfantry = 1;
  175. airLock=1;
  176. };
  177. class Bo_Mk82;
  178. class macro_new_ammo(carpet_I_bomb): Bo_Mk82
  179. {
  180. model = "OPTRE_weapons\Aircraft\500lb_bomb_fly.p3d";
  181. hit = 10000;
  182. indirectHit = 10000;
  183. indirectHitRange = 30;
  184. caliber = 3;
  185. explosive = 1;
  186. timeToLive = 240;
  187. triggerTime=5;
  188. triggerOnImpact=true;
  189. //ExplosionEffects = "ProtonbombAmmoExplosionOrangeRD501";//"ProtonbombAmmoExplosionPurpleRD501";//"ProtonbombAmmoExplosionYellowRD501";//"ProtonbombAmmoExplosion";
  190. //explosionTime = 20;
  191. };
  192. ///////////////////////////////////////////////////////////////////////////////////////
  193. ////////////////////////Aircraft Cannons///////////////////////////////////////////////
  194. ///////////////////////////////////////////////////////////////////////////////////////
  195. class macro_new_ammo(generic_aircraft_laser_gun_red) : B_35mm_AA_Tracer_Red
  196. {
  197. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  198. allowAgainstInfantry = 1;
  199. cmImmunity = 1;
  200. soundSetBulletFly[] = {"-"};
  201. soundSetSonicCrack[] = {"-"};
  202. airLock = 1;
  203. hit = 200;
  204. indirectHit = 0;
  205. indirectHitRange = 0;
  206. caliber = 1;
  207. explosive = 0;
  208. cost = 1;
  209. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_small_red.p3d";
  210. tracerScale = 1;
  211. brightness = 100000;
  212. tracerColor[] = {"Red"};
  213. tracerStartTime = 0;
  214. tracerEndTime = 10;
  215. timetolive = 3;
  216. nvgOnly = 0;
  217. typicalSpeed = 125;
  218. coefGravity = 0;
  219. visibleFire = 32;
  220. audibleFire = 32;
  221. visibleFireTime = 4;
  222. dangerRadiusBulletClose = 16;
  223. dangerRadiusHit = 40;
  224. suppressionRadiusBulletClose = 10;
  225. suppressionRadiusHit = 14;
  226. craterEffects = "";
  227. craterShape = "";
  228. explosionEffects = "ExploAmmoLaserCannon";
  229. airFriction = 0;
  230. muzzleEffect = "";
  231. deflecting = 0;
  232. initTime = 0;
  233. weaponLockSystem = 0;
  234. gravityFactor = 0;
  235. ACE_caliber=1;
  236. class Components
  237. {
  238. class SensorsManagerComponent
  239. {
  240. class components
  241. {
  242. class IRSensorComponent: SensorTemplateIR
  243. {
  244. typeRecognitionDistance = 16000;
  245. angleRangeHorizontal = 360;
  246. angleRangeVertical = 360;
  247. groundNoiseDistanceCoef = -1;
  248. maxGroundNoiseDistance = 1600;
  249. minSpeedThreshold = 0;
  250. maxSpeedThreshold = 2000;
  251. class AirTarget
  252. {
  253. minRange = 0;
  254. maxRange = 16000;
  255. objectDistanceLimitCoef = -1;
  256. viewDistanceLimitCoef = -1;
  257. };
  258. class GroundTarget
  259. {
  260. minRange = 0;
  261. maxRange = 16000;
  262. objectDistanceLimitCoef = -1;
  263. viewDistanceLimitCoef = -1;
  264. };
  265. };
  266. class NVSensorComponent: SensorTemplateNV
  267. {
  268. typeRecognitionDistance = 16000;
  269. angleRangeHorizontal = 360;
  270. angleRangeVertical = 360;
  271. groundNoiseDistanceCoef = -1;
  272. maxGroundNoiseDistance = 1600;
  273. minSpeedThreshold = 0;
  274. maxSpeedThreshold = 2000;
  275. class AirTarget
  276. {
  277. minRange = 0;
  278. maxRange = 16000;
  279. objectDistanceLimitCoef = -1;
  280. viewDistanceLimitCoef = -1;
  281. };
  282. class GroundTarget
  283. {
  284. minRange = 0;
  285. maxRange = 16000;
  286. objectDistanceLimitCoef = -1;
  287. viewDistanceLimitCoef = -1;
  288. };
  289. };
  290. class LaserSensorComponent: SensorTemplateLaser
  291. {
  292. typeRecognitionDistance = 16000;
  293. angleRangeHorizontal = 360;
  294. angleRangeVertical = 360;
  295. groundNoiseDistanceCoef = -1;
  296. maxGroundNoiseDistance = 1600;
  297. minSpeedThreshold = 0;
  298. maxSpeedThreshold = 2000;
  299. class AirTarget
  300. {
  301. minRange = 0;
  302. maxRange = 16000;
  303. objectDistanceLimitCoef = -1;
  304. viewDistanceLimitCoef = -1;
  305. };
  306. class GroundTarget
  307. {
  308. minRange = 0;
  309. maxRange = 16000;
  310. objectDistanceLimitCoef = -1;
  311. viewDistanceLimitCoef = -1;
  312. };
  313. };
  314. class ActiveRadarSensorComponent: SensorTemplateActiveRadar
  315. {
  316. typeRecognitionDistance = 16000;
  317. angleRangeHorizontal = 360;
  318. angleRangeVertical = 360;
  319. groundNoiseDistanceCoef = -1;
  320. maxGroundNoiseDistance = 1600;
  321. minSpeedThreshold = 0;
  322. maxSpeedThreshold = 2000;
  323. class AirTarget
  324. {
  325. minRange = 0;
  326. maxRange = 16000;
  327. objectDistanceLimitCoef = -1;
  328. viewDistanceLimitCoef = -1;
  329. };
  330. class GroundTarget
  331. {
  332. minRange = 0;
  333. maxRange = 16000;
  334. objectDistanceLimitCoef = -1;
  335. viewDistanceLimitCoef = -1;
  336. };
  337. };
  338. class PassiveRadarSensorComponent: SensorTemplatePassiveRadar
  339. {
  340. typeRecognitionDistance = 16000;
  341. angleRangeHorizontal = 360;
  342. angleRangeVertical = 360;
  343. groundNoiseDistanceCoef = -1;
  344. maxGroundNoiseDistance = 1600;
  345. minSpeedThreshold = 0;
  346. maxSpeedThreshold = 2000;
  347. class AirTarget
  348. {
  349. minRange = 0;
  350. maxRange = 16000;
  351. objectDistanceLimitCoef = -1;
  352. viewDistanceLimitCoef = -1;
  353. };
  354. class GroundTarget
  355. {
  356. minRange = 0;
  357. maxRange = 16000;
  358. objectDistanceLimitCoef = -1;
  359. viewDistanceLimitCoef = -1;
  360. };
  361. };
  362. class VisualSensorComponent: SensorTemplateVisual
  363. {
  364. typeRecognitionDistance = 16000;
  365. angleRangeHorizontal = 360;
  366. angleRangeVertical = 360;
  367. groundNoiseDistanceCoef = -1;
  368. maxGroundNoiseDistance = 1600;
  369. minSpeedThreshold = 0;
  370. maxSpeedThreshold = 2000;
  371. class AirTarget
  372. {
  373. minRange = 0;
  374. maxRange = 16000;
  375. objectDistanceLimitCoef = -1;
  376. viewDistanceLimitCoef = -1;
  377. };
  378. class GroundTarget
  379. {
  380. minRange = 0;
  381. maxRange = 16000;
  382. objectDistanceLimitCoef = -1;
  383. viewDistanceLimitCoef = -1;
  384. };
  385. };
  386. class ManSensorComponent: SensorTemplateMan
  387. {
  388. typeRecognitionDistance = 16000;
  389. angleRangeHorizontal = 360;
  390. angleRangeVertical = 360;
  391. groundNoiseDistanceCoef = -1;
  392. maxGroundNoiseDistance = 1600;
  393. minSpeedThreshold = 0;
  394. maxSpeedThreshold = 2000;
  395. class AirTarget
  396. {
  397. minRange = 0;
  398. maxRange = 16000;
  399. objectDistanceLimitCoef = -1;
  400. viewDistanceLimitCoef = -1;
  401. };
  402. class GroundTarget
  403. {
  404. minRange = 0;
  405. maxRange = 16000;
  406. objectDistanceLimitCoef = -1;
  407. viewDistanceLimitCoef = -1;
  408. };
  409. };
  410. class DataLinkSensorComponent: SensorTemplateDataLink
  411. {
  412. typeRecognitionDistance = 16000;
  413. angleRangeHorizontal = 360;
  414. angleRangeVertical = 360;
  415. groundNoiseDistanceCoef = -1;
  416. maxGroundNoiseDistance = 1600;
  417. minSpeedThreshold = 0;
  418. maxSpeedThreshold = 2000;
  419. class AirTarget
  420. {
  421. minRange = 0;
  422. maxRange = 16000;
  423. objectDistanceLimitCoef = -1;
  424. viewDistanceLimitCoef = -1;
  425. };
  426. class GroundTarget
  427. {
  428. minRange = 0;
  429. maxRange = 16000;
  430. objectDistanceLimitCoef = -1;
  431. viewDistanceLimitCoef = -1;
  432. };
  433. };
  434. };
  435. };
  436. };
  437. };
  438. class macro_new_ammo(generic_kannon) : macro_new_ammo(generic_aircraft_laser_gun_red)
  439. {
  440. hit = 6000;
  441. indirectHit = 4000;
  442. indirectHitRange = 12;
  443. caliber = 6;
  444. explosive = 1;
  445. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_big_blue.p3d";
  446. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  447. simulation = "shotShell";
  448. CraterEffects = "ATRocketCrater";
  449. effectsFire = "CannonFire";
  450. ExplosionEffects = "MortarExplosion";
  451. explosionSoundEffect = "DefaultExplosion";
  452. tracerScale = 1;
  453. tracerStartTime=0;
  454. tracerEndTime=10;
  455. soundHit1[] = {"A3\Sounds_F\arsenal\weapons\Launchers\Titan\Explosion_titan_missile_01",2.51189,1,2000};
  456. soundHit2[] = {"A3\Sounds_F\arsenal\weapons\Launchers\Titan\Explosion_titan_missile_02",2.51189,1,2000};
  457. soundHit3[] = {"A3\Sounds_F\arsenal\weapons\Launchers\Titan\Explosion_titan_missile_03",2.51189,1,2000};
  458. SoundSetExplosion[] = {"Shell155mm_Exp_SoundSet","Shell155mm_Tail_SoundSet","Explosion_Debris_SoundSet"};
  459. soundSetSonicCrack[] = {"bulletSonicCrack_SoundSet","bulletSonicCrackTail_SoundSet"};
  460. supersonicCrackFar[] = {"A3\Sounds_F\weapons\Explosion\supersonic_crack_50meters",0.223872,1,150};
  461. supersonicCrackNear[] = {"A3\Sounds_F\weapons\Explosion\supersonic_crack_close",0.316228,1,50};
  462. };
  463. /////////////////////////////////////////////////////////////////////////////////////////
  464. //////////////////////////////Aircraft Laser Guns////////////////////////////////////////
  465. /////////////////////////////////////////////////////////////////////////////////////////
  466. class macro_new_ammo(generic_aircraft_laser_cannon_purple) : macro_new_ammo(generic_aircraft_laser_gun_red)
  467. {
  468. hit = 400;
  469. indirectHit = 200;
  470. indirectHitRange = 0;
  471. caliber = 1;
  472. explosive = 0.6;
  473. };
  474. class macro_new_ammo(generic_aircraft_laser_cannon_plasma_red) : macro_new_ammo(generic_aircraft_laser_gun_red)
  475. {
  476. hit = 150;
  477. indirecthit = 20;
  478. indirecthitrange = 0;
  479. caliber = 1;
  480. explosive = 0.6;
  481. };
  482. class macro_new_ammo(generic_aircraft_laser_cannon_plasma_blue) : macro_new_ammo(generic_aircraft_laser_gun_red)
  483. {
  484. hit = 150;
  485. indirecthit = 20;
  486. indirecthitrange = 0;
  487. caliber = 1;
  488. explosive = 0.6;
  489. };
  490. class macro_new_ammo(generic_aircraft_laser_cannon_blue) : macro_new_ammo(generic_aircraft_laser_gun_red)
  491. {
  492. hit = 400;
  493. indirectHit = 200;
  494. indirectHitRange = 0;
  495. caliber = 1;
  496. explosive = 0.6;
  497. model="RD501_Vehicle_Weapons\_ammo\data\laser_small_blue.p3d";
  498. };
  499. class macro_new_ammo(generic_aircraft_laser_cannon_red) : macro_new_ammo(generic_aircraft_laser_gun_red)
  500. {
  501. hit = 400;
  502. indirectHit = 200;
  503. indirectHitRange = 0;
  504. caliber = 1;
  505. explosive = 0.6;
  506. model="RD501_Vehicle_Weapons\_ammo\data\laser_small_red.p3d";
  507. };
  508. class macro_new_ammo(generic_aircraft_laser_cannon_green) : macro_new_ammo(generic_aircraft_laser_gun_red)
  509. {
  510. hit = 400;
  511. indirectHit = 200;
  512. indirectHitRange = 0;
  513. caliber = 1;
  514. explosive = 0.6;
  515. model="RD501_Vehicle_Weapons\_ammo\data\laser_small_green.p3d";
  516. tracerScale=2;
  517. };
  518. class macro_new_ammo(generic_aircraft_laser_gun_praetorian) : macro_new_ammo(generic_aircraft_laser_gun_red)
  519. {
  520. hit = 100;
  521. caliber = 1;
  522. indirectHit = 0;
  523. indirectHitRange = 0;
  524. explosive = 0;
  525. allowAgainstInfantry = 0;
  526. model="RD501_Vehicle_Weapons\_ammo\data\laser_medium_purple.p3d";
  527. };
  528. class macro_new_ammo(generic_aircraft_laser_cannon_dual_green): macro_new_ammo(generic_aircraft_laser_gun_red)
  529. {
  530. hit = 400;
  531. indirectHit = 200;
  532. indirectHitRange = 0;
  533. caliber = 1;
  534. explosive = 0.6;
  535. dangerRadiusBulletClose = 16;
  536. dangerRadiusHit = 40;
  537. suppressionRadiusBulletClose = 10;
  538. suppressionRadiusHit = 14;
  539. craterEffects = "";
  540. craterShape = "";
  541. tracerScale=1;
  542. tracerStartTime=0;
  543. tracerEndTime=10;
  544. explosionEffects = "ExploAmmoLaserCannon";
  545. model="RD501_Vehicle_Weapons\_ammo\data\laser_small_green.p3d";
  546. };
  547. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  548. ////////////////////////////////////////////////Missiles///////////////////////////////////////////////////
  549. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  550. class macro_new_ammo(a2a) : M_Air_AA
  551. {
  552. displayName = "Zephyr A2A";
  553. displayNameShort = "Zephyr A2A";
  554. effectFly = "RD501_Effect_Violet";
  555. effectsFire = "RD501_Effect_Violet";
  556. effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  557. effectsMissile = "RD501_FX_Missile_AA_Violet";
  558. muzzleEffect = "";
  559. cmimmunity = 0.6;
  560. effectsSmoke = "RD501_Effect_Violet";
  561. tracerColor[] = {"blue"};
  562. brightness = 20000;
  563. lightColor[] = {0, 0, 1, 1};
  564. triggerTime = 0.1;
  565. hit = 620;
  566. indirectHit = 100;
  567. indirectHitRange = 3;
  568. cameraViewAvailable = 1;
  569. maneuvrability = 40;
  570. };
  571. class Missile_AGM_02_F;
  572. class macro_new_ammo(agm) : Missile_AGM_02_F//M_PG_AT
  573. {
  574. displayName = "Torrent AGM";
  575. displayNameShort = "Torrent AGM";
  576. effectFly = "RD501_Effect_Violet";
  577. effectsFire = "RD501_Effect_Violet";
  578. effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  579. effectsMissile = "RD501_FX_Missile_AA_Violet";
  580. muzzleEffect = "";
  581. effectsSmoke = "RD501_Effect_Violet";
  582. tracerColor[] = {"blue"};
  583. canLock = 2;
  584. weaponLockSystem = "1 + 2 + 4 + 8";
  585. brightness = 20000;
  586. lightColor[] = {0, 0, 1, 1};
  587. triggerTime = 0.1;
  588. hit = 2200;
  589. indirectHit = 620;
  590. indirectHitRange = 15;
  591. cameraViewAvailable = 1;
  592. irLock = 1;
  593. laserLock = 1;
  594. missileLockMinDistance = 1;
  595. missileLockMaxDistance = 10000;
  596. };
  597. class macro_new_ammo(ugm) : Rocket_04_AP_F
  598. {
  599. displayName = "Hurricane UGM";
  600. displayNameShort = "Hurricane UGM";
  601. effectFly = "RD501_Effect_Violet";
  602. effectsFire = "RD501_Effect_Violet";
  603. effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  604. effectsMissile = "RD501_FX_Missile_AA_Violet";
  605. muzzleEffect = "";
  606. effectsSmoke = "RD501_Effect_Violet";
  607. tracerColor[] = {"blue"};
  608. brightness = 20000;
  609. lightColor[] = {0, 0, 1, 1};
  610. triggerTime = 0.1;
  611. hit = 1020;
  612. indirectHit = 620;
  613. indirectHitRange = 15;
  614. cameraViewAvailable = 1;
  615. };
  616. class macro_new_ammo(spark) : Rocket_04_AP_F
  617. {
  618. displayName = "Spark UGM";
  619. displayNameShort = "Spark UGM";
  620. effectFly = "RD501_Effect_Violet";
  621. effectsFire = "RD501_Effect_Violet";
  622. effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  623. effectsMissile = "RD501_FX_Missile_AA_Violet";
  624. explosionEffects="JLTS_fx_exp_EMP";
  625. SoundSetExplosion[]=
  626. {
  627. "JLTS_GrenadeEMP_Exp_SoundSet",
  628. "JLTS_GrenadeEMP_Tail_SoundSet",
  629. "Explosion_Debris_SoundSet"
  630. };
  631. muzzleEffect = "";
  632. effectsSmoke = "RD501_Effect_Violet";
  633. tracerColor[] = {"blue"};
  634. brightness = 20000;
  635. lightColor[] = {0, 0, 1, 1};
  636. triggerTime = 0.1;
  637. hit = 0.1;
  638. indirectHit = 0.1;
  639. indirectHitRange = 70;
  640. cameraViewAvailable = 1;
  641. JLTS_isEMPAmmo=1;
  642. submunitionAmmo=MACRO_QUOTE(macro_new_ammo(spark_sub));
  643. };
  644. class ammo_Penetrator_Rocket_04_AP;
  645. class macro_new_ammo(spark_sub) :ammo_Penetrator_Rocket_04_AP
  646. {
  647. hit = 0.1;
  648. indirectHit = 0.1;
  649. indirectHitRange = 70;
  650. JLTS_isEMPAmmo=1;
  651. };
  652. class macro_new_ammo(lgm) : M_Jian_AT
  653. {
  654. displayName = "Flashfire WGM";
  655. displayNameShort = "Flashfire WGM";
  656. effectFly = "RD501_Effect_Violet";
  657. effectsFire = "RD501_Effect_Violet";
  658. effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  659. effectsMissile = "RD501_FX_Missile_AA";
  660. muzzleEffect = "";
  661. effectsSmoke = "RD501_Effect_Violet";
  662. soundfly[] = {"\rd501_vehicle_weapons\_sounds\proton_torp.ogg",3,1,800};
  663. tracerColor[] = {"blue"};
  664. brightness = 20000;
  665. lightColor[] = {0, 0, 1, 1};
  666. triggerTime = 0.1;
  667. thrustTime = 6;
  668. hit = 3000;
  669. indirectHit = 100;
  670. indirectHitRange = 5;
  671. cameraViewAvailable = 1;
  672. explosionTime = 13;
  673. timeToLive = 13;
  674. };
  675. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  676. ////////////////////////////////////////////////Tank Cannons///////////////////////////////////////////////
  677. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  678. class 3AS_GAT_redPlasma_AT;
  679. class macro_new_ammo(aat_mbt): 3AS_GAT_redPlasma_AT//GAT_Laser
  680. {
  681. hit = 450;
  682. indirectHit = 120;
  683. indirectHitRange = 10;
  684. explosive = 0.4;
  685. cost = 30;
  686. caliber = 20;
  687. typicalSpeed = 70;
  688. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  689. allowAgainstInfantry = 1;
  690. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_big_red.p3d";
  691. CraterEffects = "ATMissileCrater";
  692. explosionEffects = "IEDMineSmallExplosion";
  693. explosionSoundEffect="DefaultExplosion";
  694. tracerScale = 1;
  695. tracerStartTime = 0;
  696. tracerEndTime = 10;
  697. brightness = 100000;
  698. tracerColor[] = {0,0,1,0};
  699. timeToLive=10;
  700. soundContinuous=0;
  701. soundHit1[]=
  702. {
  703. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_01",
  704. 1.7782794,
  705. 1,
  706. 1800
  707. };
  708. soundHit2[]=
  709. {
  710. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_02",
  711. 1.7782794,
  712. 1,
  713. 1800
  714. };
  715. soundHit3[]=
  716. {
  717. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_03",
  718. 1.7782794,
  719. 1,
  720. 1800
  721. };
  722. soundHit4[]=
  723. {
  724. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_04",
  725. 1.7782794,
  726. 1,
  727. 1800
  728. };
  729. multiSoundHit[]=
  730. {
  731. "soundHit1",
  732. 0.25,
  733. "soundHit2",
  734. 0.25,
  735. "soundHit3",
  736. 0.25,
  737. "soundHit4",
  738. 0.25
  739. };
  740. };
  741. class macro_new_ammo(aat_king): 3AS_ATT_redPlasma_AT//AAT_ADSD_Laser
  742. {
  743. hit = 650;
  744. indirectHit = 130;
  745. indirectHitRange = 10;
  746. visibleFire = 42;
  747. audibleFire = 42;
  748. //initSpeed=1000;
  749. initSpeed=20;
  750. explosive = 0.1;
  751. cost = 22;
  752. craterEffects = "ImpactEffectsMedium";
  753. explosionSoundEffect = "DefaultExplosion";
  754. ExplosionEffects = "ExploAmmoExplosion";
  755. tracerScale=1;
  756. tracerStartTime = 0;
  757. tracerEndTime = 10;
  758. brightness = 100000;
  759. tracerColor[] = {1,0,0,0};
  760. airFriction = 0;
  761. muzzleEffect = "";
  762. caliber = 5;
  763. typicalSpeed = 70;
  764. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  765. allowAgainstInfantry = 1;
  766. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_big_red.p3d";
  767. timeToLive=10;
  768. soundHit1[]=
  769. {
  770. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_01",
  771. 1.7782794,
  772. 1,
  773. 1800
  774. };
  775. soundHit2[]=
  776. {
  777. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_02",
  778. 1.7782794,
  779. 1,
  780. 1800
  781. };
  782. soundHit3[]=
  783. {
  784. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_03",
  785. 1.7782794,
  786. 1,
  787. 1800
  788. };
  789. soundHit4[]=
  790. {
  791. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_04",
  792. 1.7782794,
  793. 1,
  794. 1800
  795. };
  796. multiSoundHit[]=
  797. {
  798. "soundHit1",
  799. 0.25,
  800. "soundHit2",
  801. 0.25,
  802. "soundHit3",
  803. 0.25,
  804. "soundHit4",
  805. 0.25
  806. };
  807. };
  808. class macro_new_ammo(mynock_mbt_ap): macro_new_ammo(aat_king)//AAT_Laser
  809. {
  810. displayname = "Compacted Durasteel AP Shell";
  811. warheadName = "Compacted Durasteel AP Shell";
  812. hit = 1000;
  813. indirectHit = 1000;
  814. indirectHitRange = 0.5;
  815. visibleFire = 42;
  816. audibleFire = 42;
  817. explosionSoundEffect = "DefaultExplosion";
  818. explosive = 0;
  819. cost = 22;
  820. CraterEffects = "ATMissileCrater";
  821. explosionEffects = "IEDMineSmallExplosion";
  822. model="RD501_Vehicle_Weapons\_ammo\data\laser_big_purple.p3d";
  823. tracerStartTime = 0;
  824. tracerEndTime = 10;
  825. airFriction = 0;
  826. muzzleEffect = "";
  827. caliber = 10;
  828. tracerScale = 10;
  829. typicalSpeed = 70;
  830. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  831. allowAgainstInfantry = 1;
  832. timeToLive=10;
  833. };
  834. class macro_new_ammo(mynock_mbt_he): macro_new_ammo(mynock_mbt_ap)
  835. {
  836. displayname = "Depleted Coaxium HE Shell";
  837. warheadName = "Depleted Coaxium HE Shell";
  838. hit = 650;
  839. indirectHit = 650;
  840. indirectHitRange = 12;
  841. visibleFire = 42;
  842. audibleFire = 42;
  843. explosionSoundEffect = "DefaultExplosion";
  844. explosive = 1;
  845. cost = 22;
  846. CraterEffects = "ATRocketCrater";
  847. ExplosionEffects = "MortarExplosion";
  848. tracerStartTime = 0;
  849. tracerEndTime = 10;
  850. airFriction = 0;
  851. muzzleEffect = "";
  852. tracerScale = 10;
  853. caliber = 10;
  854. typicalSpeed = 70;
  855. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  856. allowAgainstInfantry = 1;
  857. timeToLive=10;
  858. };
  859. };