common_stuff_tcw.hpp 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  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. class ACE_SelfActions: ACE_SelfActions
  8. {
  9. class ACE_Passengers
  10. {
  11. condition = "alive _target";
  12. displayName = "Passengers";
  13. insertChildren = "_this call ace_interaction_fnc_addPassengersActions";
  14. statement = "";
  15. };
  16. #include "../../common/universal_hud_color_changer.hpp"
  17. };
  18. scope=2;
  19. author="RD501";
  20. forceInGarage = 1;
  21. faction = macro_republic_faction
  22. editorSubcategory = macro_editor_cat_air(Republic_heli)
  23. vehicleClass = macro_editor_vehicle_type_air(Republic)
  24. weaponLockSystem = "2+4+8";
  25. RD501_magclamp_small_forbidden=1;
  26. RD501_magclamp_large_offset[]={0.0,1.6,-7.3};
  27. ///Flight model
  28. liftForceCoef = 2;
  29. bodyFrictionCoef = 15;//25.5;//0.6777;
  30. cyclicAsideForceCoef = 4*1.2;
  31. cyclicForwardForceCoef = 2*1.2;
  32. maxSpeed=200;
  33. fuelCapacity = 2800;
  34. fuelConsumptionRate = 0.8;
  35. ///
  36. ///dmg properties
  37. armor=500;
  38. crewCrashProtection=0;
  39. epeImpulseDamageCoef=0;
  40. ///
  41. weapons[] = {
  42. macro_basic_air_weapons,
  43. macro_new_weapon(generic,republic_aircraft_cannon),
  44. macro_new_weapon(cannon,laat),
  45. macro_new_weapon(wynd,lgm),
  46. macro_new_weapon(wynd,a2a),
  47. macro_new_weapon(wynd,agm),
  48. "SmokeLauncher",
  49. };
  50. magazines[] = {
  51. macro_basic_air_mags,
  52. macro_new_mag(generic_aircraft_gun_green,1000),
  53. macro_new_mag(laat_cannon,100),
  54. macro_new_mag(a2a,4),
  55. macro_new_mag(agm,6),
  56. macro_new_mag(agm,6),
  57. macro_new_mag(lgm,4),
  58. "SmokeLauncherMag",
  59. "SmokeLauncherMag",
  60. "SmokeLauncherMag",
  61. "SmokeLauncherMag",
  62. };
  63. smokeLauncherGrenadeCount=48;
  64. smokeLauncherAngle=360;
  65. smokeLauncherVelocity=14;
  66. #include "../../common/common_pilotCamera.hpp"
  67. class ViewPilot: ViewPilot
  68. {
  69. initAngleX = 0;
  70. };
  71. class Components: Components
  72. {
  73. class SensorsManagerComponent
  74. {
  75. class Components
  76. {
  77. class IRSensorComponent: SensorTemplateIR
  78. {
  79. class AirTarget
  80. {
  81. minRange=500;
  82. maxRange=4000;
  83. objectDistanceLimitCoef=-1;
  84. viewDistanceLimitCoef=1;
  85. };
  86. class GroundTarget
  87. {
  88. minRange=500;
  89. maxRange=3500;
  90. objectDistanceLimitCoef=1;
  91. viewDistanceLimitCoef=1;
  92. };
  93. typeRecognitionDistance=7500;
  94. maxTrackableSpeed=600;
  95. angleRangeHorizontal=60;
  96. angleRangeVertical=40;
  97. animDirection="mainGun";
  98. aimDown=-0.5;
  99. };
  100. class ActiveRadarSensorComponent: SensorTemplateActiveRadar
  101. {
  102. class AirTarget
  103. {
  104. minRange=10000;
  105. maxRange=10000;
  106. objectDistanceLimitCoef=-1;
  107. viewDistanceLimitCoef=-1;
  108. };
  109. class GroundTarget
  110. {
  111. minRange=7000;
  112. maxRange=7000;
  113. objectDistanceLimitCoef=-1;
  114. viewDistanceLimitCoef=-1;
  115. };
  116. typeRecognitionDistance=16000;
  117. angleRangeHorizontal=360;
  118. angleRangeVertical=180;
  119. aimDown=0;
  120. maxTrackableSpeed=1388.89;
  121. };
  122. };
  123. };
  124. };
  125. //transport
  126. class TransportWeapons
  127. {
  128. class _transport_dc15a
  129. {
  130. weapon = macro_new_weapon(DC,15a)
  131. count = 5;
  132. };
  133. class _transport_dc15s
  134. {
  135. weapon = macro_new_weapon(DC,r15s)
  136. count = 5;
  137. };
  138. class _transport_dc15c
  139. {
  140. weapon = macro_new_weapon(DC,15c)
  141. count = 5;
  142. };
  143. class _transport_dc15l
  144. {
  145. weapon = macro_new_weapon(DC,15l)
  146. count = 2;
  147. };
  148. class _transport_z6
  149. {
  150. weapon = macro_new_weapon_nofam(rz6)
  151. count = 2;
  152. };
  153. class _transport_dc15gl
  154. {
  155. weapon = macro_new_weapon(DC,15cgl)
  156. count = 2;
  157. };
  158. class _transport_valken38x
  159. {
  160. weapon = macro_new_weapon_nofam(valken38x)
  161. count = 2;
  162. };
  163. class _transport_rps6
  164. {
  165. weapon = macro_new_weapon(launcher,rps6)
  166. count = 2;
  167. };
  168. class _transport_rps1
  169. {
  170. weapon = macro_new_weapon(launcher,rps1)
  171. count = 2;
  172. };
  173. class _transport_rps4
  174. {
  175. weapon = macro_new_weapon(launcher,RPS4)
  176. count = 2;
  177. };
  178. class _transport_plx
  179. {
  180. weapon = macro_new_weapon(Launcher,PLX1)
  181. count = 1;
  182. };
  183. class _transport_z1000
  184. {
  185. weapon = macro_new_weapon_nofam(z1000)
  186. count = 1;
  187. };
  188. class _transport_dc15x
  189. {
  190. weapon = macro_new_weapon(DC,r15x)
  191. count = 1;
  192. };
  193. class _transport_rgl6
  194. {
  195. weapon = macro_new_weapon_nofam(rgl6)
  196. count = 1;
  197. };
  198. };
  199. class TransportMagazines
  200. {
  201. class transport_2mw30
  202. {
  203. magazine = macro_new_mag(2mw,30);
  204. count = 15;
  205. };
  206. class transport_5mw15
  207. {
  208. magazine = macro_new_mag(5mw,10);
  209. count = 15;
  210. };
  211. class transport_5mw60
  212. {
  213. magazine = macro_new_mag(5mw,60)
  214. count = 60;
  215. };
  216. class transport_10mw30
  217. {
  218. magazine = macro_new_mag(10mw,30);
  219. count = 60;
  220. };
  221. class transport_10mw400
  222. {
  223. magazine = macro_new_mag(10mw,400);
  224. count = 15;
  225. };
  226. class _transport_20mw20
  227. {
  228. magazine = macro_new_mag(20mw,20);
  229. count = 20;
  230. };
  231. class _transport_20mwup20
  232. {
  233. magazine = macro_new_mag(20mwup,20);
  234. count = 40;
  235. };
  236. class _transport_20mwdp20
  237. {
  238. magazine = macro_new_mag(20mwdp,20);
  239. count = 40;
  240. };
  241. class _transport_20mw240
  242. {
  243. magazine = macro_new_mag(20mw,240);
  244. count = 20;
  245. };
  246. class _transport_30mw10
  247. {
  248. magazine = macro_new_mag(30mw,10);
  249. count = 15;
  250. }
  251. class _transport_30mw7
  252. {
  253. magazine = macro_new_mag(30mw,7)
  254. count = 15;
  255. };
  256. class _transport_40mw5
  257. {
  258. magazine = macro_new_mag(40mw,5)
  259. count = 10;
  260. };
  261. class _transport_stun5
  262. {
  263. magazine = macro_new_mag(stun,5)
  264. count = 20;
  265. };
  266. class _transport_launcher_AT_mags
  267. {
  268. magazine = macro_new_mag(RPS_AT,1)
  269. count = 20;
  270. };
  271. class _transport_launcher_AA_mags
  272. {
  273. magazine = macro_new_mag(RPS_AA,1)
  274. count = 20;
  275. };
  276. class _transport_launcher_RPS4AT_mags
  277. {
  278. magazine = macro_new_mag(rps4heat,1)
  279. count = 20;
  280. };
  281. class _transport_launcher_ARPS4HE_mags
  282. {
  283. magazine = macro_new_mag(rps4he,1)
  284. count = 20;
  285. };
  286. class _transport_launcher_PLXAT_mags
  287. {
  288. magazine = "JLTS_PLX1_AT_mag"
  289. count = 10;
  290. };
  291. class _transport_launcher_PLXAP_mags
  292. {
  293. magazine = "JLTS_PLX1_AP_mag"
  294. count = 10;
  295. };
  296. class _transport_he3
  297. {
  298. magazine = macro_new_mag(UGL_HE,3);
  299. count = 15;
  300. };
  301. class _transport_ap2
  302. {
  303. magazine = macro_new_mag(UGL_AP,2);
  304. count = 15;
  305. };
  306. class _transport_emp1
  307. {
  308. magazine = macro_new_mag(UGL_EMP,1);
  309. count = 3;
  310. };
  311. class _transport_HuntIR_M203
  312. {
  313. magazine = "ACE_HuntIR_M203";
  314. count = 15;
  315. };
  316. class _transport_C12_Remote_Mag
  317. {
  318. magazine = "C12_Remote_Mag";
  319. count = 2;
  320. };
  321. class _transport_RGLHE
  322. {
  323. magazine = macro_new_mag(UGL_HE,6)
  324. count = 10;
  325. };
  326. class _transport_RGLAP
  327. {
  328. magazine = macro_new_mag(UGL_AP,6)
  329. count = 10;
  330. };
  331. class _transport_RGPEMP
  332. {
  333. magazine = macro_new_mag(UGL_EMP,6)
  334. count = 5;
  335. };
  336. class _transport_ShotgunSP
  337. {
  338. magazine = macro_new_mag(shotgun_scatter,6)
  339. count = 20;
  340. };
  341. class _transport_ShotgunUO
  342. {
  343. magazine = macro_new_mag(shotgun_HE,6)
  344. count = 20;
  345. };
  346. class _transport_ShotgunEMP
  347. {
  348. magazine = macro_new_mag(shotgun_EMP,2)
  349. count = 10;
  350. };
  351. class _transport_StaticEweb
  352. {
  353. magazine = macro_new_mag(eweb,1000)
  354. count = 10;
  355. };
  356. class _transport_StaticStriker
  357. {
  358. magazine = macro_new_mag(ragl40he,40)
  359. count = 10;
  360. };
  361. class _transport_StaticBoomer
  362. {
  363. magazine = macro_new_mag(aap,4)
  364. count = 10;
  365. };
  366. class _transport_StaticDriver
  367. {
  368. magazine = macro_new_mag(mar,1)
  369. count = 10;
  370. };
  371. };
  372. class TransportItems
  373. {
  374. class _xx_RD_SquadShield_Mag
  375. {
  376. name = macro_new_mag(squad_shield_sigma,1)
  377. count = 2;
  378. };
  379. class _xx_ACE_HuntIR_monitor
  380. {
  381. name = "ACE_HuntIR_monitor";
  382. count = 1;
  383. };
  384. class _xx_ACE_tourniquet
  385. {
  386. name = "ACE_tourniquet";
  387. count = 15;
  388. };
  389. class _xx_ACE_splint
  390. {
  391. name = "ACE_splint";
  392. count = 15;
  393. };
  394. class _xx_ACE_plasmaIV_250
  395. {
  396. name = "ACE_plasmaIV_250";
  397. count = 15;
  398. };
  399. class _xx_ACE_plasmaIV_500
  400. {
  401. name = "ACE_plasmaIV_500";
  402. count = 15;
  403. };
  404. class _xx_ACE_plasmaIV
  405. {
  406. name = "ACE_plasmaIV";
  407. count = 15;
  408. };
  409. class _xx_ACE_elasticBandage
  410. {
  411. name = "ACE_elasticBandage";
  412. count = 80;
  413. };
  414. class _xx_ACE_quikclot
  415. {
  416. name = "ACE_quikclot";
  417. count = 80;
  418. };
  419. class _xx_ACE_packingBandage
  420. {
  421. name = "ACE_packingBandage";
  422. count = 80;
  423. };
  424. class _xx_ACE_morphine
  425. {
  426. name = "ACE_morphine";
  427. count = 30;
  428. };
  429. class _xx_ACE_painkiller
  430. {
  431. name = "RD501_Painkiller";
  432. count = 30;
  433. };
  434. class _xx_ACE_epinephrine
  435. {
  436. name = "ACE_epinephrine";
  437. count = 20;
  438. };
  439. class _xx_SmokeShellPurple
  440. {
  441. name = "SmokeShellPurple";
  442. count = 5;
  443. };
  444. };