aircraft_laser_gun.hpp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. class macro_new_ammo(generic_aircraft_laser_gun_red) : B_35mm_AA_Tracer_Red
  2. {
  3. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  4. allowAgainstInfantry = 1;
  5. cmImmunity = 1;
  6. soundSetBulletFly[] = {"-"};
  7. soundSetSonicCrack[] = {"-"};
  8. airLock = 1;
  9. hit = 200;
  10. indirectHit = 0;
  11. indirectHitRange = 0;
  12. caliber = 1;
  13. explosive = 0;
  14. cost = 1;
  15. model = "\SWOP_Main\Effects\Tracer\laserred";
  16. tracerScale = 1;
  17. brightness = 100000;
  18. tracerColor[] = {"Red"};
  19. tracerStartTime = 0;
  20. tracerEndTime = 10;
  21. timetolive = 3;
  22. nvgOnly = 0;
  23. typicalSpeed = 125;
  24. coefGravity = 0;
  25. visibleFire = 32;
  26. audibleFire = 32;
  27. visibleFireTime = 4;
  28. dangerRadiusBulletClose = 16;
  29. dangerRadiusHit = 40;
  30. suppressionRadiusBulletClose = 10;
  31. suppressionRadiusHit = 14;
  32. craterEffects = "";
  33. craterShape = "";
  34. explosionEffects = "ExploAmmoLaserCannon";//ExplosionEffects = "SWOP_LaserExploSmall";
  35. effectFly = "SWOP_RedLaserEffect";
  36. airFriction = 0;
  37. muzzleEffect = "";
  38. deflecting = 0;
  39. initTime = 0;
  40. weaponLockSystem = 0;
  41. gravityFactor = 0;
  42. ACE_caliber=1;
  43. SoundSetExplosion[] = {"SWOP_HEAVYBullet_FlyBy_SoundSet"}; // SWOP_SC_blaster_SoundSet | SWOP_HEAVYBullet_FlyBy_SoundSet | CAA_SC_Bullet_FlyBy_SoundSet | SWOP_155mm_Shot_SoundSet
  44. class Components
  45. {
  46. class SensorsManagerComponent
  47. {
  48. class components
  49. {
  50. class IRSensorComponent: SensorTemplateIR
  51. {
  52. typeRecognitionDistance = 16000;
  53. angleRangeHorizontal = 360;
  54. angleRangeVertical = 360;
  55. groundNoiseDistanceCoef = -1;
  56. maxGroundNoiseDistance = 1600;
  57. minSpeedThreshold = 0;
  58. maxSpeedThreshold = 2000;
  59. class AirTarget
  60. {
  61. minRange = 0;
  62. maxRange = 16000;
  63. objectDistanceLimitCoef = -1;
  64. viewDistanceLimitCoef = -1;
  65. };
  66. class GroundTarget
  67. {
  68. minRange = 0;
  69. maxRange = 16000;
  70. objectDistanceLimitCoef = -1;
  71. viewDistanceLimitCoef = -1;
  72. };
  73. };
  74. class NVSensorComponent: SensorTemplateNV
  75. {
  76. typeRecognitionDistance = 16000;
  77. angleRangeHorizontal = 360;
  78. angleRangeVertical = 360;
  79. groundNoiseDistanceCoef = -1;
  80. maxGroundNoiseDistance = 1600;
  81. minSpeedThreshold = 0;
  82. maxSpeedThreshold = 2000;
  83. class AirTarget
  84. {
  85. minRange = 0;
  86. maxRange = 16000;
  87. objectDistanceLimitCoef = -1;
  88. viewDistanceLimitCoef = -1;
  89. };
  90. class GroundTarget
  91. {
  92. minRange = 0;
  93. maxRange = 16000;
  94. objectDistanceLimitCoef = -1;
  95. viewDistanceLimitCoef = -1;
  96. };
  97. };
  98. class LaserSensorComponent: SensorTemplateLaser
  99. {
  100. typeRecognitionDistance = 16000;
  101. angleRangeHorizontal = 360;
  102. angleRangeVertical = 360;
  103. groundNoiseDistanceCoef = -1;
  104. maxGroundNoiseDistance = 1600;
  105. minSpeedThreshold = 0;
  106. maxSpeedThreshold = 2000;
  107. class AirTarget
  108. {
  109. minRange = 0;
  110. maxRange = 16000;
  111. objectDistanceLimitCoef = -1;
  112. viewDistanceLimitCoef = -1;
  113. };
  114. class GroundTarget
  115. {
  116. minRange = 0;
  117. maxRange = 16000;
  118. objectDistanceLimitCoef = -1;
  119. viewDistanceLimitCoef = -1;
  120. };
  121. };
  122. class ActiveRadarSensorComponent: SensorTemplateActiveRadar
  123. {
  124. typeRecognitionDistance = 16000;
  125. angleRangeHorizontal = 360;
  126. angleRangeVertical = 360;
  127. groundNoiseDistanceCoef = -1;
  128. maxGroundNoiseDistance = 1600;
  129. minSpeedThreshold = 0;
  130. maxSpeedThreshold = 2000;
  131. class AirTarget
  132. {
  133. minRange = 0;
  134. maxRange = 16000;
  135. objectDistanceLimitCoef = -1;
  136. viewDistanceLimitCoef = -1;
  137. };
  138. class GroundTarget
  139. {
  140. minRange = 0;
  141. maxRange = 16000;
  142. objectDistanceLimitCoef = -1;
  143. viewDistanceLimitCoef = -1;
  144. };
  145. };
  146. class PassiveRadarSensorComponent: SensorTemplatePassiveRadar
  147. {
  148. typeRecognitionDistance = 16000;
  149. angleRangeHorizontal = 360;
  150. angleRangeVertical = 360;
  151. groundNoiseDistanceCoef = -1;
  152. maxGroundNoiseDistance = 1600;
  153. minSpeedThreshold = 0;
  154. maxSpeedThreshold = 2000;
  155. class AirTarget
  156. {
  157. minRange = 0;
  158. maxRange = 16000;
  159. objectDistanceLimitCoef = -1;
  160. viewDistanceLimitCoef = -1;
  161. };
  162. class GroundTarget
  163. {
  164. minRange = 0;
  165. maxRange = 16000;
  166. objectDistanceLimitCoef = -1;
  167. viewDistanceLimitCoef = -1;
  168. };
  169. };
  170. class VisualSensorComponent: SensorTemplateVisual
  171. {
  172. typeRecognitionDistance = 16000;
  173. angleRangeHorizontal = 360;
  174. angleRangeVertical = 360;
  175. groundNoiseDistanceCoef = -1;
  176. maxGroundNoiseDistance = 1600;
  177. minSpeedThreshold = 0;
  178. maxSpeedThreshold = 2000;
  179. class AirTarget
  180. {
  181. minRange = 0;
  182. maxRange = 16000;
  183. objectDistanceLimitCoef = -1;
  184. viewDistanceLimitCoef = -1;
  185. };
  186. class GroundTarget
  187. {
  188. minRange = 0;
  189. maxRange = 16000;
  190. objectDistanceLimitCoef = -1;
  191. viewDistanceLimitCoef = -1;
  192. };
  193. };
  194. class ManSensorComponent: SensorTemplateMan
  195. {
  196. typeRecognitionDistance = 16000;
  197. angleRangeHorizontal = 360;
  198. angleRangeVertical = 360;
  199. groundNoiseDistanceCoef = -1;
  200. maxGroundNoiseDistance = 1600;
  201. minSpeedThreshold = 0;
  202. maxSpeedThreshold = 2000;
  203. class AirTarget
  204. {
  205. minRange = 0;
  206. maxRange = 16000;
  207. objectDistanceLimitCoef = -1;
  208. viewDistanceLimitCoef = -1;
  209. };
  210. class GroundTarget
  211. {
  212. minRange = 0;
  213. maxRange = 16000;
  214. objectDistanceLimitCoef = -1;
  215. viewDistanceLimitCoef = -1;
  216. };
  217. };
  218. class DataLinkSensorComponent: SensorTemplateDataLink
  219. {
  220. typeRecognitionDistance = 16000;
  221. angleRangeHorizontal = 360;
  222. angleRangeVertical = 360;
  223. groundNoiseDistanceCoef = -1;
  224. maxGroundNoiseDistance = 1600;
  225. minSpeedThreshold = 0;
  226. maxSpeedThreshold = 2000;
  227. class AirTarget
  228. {
  229. minRange = 0;
  230. maxRange = 16000;
  231. objectDistanceLimitCoef = -1;
  232. viewDistanceLimitCoef = -1;
  233. };
  234. class GroundTarget
  235. {
  236. minRange = 0;
  237. maxRange = 16000;
  238. objectDistanceLimitCoef = -1;
  239. viewDistanceLimitCoef = -1;
  240. };
  241. };
  242. };
  243. };
  244. };
  245. };
  246. class macro_new_ammo(generic_aircraft_laser_gun_blue) : macro_new_ammo(generic_aircraft_laser_gun_red)
  247. {
  248. model = "\SWOP_Main\Effects\Tracer\laserblue";
  249. tracerColor[] = {"Blue"};
  250. muzzleEffect = "";
  251. effectFly = "SWOP_BlueLaserEffect";
  252. };
  253. class macro_new_ammo(generic_aircraft_laser_gun_green) : macro_new_ammo(generic_aircraft_laser_gun_red)
  254. {
  255. model = "\SWOP_Main\Effects\Tracer\LaserGreen";
  256. effectFly = "SWOP_greenLaserEffect";
  257. tracerColor[] = {"Green"};
  258. muzzleEffect = "";
  259. };
  260. class macro_new_ammo(generic_aircraft_laser_gun_purple) : macro_new_ammo(generic_aircraft_laser_gun_red)
  261. {
  262. model = "\GeonFighter\LaserGeon.p3d";
  263. effectFly = "SWOP_RedLaserEffect";
  264. tracerColor[] = {0.4,0,0.5,1};
  265. };
  266. class macro_new_ammo(generic_aircraft_laser_gun_praetorian): macro_new_ammo(generic_aircraft_laser_gun_purple)
  267. {
  268. hit = 75;
  269. caliber = 1;
  270. indirectHit = 0;
  271. indirectHitRange = 0;
  272. explosive = 0;
  273. };
  274. class macro_new_ammo(generic_kannon) : macro_new_ammo(generic_aircraft_laser_gun_red)
  275. {
  276. hit = 6000;
  277. indirectHit = 4000;
  278. indirectHitRange = 12;
  279. caliber = 6;
  280. explosive = 1;
  281. aiAmmoUsageFlags = "64 + 128 + 256 + 512";
  282. simulation = "shotShell";
  283. CraterEffects = "ATRocketCrater";
  284. effectsFire = "CannonFire";
  285. ExplosionEffects = "MortarExplosion";
  286. explosionSoundEffect = "DefaultExplosion";
  287. tracerScale = 10;
  288. soundSetBulletFly[] = {"SWOP_HEAVYBullet_FlyBy_SoundSet"};
  289. soundHit1[] = {"A3\Sounds_F\arsenal\weapons\Launchers\Titan\Explosion_titan_missile_01",2.51189,1,2000};
  290. soundHit2[] = {"A3\Sounds_F\arsenal\weapons\Launchers\Titan\Explosion_titan_missile_02",2.51189,1,2000};
  291. soundHit3[] = {"A3\Sounds_F\arsenal\weapons\Launchers\Titan\Explosion_titan_missile_03",2.51189,1,2000};
  292. SoundSetExplosion[] = {"Shell155mm_Exp_SoundSet","Shell155mm_Tail_SoundSet","Explosion_Debris_SoundSet"};
  293. soundSetSonicCrack[] = {"bulletSonicCrack_SoundSet","bulletSonicCrackTail_SoundSet"};
  294. supersonicCrackFar[] = {"A3\Sounds_F\weapons\Explosion\supersonic_crack_50meters",0.223872,1,150};
  295. supersonicCrackNear[] = {"A3\Sounds_F\weapons\Explosion\supersonic_crack_close",0.316228,1,50};
  296. };