1
0

config.cpp 24 KB

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