config.cpp 27 KB

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