config.cpp 24 KB

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