common_stuff_tcw.hpp 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. class EventHandlers : DefaultEventhandlers
  2. {
  3. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');_this execVM '\RD501_Vehicles\air\LAAT\fired_laser.sqf';";
  4. init = "[_this select 0] execVM 'RD501_Main\functions\autocrate\autocrate.sqf';";
  5. };
  6. #include "../../common/helicopter_mfd.hpp"
  7. scope=2;
  8. author="RD501";
  9. forceInGarage = 1;
  10. faction = macro_republic_faction
  11. editorSubcategory = macro_editor_cat_air(Republic_heli)
  12. vehicleClass = macro_editor_vehicle_type_air(Republic)
  13. weaponLockSystem = "2+4+8";
  14. RD501_magclamp_small_forbidden=1;
  15. RD501_magclamp_large_offset[]={0.0,1.6,-7.3};
  16. ///Flight model
  17. liftForceCoef = 2;
  18. bodyFrictionCoef = 15;//25.5;//0.6777;
  19. cyclicAsideForceCoef = 4*1.2;
  20. cyclicForwardForceCoef = 2*1.2;
  21. maxSpeed=200;
  22. fuelCapacity = 700;
  23. fuelConsumptionRate = 0.2;
  24. ///
  25. ///dmg properties
  26. armor=500;
  27. crewCrashProtection=0;
  28. epeImpulseDamageCoef=0;
  29. ///
  30. weapons[] = {
  31. macro_basic_air_weapons,
  32. macro_new_weapon(generic,republic_aircraft_cannon),
  33. macro_new_weapon(cannon,laat),
  34. macro_new_weapon(wynd,lgm),
  35. macro_new_weapon(wynd,a2a),
  36. macro_new_weapon(wynd,agm),
  37. "SmokeLauncher",
  38. };
  39. magazines[] = {
  40. macro_basic_air_mags,
  41. macro_new_mag(generic_aircraft_gun_green,1000),
  42. macro_new_mag(laat_cannon,100),
  43. macro_new_mag(a2a,4),
  44. macro_new_mag(agm,6),
  45. macro_new_mag(agm,6),
  46. macro_new_mag(lgm,4),
  47. "SmokeLauncherMag",
  48. "SmokeLauncherMag",
  49. "SmokeLauncherMag",
  50. "SmokeLauncherMag",
  51. };
  52. smokeLauncherGrenadeCount=48;
  53. smokeLauncherAngle=360;
  54. smokeLauncherVelocity=14;
  55. #include "../../common/common_pilotCamera.hpp"
  56. class ViewPilot: ViewPilot
  57. {
  58. initAngleX = 0;
  59. };
  60. class Components: Components
  61. {
  62. class SensorsManagerComponent
  63. {
  64. class Components
  65. {
  66. class IRSensorComponent: SensorTemplateIR
  67. {
  68. class AirTarget
  69. {
  70. minRange=500;
  71. maxRange=4000;
  72. objectDistanceLimitCoef=-1;
  73. viewDistanceLimitCoef=1;
  74. };
  75. class GroundTarget
  76. {
  77. minRange=500;
  78. maxRange=3500;
  79. objectDistanceLimitCoef=1;
  80. viewDistanceLimitCoef=1;
  81. };
  82. typeRecognitionDistance=7500;
  83. maxTrackableSpeed=600;
  84. angleRangeHorizontal=60;
  85. angleRangeVertical=40;
  86. animDirection="mainGun";
  87. aimDown=-0.5;
  88. };
  89. class ActiveRadarSensorComponent: SensorTemplateActiveRadar
  90. {
  91. class AirTarget
  92. {
  93. minRange=10000;
  94. maxRange=10000;
  95. objectDistanceLimitCoef=-1;
  96. viewDistanceLimitCoef=-1;
  97. };
  98. class GroundTarget
  99. {
  100. minRange=7000;
  101. maxRange=7000;
  102. objectDistanceLimitCoef=-1;
  103. viewDistanceLimitCoef=-1;
  104. };
  105. typeRecognitionDistance=16000;
  106. angleRangeHorizontal=360;
  107. angleRangeVertical=180;
  108. aimDown=0;
  109. maxTrackableSpeed=1388.89;
  110. };
  111. };
  112. };
  113. };
  114. //transport
  115. class TransportWeapons
  116. {
  117. class _transport_dc15a
  118. {
  119. weapon = macro_new_weapon(DC,15a)
  120. count = 5;
  121. };
  122. class _transport_dc15s
  123. {
  124. weapon = macro_new_weapon(DC,r15s)
  125. count = 5;
  126. };
  127. class _transport_dc15c
  128. {
  129. weapon = macro_new_weapon(DC,15c)
  130. count = 5;
  131. };
  132. class _transport_dc15l
  133. {
  134. weapon = macro_new_weapon(DC,15l)
  135. count = 2;
  136. };
  137. class _transport_z6
  138. {
  139. weapon = macro_new_weapon_nofam(rz6)
  140. count = 2;
  141. };
  142. class _transport_dc15gl
  143. {
  144. weapon = macro_new_weapon(DC,15cgl)
  145. count = 2;
  146. };
  147. class _transport_valken38x
  148. {
  149. weapon = macro_new_weapon_nofam(valken38x)
  150. count = 2;
  151. };
  152. class _transport_rps6
  153. {
  154. weapon = macro_new_weapon(launcher,rps6)
  155. count = 2;
  156. };
  157. class _transport_rps1
  158. {
  159. weapon = macro_new_weapon(launcher,rps1)
  160. count = 2;
  161. };
  162. class _transport_plx
  163. {
  164. weapon = macro_new_weapon(Launcher,PLX1)
  165. count = 1;
  166. };
  167. class _transport_z1000
  168. {
  169. weapon = macro_new_weapon_nofam(z1000)
  170. count = 1;
  171. };
  172. class _transport_dc15x
  173. {
  174. weapon = macro_new_weapon(DC,r15x)
  175. count = 1;
  176. };
  177. class _transport_rgl6
  178. {
  179. weapon = macro_new_weapon_nofam(rgl6)
  180. count = 1;
  181. };
  182. };
  183. class TransportMagazines
  184. {
  185. class transport_2mw30
  186. {
  187. magazine = macro_new_mag(2mw,30);
  188. count = 15;
  189. };
  190. class transport_5mw15
  191. {
  192. magazine = macro_new_mag(5mw,10);
  193. count = 15;
  194. };
  195. class transport_5mw60
  196. {
  197. magazine = macro_new_mag(5mw,60)
  198. count = 60;
  199. };
  200. class transport_10mw30
  201. {
  202. magazine = macro_new_mag(10mw,30);
  203. count = 60;
  204. };
  205. class transport_10mw400
  206. {
  207. magazine = macro_new_mag(10mw,400);
  208. count = 15;
  209. };
  210. class _transport_20mw20
  211. {
  212. magazine = macro_new_mag(20mw,20);
  213. count = 20;
  214. };
  215. class _transport_20mwup20
  216. {
  217. magazine = macro_new_mag(20mwup,20);
  218. count = 40;
  219. };
  220. class _transport_20mwdp20
  221. {
  222. magazine = macro_new_mag(20mwdp,20);
  223. count = 40;
  224. };
  225. class _transport_20mw240
  226. {
  227. magazine = macro_new_mag(20mw,240);
  228. count = 20;
  229. };
  230. class _transport_30mw10
  231. {
  232. magazine = macro_new_mag(30mw,10);
  233. count = 15;
  234. }
  235. class _transport_30mw7
  236. {
  237. magazine = macro_new_mag(30mw,7)
  238. count = 15;
  239. };
  240. class _transport_40mw5
  241. {
  242. magazine = macro_new_mag(40mw,5)
  243. count = 10;
  244. };
  245. class _transport_stun5
  246. {
  247. magazine = macro_new_mag(stun,5)
  248. count = 20;
  249. };
  250. class _transport_launcher_AT_mags
  251. {
  252. magazine = macro_new_mag(RPS_AT,1)
  253. count = 20;
  254. };
  255. class _transport_launcher_AA_mags
  256. {
  257. magazine = macro_new_mag(RPS_AA,1)
  258. count = 20;
  259. };
  260. class _transport_he3
  261. {
  262. magazine = macro_new_mag(UGL_HE,3);
  263. count = 15;
  264. };
  265. class _transport_ap2
  266. {
  267. magazine = macro_new_mag(UGL_AP,2);
  268. count = 15;
  269. };
  270. class _transport_emp1
  271. {
  272. magazine = macro_new_mag(UGL_EMP,1);
  273. count = 3;
  274. };
  275. class _transport_HuntIR_M203
  276. {
  277. magazine = "ACE_HuntIR_M203";
  278. count = 15;
  279. };
  280. class _transport_C12_Remote_Mag
  281. {
  282. magazine = "C12_Remote_Mag";
  283. count = 2;
  284. };
  285. };
  286. class TransportItems
  287. {
  288. class _xx_RD_SquadShield_Mag
  289. {
  290. name = macro_new_mag(squad_shield_sigma,1)
  291. count = 2;
  292. };
  293. class _xx_ACE_HuntIR_monitor
  294. {
  295. name = "ACE_HuntIR_monitor";
  296. count = 1;
  297. };
  298. };