config.cpp 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878
  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 = 75;
  526. caliber = 1;
  527. indirectHit = 0;
  528. indirectHitRange = 0;
  529. explosive = 0;
  530. model="RD501_Vehicle_Weapons\_ammo\data\laser_medium_purple.p3d"
  531. };
  532. class macro_new_ammo(generic_aircraft_laser_cannon_dual_green): macro_new_ammo(generic_aircraft_laser_gun_red)
  533. {
  534. hit = 400;
  535. indirectHit = 200;
  536. indirectHitRange = 0;
  537. caliber = 1;
  538. explosive = 0.6;
  539. dangerRadiusBulletClose = 16;
  540. dangerRadiusHit = 40;
  541. suppressionRadiusBulletClose = 10;
  542. suppressionRadiusHit = 14;
  543. craterEffects = "";
  544. craterShape = "";
  545. tracerScale=1;
  546. tracerStartTime=0;
  547. tracerEndTime=10;
  548. explosionEffects = "ExploAmmoLaserCannon";
  549. model="RD501_Vehicle_Weapons\_ammo\data\laser_small_green.p3d"
  550. };
  551. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  552. ////////////////////////////////////////////////Missiles///////////////////////////////////////////////////
  553. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  554. class macro_new_ammo(a2a) : M_Air_AA
  555. {
  556. displayName = "Zephyr A2A";
  557. displayNameShort = "Zephyr A2A";
  558. effectFly = "RD501_Effect_Violet";
  559. effectsFire = "RD501_Effect_Violet";
  560. effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  561. effectsMissile = "RD501_FX_Missile_AA_Violet";
  562. muzzleEffect = "";
  563. cmimmunity = 0.6;
  564. effectsSmoke = "RD501_Effect_Violet";
  565. tracerColor[] = {"blue"};
  566. brightness = 20000;
  567. lightColor[] = {0, 0, 1, 1};
  568. triggerTime = 0.1;
  569. hit = 620;
  570. indirectHit = 100;
  571. indirectHitRange = 3;
  572. cameraViewAvailable = 1;
  573. maneuvrability = 40;
  574. };
  575. class Missile_AGM_02_F;
  576. class macro_new_ammo(agm) : Missile_AGM_02_F//M_PG_AT
  577. {
  578. displayName = "Torrent AGM";
  579. displayNameShort = "Torrent AGM";
  580. effectFly = "RD501_Effect_Violet";
  581. effectsFire = "RD501_Effect_Violet";
  582. effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  583. effectsMissile = "RD501_FX_Missile_AA_Violet";
  584. muzzleEffect = "";
  585. effectsSmoke = "RD501_Effect_Violet";
  586. tracerColor[] = {"blue"};
  587. canLock = 2;
  588. weaponLockSystem = "1 + 2 + 4 + 8";
  589. brightness = 20000;
  590. lightColor[] = {0, 0, 1, 1};
  591. triggerTime = 0.1;
  592. hit = 2200;
  593. indirectHit = 620;
  594. indirectHitRange = 15;
  595. cameraViewAvailable = 1;
  596. irLock = 1;
  597. laserLock = 1;
  598. missileLockMinDistance = 1;
  599. missileLockMaxDistance = 10000;
  600. };
  601. class macro_new_ammo(ugm) : Rocket_04_AP_F
  602. {
  603. displayName = "Hurricane UGM";
  604. displayNameShort = "Hurricane UGM";
  605. effectFly = "RD501_Effect_Violet";
  606. effectsFire = "RD501_Effect_Violet";
  607. effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  608. effectsMissile = "RD501_FX_Missile_AA_Violet";
  609. muzzleEffect = "";
  610. effectsSmoke = "RD501_Effect_Violet";
  611. tracerColor[] = {"blue"};
  612. brightness = 20000;
  613. lightColor[] = {0, 0, 1, 1};
  614. triggerTime = 0.1;
  615. hit = 1020;
  616. indirectHit = 620;
  617. indirectHitRange = 15;
  618. cameraViewAvailable = 1;
  619. };
  620. class macro_new_ammo(spark) : Rocket_04_AP_F
  621. {
  622. displayName = "Spark UGM";
  623. displayNameShort = "Spark UGM";
  624. effectFly = "RD501_Effect_Violet";
  625. effectsFire = "RD501_Effect_Violet";
  626. effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  627. effectsMissile = "RD501_FX_Missile_AA_Violet";
  628. explosionEffects="JLTS_fx_exp_EMP";
  629. SoundSetExplosion[]=
  630. {
  631. "JLTS_GrenadeEMP_Exp_SoundSet",
  632. "JLTS_GrenadeEMP_Tail_SoundSet",
  633. "Explosion_Debris_SoundSet"
  634. };
  635. muzzleEffect = "";
  636. effectsSmoke = "RD501_Effect_Violet";
  637. tracerColor[] = {"blue"};
  638. brightness = 20000;
  639. lightColor[] = {0, 0, 1, 1};
  640. triggerTime = 0.1;
  641. hit = 0.1;
  642. indirectHit = 0.1;
  643. indirectHitRange = 70;
  644. cameraViewAvailable = 1;
  645. JLTS_isEMPAmmo=1;
  646. submunitionAmmo=macro_new_ammo(spark_sub)
  647. };
  648. class ammo_Penetrator_Rocket_04_AP;
  649. class macro_new_ammo(spark_sub) :ammo_Penetrator_Rocket_04_AP
  650. {
  651. hit = 0.1;
  652. indirectHit = 0.1;
  653. indirectHitRange = 70;
  654. JLTS_isEMPAmmo=1;
  655. }
  656. class macro_new_ammo(lgm) : M_Jian_AT
  657. {
  658. displayName = "Flashfire WGM";
  659. displayNameShort = "Flashfire WGM";
  660. effectFly = "RD501_Effect_Violet";
  661. effectsFire = "RD501_Effect_Violet";
  662. effectsMissileInit = "RD501_laat_PylonBackEffectsFFAR";
  663. effectsMissile = "RD501_FX_Missile_AA";
  664. muzzleEffect = "";
  665. effectsSmoke = "RD501_Effect_Violet";
  666. soundfly[] = {"\rd501_vehicle_weapons\_sounds\proton_torp.ogg",3,1,800};
  667. tracerColor[] = {"blue"};
  668. brightness = 20000;
  669. lightColor[] = {0, 0, 1, 1};
  670. triggerTime = 0.1;
  671. thrustTime = 6;
  672. hit = 3000;
  673. indirectHit = 100;
  674. indirectHitRange = 5;
  675. cameraViewAvailable = 1;
  676. explosionTime = 13;
  677. timeToLive = 13;
  678. };
  679. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  680. ////////////////////////////////////////////////Tank Cannons///////////////////////////////////////////////
  681. ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  682. class 3AS_GAT_redPlasma_AT;
  683. class macro_new_ammo(aat_mbt): 3AS_GAT_redPlasma_AT//GAT_Laser
  684. {
  685. hit = 450;
  686. indirectHit = 120;
  687. indirectHitRange = 10;
  688. explosive = 0.4;
  689. cost = 30;
  690. caliber = 20;
  691. typicalSpeed = 70;
  692. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  693. allowAgainstInfantry = 1;
  694. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_big_red.p3d";
  695. CraterEffects = "ATMissileCrater";
  696. explosionEffects = "IEDMineSmallExplosion";
  697. explosionSoundEffect="DefaultExplosion";
  698. tracerScale = 1;
  699. tracerStartTime = 0;
  700. tracerEndTime = 10;
  701. brightness = 100000;
  702. tracerColor[] = {0,0,1,0};
  703. timeToLive=10;
  704. soundContinuous=0;
  705. soundHit1[]=
  706. {
  707. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_01",
  708. 1.7782794,
  709. 1,
  710. 1800
  711. };
  712. soundHit2[]=
  713. {
  714. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_02",
  715. 1.7782794,
  716. 1,
  717. 1800
  718. };
  719. soundHit3[]=
  720. {
  721. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_03",
  722. 1.7782794,
  723. 1,
  724. 1800
  725. };
  726. soundHit4[]=
  727. {
  728. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_04",
  729. 1.7782794,
  730. 1,
  731. 1800
  732. };
  733. multiSoundHit[]=
  734. {
  735. "soundHit1",
  736. 0.25,
  737. "soundHit2",
  738. 0.25,
  739. "soundHit3",
  740. 0.25,
  741. "soundHit4",
  742. 0.25
  743. };
  744. };
  745. class macro_new_ammo(aat_king): 3AS_ATT_redPlasma_AT//AAT_ADSD_Laser
  746. {
  747. hit = 650;
  748. indirectHit = 130;
  749. indirectHitRange = 10;
  750. visibleFire = 42;
  751. audibleFire = 42;
  752. //initSpeed=1000;
  753. initSpeed=20;
  754. explosive = 0.1;
  755. cost = 22;
  756. craterEffects = "ImpactEffectsMedium";
  757. explosionSoundEffect = "DefaultExplosion";
  758. ExplosionEffects = "ExploAmmoExplosion";
  759. tracerScale=1;
  760. tracerStartTime = 0;
  761. tracerEndTime = 10;
  762. brightness = 100000;
  763. tracerColor[] = {1,0,0,0};
  764. airFriction = 0;
  765. muzzleEffect = "";
  766. caliber = 5;
  767. typicalSpeed = 70;
  768. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  769. allowAgainstInfantry = 1;
  770. model = "\RD501_Vehicle_Weapons\_ammo\data\laser_big_red.p3d";
  771. timeToLive=10;
  772. soundHit1[]=
  773. {
  774. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_01",
  775. 1.7782794,
  776. 1,
  777. 1800
  778. };
  779. soundHit2[]=
  780. {
  781. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_02",
  782. 1.7782794,
  783. 1,
  784. 1800
  785. };
  786. soundHit3[]=
  787. {
  788. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_03",
  789. 1.7782794,
  790. 1,
  791. 1800
  792. };
  793. soundHit4[]=
  794. {
  795. "A3\Sounds_F\arsenal\explosives\shells\Tank_shell_explosion_04",
  796. 1.7782794,
  797. 1,
  798. 1800
  799. };
  800. multiSoundHit[]=
  801. {
  802. "soundHit1",
  803. 0.25,
  804. "soundHit2",
  805. 0.25,
  806. "soundHit3",
  807. 0.25,
  808. "soundHit4",
  809. 0.25
  810. };
  811. };
  812. class macro_new_ammo(mynock_mbt_ap): macro_new_ammo(aat_king)//AAT_Laser
  813. {
  814. displayname = "Compacted Durasteel AP Shell"
  815. warheadName = "Compacted Durasteel AP Shell"
  816. hit = 1000;
  817. indirectHit = 1000;
  818. indirectHitRange = 0.5;
  819. visibleFire = 42;
  820. audibleFire = 42;
  821. explosionSoundEffect = "DefaultExplosion";
  822. explosive = 0;
  823. cost = 22;
  824. CraterEffects = "ATMissileCrater";
  825. explosionEffects = "IEDMineSmallExplosion";
  826. model="RD501_Vehicle_Weapons\_ammo\data\laser_big_purple.p3d";
  827. tracerStartTime = 0;
  828. tracerEndTime = 10;
  829. airFriction = 0;
  830. muzzleEffect = "";
  831. caliber = 10;
  832. tracerScale = 10;
  833. typicalSpeed = 70;
  834. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  835. allowAgainstInfantry = 1;
  836. timeToLive=10;
  837. };
  838. class macro_new_ammo(mynock_mbt_he): macro_new_ammo(mynock_mbt_ap)
  839. {
  840. displayname = "Depleted Coaxium HE Shell"
  841. warheadName = "Depleted Coaxium HE Shell"
  842. hit = 650;
  843. indirectHit = 650;
  844. indirectHitRange = 12;
  845. visibleFire = 42;
  846. audibleFire = 42;
  847. explosionSoundEffect = "DefaultExplosion";
  848. explosive = 1;
  849. cost = 22;
  850. CraterEffects = "ATRocketCrater";
  851. ExplosionEffects = "MortarExplosion";
  852. tracerStartTime = 0;
  853. tracerEndTime = 10;
  854. airFriction = 0;
  855. muzzleEffect = "";
  856. tracerScale = 10;
  857. caliber = 10;
  858. typicalSpeed = 70;
  859. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  860. allowAgainstInfantry = 1;
  861. timeToLive=10;
  862. };
  863. };