config.cpp 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173
  1. //Get this addons macro
  2. //get the macro for the air subaddon
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon Y_Wing
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_y_wing_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(Y_Wing)
  13. {
  14. addonRootClass=macro_patch_name(vehicles)
  15. requiredAddons[]=
  16. {
  17. macro_patch_name(vehicles)
  18. };
  19. requiredVersion=0.1;
  20. units[]=
  21. {
  22. macro_new_vehicle(Y_wing,MkII),
  23. macro_new_vehicle(Y_wing,Rebels_MkII),
  24. macro_new_vehicle(LAAT,vtol)
  25. };
  26. weapons[]=
  27. {
  28. };
  29. };
  30. };
  31. #include "../../common/sensor_templates.hpp"
  32. class CBA_Extended_EventHandlers_base;
  33. class CfgVehicles
  34. {
  35. class Plane_Base_F;
  36. class swop_ywing_base: Plane_Base_F
  37. {
  38. class Turrets;
  39. };
  40. class swop_ywclones: swop_ywing_base
  41. {
  42. class Turrets:Turrets
  43. {
  44. class MainTurret;
  45. };
  46. class AnimationSources;
  47. class ViewCargo;
  48. class NewTurret;
  49. class ACE_SelfActions;
  50. };
  51. class macro_new_vehicle(Y_wing,MkII):swop_ywclones
  52. {
  53. side=1;
  54. scope=2;
  55. displayName = "Y-Wing";
  56. forceInGarage = 1;
  57. armor=300;
  58. faction = macro_republic_faction
  59. editorSubcategory = macro_editor_cat_air(Republic_vtol)
  60. vehicleClass = macro_editor_vehicle_type_air(Republic)
  61. class UserActions
  62. {
  63. class fRepulsorBrake
  64. {
  65. condition = "";
  66. displayName = "";
  67. displayNameDefault = "";
  68. hideonuse = 1;
  69. onlyForPlayer = 0;
  70. position = "";
  71. priority = 1e+011;
  72. radius = ;
  73. shortcut = "";
  74. statement = """";
  75. textToolTip = "";
  76. userActionID = ;
  77. };
  78. #include "../../common/universal_dmg_report.hpp"
  79. };
  80. class EventHandlers
  81. {
  82. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  83. init = "[_this select 0] execVM '\ywing\initturbine.sqf';";
  84. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  85. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  86. };
  87. #include "common.hpp"
  88. class Sounds;
  89. class SoundsExt;
  90. class pilotCamera
  91. {
  92. class OpticsIn
  93. {
  94. class Wide
  95. {
  96. opticsDisplayName="WFOV";
  97. initAngleX=0;
  98. minAngleX=-10;
  99. maxAngleX=90;
  100. initAngleY=0;
  101. minAngleY=-90;
  102. maxAngleY=90;
  103. initFov=0.425;//"(30 / 120)";
  104. minFov=0.425;//"(30 / 120)";
  105. maxFov=0.425;//"(30 / 120)";
  106. directionStabilized=1;
  107. thermalMode[] = {0,1,2,3,4,5};
  108. visionMode[]=
  109. {
  110. "Normal",
  111. "NVG",
  112. "Ti"
  113. };
  114. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_wide_F.p3d";
  115. opticsPPEffects[]=
  116. {
  117. "OpticsCHAbera2",
  118. "OpticsBlur2"
  119. };
  120. };
  121. class zoomx4: Wide
  122. {
  123. opticsDisplayName="NFOV";
  124. initFov="(0.425/4)";//"(3.75 / 120)";
  125. minFov="(0.425/4)";//"(3.75 / 120)";
  126. maxFov="(0.425/4)";//"(3.75 / 120)";
  127. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  128. };
  129. class zoomX8: Wide
  130. {
  131. opticsDisplayName="NFOV";
  132. initFov="(0.42/8)";//"(.375 / 120)";
  133. minFov="(0.42/8)";//"(.375 / 120)";
  134. maxFov="(0.42/8)";//"(.375 / 120)";
  135. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  136. };
  137. class zoomX20: Wide
  138. {
  139. opticsDisplayName="NFOV";
  140. initFov="(0.42/20)";//"(.375 / 120)";
  141. minFov="(0.42/20)";//"(.375 / 120)";
  142. maxFov="(0.42/20)";//"(.375 / 120)";
  143. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  144. };
  145. class zoomX50: Wide
  146. {
  147. opticsDisplayName="NFOV";
  148. initFov="(0.42/50)";//"(.375 / 120)";
  149. minFov="(0.42/50)";//"(.375 / 120)";
  150. maxFov="(0.42/50)";//"(.375 / 120)";
  151. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  152. };
  153. class zoomX70: Wide
  154. {
  155. opticsDisplayName="NFOV";
  156. initFov="(0.42/70)";//"(.375 / 120)";
  157. minFov="(0.42/70)";//"(.375 / 120)";
  158. maxFov="(0.42/70)";//"(.375 / 120)";
  159. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  160. };
  161. showMiniMapInOptics=1;
  162. showUAVViewInOptics=0;
  163. showSlingLoadManagerInOptics=1;
  164. };
  165. minTurn=-180;
  166. maxTurn=180;
  167. initTurn=0;
  168. minElev=-10;
  169. maxElev=90;
  170. initElev=-10;
  171. maxXRotSpeed=0.30000001;
  172. maxYRotSpeed=0.30000001;
  173. pilotOpticsShowCursor=1;
  174. controllable=1;
  175. };
  176. weapons[] = {
  177. macro_basic_air_weapons,
  178. macro_new_weapon(voltic,y_wing),
  179. macro_new_weapon(wynd,agm),
  180. macro_new_weapon(wynd,lgm),
  181. macro_new_weapon(bomb,SDB),
  182. macro_new_weapon(bomb,LGB),
  183. macro_new_weapon(bomb,cluster),
  184. macro_new_weapon(bomb,carpet_I)
  185. };
  186. magazines[] = {
  187. macro_basic_air_mags,
  188. macro_new_mag(voltic,200),
  189. macro_new_mag(voltic,200),
  190. macro_new_mag(voltic,200),
  191. macro_new_mag(voltic,200),
  192. macro_new_mag(voltic,200),
  193. macro_new_mag(agm,6),
  194. macro_new_mag(agm,6),
  195. macro_new_mag(agm,6),
  196. macro_new_mag(agm,6),
  197. macro_new_mag(agm,6),
  198. macro_new_mag(lgm,4),
  199. macro_new_mag(lgm,4),
  200. macro_new_mag(lgm,4),
  201. macro_new_mag(carpet_I_bomb_mag,20),
  202. macro_new_mag(carpet_I_bomb_mag,20),
  203. macro_new_mag(cluster_bomb,4),
  204. macro_new_mag(cluster_bomb,4),
  205. macro_new_mag(cluster_bomb,4),
  206. macro_new_mag(sdb_bomb,4),
  207. macro_new_mag(sdb_bomb,4),
  208. macro_new_mag(sdb_bomb,4),
  209. macro_new_mag(lgb_bomb,4),
  210. macro_new_mag(lgb_bomb,4),
  211. macro_new_mag(lgb_bomb,4)
  212. };
  213. };
  214. // class VTOL_02_infantry_base_F;
  215. // class VTOL_02_infantry_dynamicLoadout_base_F:VTOL_02_infantry_base_F
  216. // {
  217. // class Turrets;
  218. // class HitPoints;
  219. // };
  220. // class O_T_VTOL_02_infantry_dynamicLoadout_F:VTOL_02_infantry_dynamicLoadout_base_F
  221. // {
  222. // class Turrets: Turrets
  223. // {
  224. // class GunnerTurret;
  225. // class MainTurret;
  226. // class CargoTurret;
  227. // class CopilotTurret;
  228. // //class CargoTurret_01;
  229. // };
  230. // class HitPoints:HitPoints
  231. // {
  232. // class HitHull;
  233. // class HitFuel;
  234. // class HitHRotor;
  235. // class HitVRotor;
  236. // };
  237. // class AnimationSources;
  238. // };
  239. class macro_new_vehicle(LAAT,vtol): macro_new_vehicle(Y_wing,MkII)
  240. {
  241. displayName="VTOL LAAT Mk.II";
  242. gearsUpFrictionCoef=0;
  243. model="\LAAT\LAAT.p3d";
  244. hiddenSelections[] = {"camo1","camo2"};
  245. hiddenSelectionsTextures[]=
  246. {
  247. "RD501_Laat\textures\laat\Laat501stcxx\Laat501stBodyCXX_lightning.paa",
  248. "RD501_Laat\textures\laat\Laat501stcxx\Laat501stWingCXX.paa"
  249. };
  250. forceInGarage=1;
  251. availableForSupportTypes[] = {};
  252. memoryPointGun[] = {"cannon1"};
  253. gunBeg[] = {"cannon1"};
  254. gunEnd[] = {"konec hlavne1"};
  255. memoryPointLRocket = "RocketL";
  256. memoryPointRRocket = "RocketR";
  257. memoryPointLMissile = "RocketL";
  258. memoryPointRMissile = "RocketR";
  259. weapons[] = {
  260. macro_basic_air_weapons,
  261. macro_new_weapon(generic,republic_aircraft_cannon),
  262. macro_new_weapon(wynd,a2a),
  263. macro_new_weapon(wynd,agm),
  264. macro_new_weapon(wynd,ugm)
  265. };
  266. magazines[] = {
  267. macro_new_mag(generic_aircraft_cannon_green,1000),
  268. macro_new_mag(a2a,4),
  269. macro_new_mag(agm,6),
  270. macro_new_mag(ugm,10),
  271. macro_basic_air_mags
  272. };
  273. armor=550;
  274. class Sounds: Sounds
  275. {
  276. class EngineExt
  277. {
  278. sound[]=
  279. {
  280. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  281. 1.25893,
  282. 1,
  283. 400
  284. };
  285. frequency="rotorSpeed";
  286. volume="camPos*((rotorSpeed-0.72)*4)";
  287. };
  288. class RotorExt
  289. {
  290. sound[]=
  291. {
  292. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  293. 1,
  294. 1,
  295. 4000
  296. };
  297. frequency="rotorSpeed * (1-rotorThrust/5)";
  298. volume="camPos*(0 max (rotorSpeed-0.1))*(1 + rotorThrust)";
  299. cone[]={1.6,3.1400001,1.6,0.94999999};
  300. };
  301. class RotorNoiseExt
  302. {
  303. sound[]=
  304. {
  305. "",
  306. "db0",
  307. 1,
  308. 400
  309. };
  310. frequency=1;
  311. volume="(camPos*(rotorThrust factor [0.6, 1]))";
  312. cone[]={0.69999999,1.3,1,0};
  313. };
  314. class EngineInt
  315. {
  316. sound[]=
  317. {
  318. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  319. 0.30000001,
  320. 1
  321. };
  322. frequency="rotorSpeed";
  323. volume="2 * (1-camPos)*(rotorSpeed factor[0.4,1])";
  324. };
  325. class RotorInt
  326. {
  327. sound[]=
  328. {
  329. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  330. 0.30000001,
  331. 1
  332. };
  333. frequency="rotorSpeed * (1-rotorThrust/5)";
  334. volume="(1-camPos) * (rotorSpeed factor[0.3, 1]) * (1 + rotorThrust)";
  335. };
  336. };
  337. class SoundsExt: SoundsExt
  338. {
  339. class Sounds: Sounds
  340. {
  341. class EngineExt
  342. {
  343. sound[]=
  344. {
  345. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  346. 1.25893,
  347. 1,
  348. 400
  349. };
  350. frequency="rotorSpeed";
  351. volume="camPos*((rotorSpeed-0.72)*4)";
  352. };
  353. class RotorExt
  354. {
  355. sound[]=
  356. {
  357. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  358. 1,
  359. 1,
  360. 4000
  361. };
  362. frequency="rotorSpeed * (1-rotorThrust/5)";
  363. volume="camPos*(0 max (rotorSpeed-0.1))*(1 + rotorThrust)";
  364. cone[]={1.6,3.1400001,1.6,0.94999999};
  365. };
  366. class RotorNoiseExt
  367. {
  368. sound[]=
  369. {
  370. "",
  371. "db0",
  372. 1,
  373. 400
  374. };
  375. frequency=1;
  376. volume="(camPos*(rotorThrust factor [0.6, 1]))";
  377. cone[]={0.69999999,1.3,1,0};
  378. };
  379. class EngineInt
  380. {
  381. sound[]=
  382. {
  383. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  384. 0.30000001,
  385. 1
  386. };
  387. frequency="rotorSpeed";
  388. volume="2 * (1-camPos)*(rotorSpeed factor[0.4,1])";
  389. };
  390. class RotorInt
  391. {
  392. sound[]=
  393. {
  394. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  395. 0.30000001,
  396. 1
  397. };
  398. frequency="rotorSpeed * (1-rotorThrust/5)";
  399. volume="(1-camPos) * (rotorSpeed factor[0.3, 1]) * (1 + rotorThrust)";
  400. };
  401. };
  402. };
  403. class Turrets: Turrets
  404. {
  405. class CopilotTurret: MainTurret
  406. {
  407. class ViewGunner
  408. {
  409. visionMode[]=
  410. {
  411. "Normal",
  412. "NVG"
  413. };
  414. gunnerOpticsEffect[]={};
  415. stabilizedInAxes=0;
  416. directionStabilized=0;
  417. horizontallyStabilized=0;
  418. initFov=1;
  419. minFov=0.60000002;
  420. maxFov=0.85000002;
  421. initAngleX=-10;
  422. minAngleX=-35;
  423. maxAngleX=85;
  424. initAngleY=0;
  425. minAngleY=-130;
  426. maxAngleY=130;
  427. minMoveX=-0.1;
  428. maxMoveX=0.1;
  429. minMoveY=-0.025;
  430. maxMoveY=0.1;
  431. minMoveZ=-0.1;
  432. maxMoveZ=0.1;
  433. gunnerOpticsModel="";
  434. };
  435. visionMode[]=
  436. {
  437. "Normal",
  438. "NVG",
  439. "Ti"
  440. };
  441. class Reflectors
  442. {
  443. class cabin
  444. {
  445. color[]={830,100,100};
  446. ambient[]={5,0,0};
  447. class Attenuation
  448. {
  449. start=0;
  450. constant=0;
  451. linear=1;
  452. quadratic=50;
  453. hardLimitStart=1;
  454. hardLimitEnd=1.5;
  455. };
  456. intensity=9;
  457. size=1;
  458. innerAngle=90;
  459. outerAngle=165;
  460. coneFadeCoef=1;
  461. position="cabin_light";
  462. direction="cabin_light_dir";
  463. hitpoint="cabin_light";
  464. selection="cabin_light";
  465. useFlare=1;
  466. flareSize=1;
  467. flareMaxDistance=5;
  468. dayLight=1;
  469. blinking=0;
  470. };
  471. class cabin2
  472. {
  473. color[]={830,100,100};
  474. ambient[]={5,0,0};
  475. class Attenuation
  476. {
  477. start=0;
  478. constant=0;
  479. linear=1;
  480. quadratic=50;
  481. hardLimitStart=1;
  482. hardLimitEnd=1.5;
  483. };
  484. intensity=9;
  485. size=1;
  486. innerAngle=90;
  487. outerAngle=165;
  488. coneFadeCoef=1;
  489. position="cabin_light2";
  490. direction="cabin_light2_dir";
  491. hitpoint="cabin_light2";
  492. selection="cabin_light2";
  493. useFlare=1;
  494. flareSize=1;
  495. flareMaxDistance=5;
  496. dayLight=1;
  497. blinking=0;
  498. };
  499. class cargo_light_1: cabin
  500. {
  501. color[]={830,100,100};
  502. class Attenuation
  503. {
  504. start=0;
  505. constant=0;
  506. linear=1;
  507. quadratic=70;
  508. hardLimitStart=2;
  509. hardLimitEnd=2.5;
  510. };
  511. position="cargo_light_1";
  512. direction="cargo_light_1_dir";
  513. hitpoint="cargo_light_1";
  514. selection="cargo_light_1";
  515. intensity=21;
  516. useFlare=0;
  517. coneFadeCoef=0.1;
  518. };
  519. class cargo_light_2: cargo_light_1
  520. {
  521. position="cargo_light_2";
  522. direction="cargo_light_2_dir";
  523. hitpoint="cargo_light_2";
  524. selection="cargo_light_2";
  525. };
  526. };
  527. discreteDistance[]={100,200,300,400,500,600,700,800,1000,1200,1500,1800,2100,2400};
  528. magazines[]=
  529. {
  530. "Laserbatteries",
  531. "1000Rnd_Laser_Cannon_LAAT",
  532. "1000Rnd_Laser_Cannon_LAAT"
  533. };
  534. weapons[]=
  535. {
  536. "Laserdesignator_mounted",
  537. "Cannon_LAAT"
  538. };
  539. class Viewoptics
  540. {
  541. visionMode[]=
  542. {
  543. "Normal",
  544. "NVG",
  545. "Ti"
  546. };
  547. minAngleX=0;
  548. maxAngleX=0;
  549. initAngleX=0;
  550. minAngleY=-15;
  551. maxAngleY=15;
  552. initAngleY=0;
  553. initFov=0.75;
  554. minFov=0.25;
  555. maxFov=0.75;
  556. };
  557. class OpticsIn
  558. {
  559. class Wide
  560. {
  561. visionMode[]=
  562. {
  563. "Normal",
  564. "NVG",
  565. "Ti"
  566. };
  567. thermalMode[]={0,1};
  568. initAngleX=0;
  569. minAngleX=0;
  570. maxAngleX=0;
  571. initAngleY=0;
  572. minAngleY=-15;
  573. maxAngleY=15;
  574. initFov=0.46599999;
  575. minFov=0.46599999;
  576. maxFov=0.46599999;
  577. opticsDisplayName="W";
  578. gunnerOpticsModel="\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_wide_F";
  579. };
  580. class Medium: Wide
  581. {
  582. initFov=0.093000002;
  583. minFov=0.093000002;
  584. maxFov=0.093000002;
  585. opticsDisplayName="M";
  586. gunnerOpticsModel="\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_medium_F";
  587. };
  588. class Narrow: Wide
  589. {
  590. initFov=0.028999999;
  591. minFov=0.028999999;
  592. maxFov=0.028999999;
  593. opticsDisplayName="N";
  594. gunnerOpticsModel="\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_narrow_F";
  595. };
  596. };
  597. class OpticsOut
  598. {
  599. class Monocular
  600. {
  601. visionMode[]=
  602. {
  603. "Normal",
  604. "NVG"
  605. };
  606. gunnerOpticsEffect[]={};
  607. initAngleX=-10;
  608. minAngleX=-30;
  609. maxAngleX=30;
  610. initAngleY=0;
  611. minAngleY=-100;
  612. maxAngleY=100;
  613. minFov=0.25;
  614. maxFov=1.25;
  615. initFov=0.75;
  616. gunnerOpticsModel="";
  617. };
  618. };
  619. class Components
  620. {
  621. class VehicleSystemsDisplayManagerComponentLeft: DefaultVehicleSystemsDisplayManagerLeft
  622. {
  623. class Components: components
  624. {
  625. class VehiclePrimaryGunnerDisplay
  626. {
  627. componentType="TransportFeedDisplayComponent";
  628. source="PrimaryGunner";
  629. };
  630. class VehicleMissileDisplay
  631. {
  632. componentType="TransportFeedDisplayComponent";
  633. source="Missile";
  634. };
  635. class SensorDisplay
  636. {
  637. range[]={4000,2000,16000,8000};
  638. componentType="SensorsDisplayComponent";
  639. resource="RscCustomInfoSensors";
  640. };
  641. };
  642. };
  643. class VehicleSystemsDisplayManagerComponentRight: DefaultVehicleSystemsDisplayManagerRight
  644. {
  645. class Components: components
  646. {
  647. class VehiclePrimaryGunnerDisplay
  648. {
  649. componentType="TransportFeedDisplayComponent";
  650. source="PrimaryGunner";
  651. };
  652. class VehicleMissileDisplay
  653. {
  654. componentType="TransportFeedDisplayComponent";
  655. source="Missile";
  656. };
  657. class SensorDisplay
  658. {
  659. range[]={4000,2000,16000,8000};
  660. componentType="SensorsDisplayComponent";
  661. resource="RscCustomInfoSensors";
  662. };
  663. };
  664. defaultDisplay="SensorDisplay";
  665. };
  666. };
  667. soundServo[]=
  668. {
  669. "",
  670. 0.0099999998,
  671. 1
  672. };
  673. gunnerOpticsEffect[]=
  674. {
  675. "TankCommanderOptics1",
  676. "BWTV"
  677. };
  678. primaryObserver=0;
  679. primaryGunner=1;
  680. primary=1;
  681. usePip=1;
  682. turretFollowFreeLook=0;
  683. gunnerCompartments="Compartment2";
  684. body="mainTurret";
  685. gun="mainGun";
  686. gunBeg="Usti hlavne";
  687. gunEnd="konec hlavne";
  688. animationSourceBody="mainTurret";
  689. animationSourceGun="mainGun";
  690. gunnerLeftHandAnimName="";
  691. gunnerRightHandAnimName="";
  692. maxHorizontalRotSpeed=5;
  693. maxVerticalRotSpeed=5;
  694. proxyindex=1;
  695. isCopilot=1;
  696. gunnerName="Co-Pilot";
  697. showHMD=1;
  698. castCargoShadow=0;
  699. viewCargoShadow=0;
  700. castDriverShadow=0;
  701. viewDriverShadow=0;
  702. CanEject=1;
  703. hideWeaponsGunner=1;
  704. memoryPointsGetInGunner="pos driver";
  705. memoryPointsGetInGunnerDir="pos driver dir";
  706. memoryPointGunnerOutOptics="gunnerviewout";
  707. discreteDistanceInitIndex=5;
  708. gunnerAction="Driver_mid01";
  709. gunnerInAction="Driver_mid01";
  710. gunnerGetInAction="GetInLow";
  711. gunnerGetOutAction="GetOutLow";
  712. gunnerUsesPilotView=0;
  713. commanding=-1;
  714. startEngine=0;
  715. stabilizedInAxes="StabilizedInAxesBoth";
  716. showAllTargets=4;
  717. minElev=-15;
  718. maxElev=15;
  719. initElev=0;
  720. minTurn=0;
  721. maxTurn=0;
  722. initTurn=0;
  723. memoryPointLRocket="RocketL";
  724. memoryPointRRocket="RocketR";
  725. memoryPointLMissile="RocketL";
  726. memoryPointRMissile="RocketR";
  727. selectionFireAnim="";
  728. SWOP_JumpMasterTurretIndex=1;
  729. outGunnerMayFire=1;
  730. memoryPointGunnerOptics="gunner1";
  731. castGunnerShadow=0;
  732. viewGunnerShadow=0;
  733. gunnerOpticsModel="";
  734. gunnerForceOptics=0;
  735. turretInfoType="RscOptics_Heli_Attack_01_gunner";
  736. gunnerNotSpawned=1;
  737. gunnerLeftLegAnimName="pedalL";
  738. gunnerRightLegAnimName="pedalR";
  739. turretCanSee="1 + 2 + 4 + 8 + 16";
  740. };
  741. class GunnerTurret1: MainTurret
  742. {
  743. soundServo[]=
  744. {
  745. "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner",
  746. 0.36234099,
  747. 1,
  748. 20
  749. };
  750. soundServoVertical[]=
  751. {
  752. "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner_vertical",
  753. 0.36234099,
  754. 1,
  755. 30
  756. };
  757. weapons[]=
  758. {
  759. "Cannon_LAAT_Turret1"
  760. };
  761. magazines[]=
  762. {
  763. "500Rnd_Cannon_LAAT_TURRET",
  764. "500Rnd_Cannon_LAAT_TURRET"
  765. };
  766. class ViewOptics
  767. {
  768. initAngleX=0;
  769. minAngleX=-30;
  770. maxAngleX=30;
  771. initAngleY=0;
  772. minAngleY=-100;
  773. maxAngleY=100;
  774. initFov=0.69999999;
  775. minFov=0.25;
  776. maxFov=1.1;
  777. };
  778. class OpticsIn
  779. {
  780. class Wide
  781. {
  782. visionMode[]=
  783. {
  784. "Normal",
  785. "NVG",
  786. "Ti"
  787. };
  788. thermalMode[]={0,1};
  789. opticsDisplayName="W";
  790. initAngleX=0;
  791. minAngleX=-45;
  792. maxAngleX=45;
  793. initAngleY=0;
  794. minAngleY=-100;
  795. maxAngleY=100;
  796. initFov=0.46599999;
  797. minFov=0.46599999;
  798. maxFov=0.46599999;
  799. gunnerOpticsModel="\A3\weapons_f\reticle\Optics_Gunner_AAA_01_w_F";
  800. };
  801. class Medium: Wide
  802. {
  803. opticsDisplayName="M";
  804. initFov=0.093000002;
  805. minFov=0.093000002;
  806. maxFov=0.093000002;
  807. gunnerOpticsModel="\A3\weapons_f\reticle\Optics_Gunner_AAA_01_m_F";
  808. };
  809. class Narrow: Wide
  810. {
  811. opticsDisplayName="N";
  812. gunnerOpticsModel="\A3\weapons_f\reticle\Optics_Gunner_AAA_01_n_F";
  813. initFov=0.028999999;
  814. minFov=0.028999999;
  815. maxFov=0.028999999;
  816. };
  817. };
  818. isCopilot=0;
  819. proxyIndex=2;
  820. commanding=-4;
  821. primaryObserver=0;
  822. primaryGunner=0;
  823. body="mainTurret2";
  824. gun="mainGun2";
  825. minElev=-60;
  826. maxElev=60;
  827. initElev=0;
  828. minTurn=0;
  829. maxTurn=110;
  830. initTurn=0;
  831. turretFollowFreeLook=0;
  832. isPersonTurret=0;
  833. memoryPointGunnerOptics="gunnerview2";
  834. memoryPointGun="machinegun2";
  835. animationSourceHatch="";
  836. stabilizedInAxes="StabilizedInAxesNone";
  837. selectionFireAnim="";
  838. animationSourceBody="MainTurret2";
  839. animationSourceGun="MainGun2";
  840. gunBeg="muzzle_2";
  841. gunEnd="chamber_2";
  842. gunnerName="Ball Turret (Left)";
  843. gunnerOpticsModel="\A3\weapons_f\reticle\Optics_Gunner_AAA_01_w_F";
  844. gunnerOutOpticsShowCursor=1;
  845. gunnerOpticsShowCursor=1;
  846. gunnerAction="Driver_mid01";
  847. gunnerInAction="Driver_mid01";
  848. gunnerlefthandanimname="";
  849. gunnerrighthandanimname="";
  850. gunnerLeftLegAnimName="";
  851. gunnerRightLegAnimName="";
  852. gunnerGetInAction="GetInLow";
  853. gunnerGetOutAction="GetOutLow";
  854. gunnerForceOptics=0;
  855. inGunnerMayFire=1;
  856. gunnerFireAlsoInInternalCamera=1;
  857. outGunnerMayFire=1;
  858. gunnerCompartments="Compartment4";
  859. memoryPointsGetInGunner="pos driver";
  860. memoryPointsGetInGunnerDir="pos driver dir";
  861. turretinfotype="RscOptics_APC_Tracked_01_gunner";
  862. };
  863. class GunnerTurret2: GunnerTurret1
  864. {
  865. soundServo[]=
  866. {
  867. "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner",
  868. 0.36234099,
  869. 1,
  870. 20
  871. };
  872. soundServoVertical[]=
  873. {
  874. "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner_vertical",
  875. 0.36234099,
  876. 1,
  877. 30
  878. };
  879. weapons[]=
  880. {
  881. "Cannon_LAAT_Turret2"
  882. };
  883. magazines[]=
  884. {
  885. "500Rnd_Cannon_LAAT_TURRET",
  886. "500Rnd_Cannon_LAAT_TURRET"
  887. };
  888. isCopilot=0;
  889. body="mainTurret3";
  890. gun="mainGun3";
  891. minTurn=-110;
  892. maxTurn=0;
  893. initTurn=0;
  894. inGunnerMayFire=1;
  895. gunnerFireAlsoInInternalCamera=1;
  896. outGunnerMayFire=1;
  897. animationSourceBody="MainTurret3";
  898. animationSourceGun="MainGun3";
  899. gunBeg="muzzle_3";
  900. gunEnd="chamber_3";
  901. gunnerlefthandanimname="";
  902. gunnerrighthandanimname="";
  903. gunnerLeftLegAnimName="";
  904. gunnerRightLegAnimName="";
  905. stabilizedInAxes="StabilizedInAxesNone";
  906. selectionFireAnim="";
  907. proxyIndex=3;
  908. commanding=-5;
  909. primaryObserver=0;
  910. primaryGunner=0;
  911. turretFollowFreeLook=0;
  912. isPersonTurret=0;
  913. gunnerOutOpticsShowCursor=1;
  914. gunnerOpticsShowCursor=1;
  915. gunnerName="Ball Turret (Right)";
  916. memoryPointGun="machinegun3";
  917. memoryPointGunnerOptics="gunnerview3";
  918. gunnerCompartments="Compartment5";
  919. memoryPointsGetInGunner="pos driver";
  920. memoryPointsGetInGunnerDir="pos driver dir";
  921. };
  922. class CargoTurret_01: MainTurret
  923. {
  924. weapons[]=
  925. {
  926. };
  927. magazines[]=
  928. {
  929. };
  930. gunnerAction="passenger_inside_3";
  931. gunnerGetInAction="GetInLow";
  932. gunnerGetOutAction="GetOutLow";
  933. memoryPointsGetInGunner="pos cargo";
  934. memoryPointsGetInGunnerDir="pos cargo dir";
  935. gunnerName="Passenger (left-back)";
  936. gunnerCompartments="Compartment6";
  937. memoryPointGunnerOptics="";
  938. LODTurnedIn=1;
  939. LODTurnedOut=1;
  940. proxyIndex=42;
  941. maxElev=45;
  942. minElev=-35;
  943. maxTurn=61;
  944. minTurn=-65;
  945. castGunnerShadow=0;
  946. viewGunnerShadow=0;
  947. castCargoShadow=1;
  948. viewCargoShadow=1;
  949. castDriverShadow=0;
  950. viewDriverShadow=0;
  951. enabledByAnimationSource="";
  952. isCopilot=0;
  953. };
  954. class CargoTurret_02: CargoTurret_01
  955. {
  956. gunnerAction="passenger_inside_3";
  957. gunnerName="Passenger (left-front)";
  958. gunnerCompartments="Compartment6";
  959. memoryPointsGetInGunner="pos cargo";
  960. memoryPointsGetInGunnerDir="pos cargo dir";
  961. proxyIndex=43;
  962. castGunnerShadow=0;
  963. viewGunnerShadow=0;
  964. castCargoShadow=1;
  965. viewCargoShadow=1;
  966. castDriverShadow=0;
  967. viewDriverShadow=0;
  968. enabledByAnimationSource="";
  969. };
  970. class CargoTurret_03: CargoTurret_01
  971. {
  972. gunnerAction="passenger_inside_3";
  973. gunnerName="Passenger (left-middle)";
  974. gunnerCompartments="Compartment6";
  975. memoryPointsGetInGunner="pos cargo";
  976. memoryPointsGetInGunnerDir="pos cargo dir";
  977. proxyIndex=44;
  978. castGunnerShadow=0;
  979. viewGunnerShadow=0;
  980. castCargoShadow=1;
  981. viewCargoShadow=1;
  982. castDriverShadow=0;
  983. viewDriverShadow=0;
  984. enabledByAnimationSource="";
  985. };
  986. class CargoTurret_04: CargoTurret_01
  987. {
  988. gunnerAction="passenger_inside_3";
  989. gunnerName="Passenger (right-back)";
  990. gunnerCompartments="Compartment6";
  991. memoryPointsGetInGunner="pos cargo";
  992. memoryPointsGetInGunnerDir="pos cargo dir";
  993. proxyIndex=45;
  994. castGunnerShadow=0;
  995. viewGunnerShadow=0;
  996. castCargoShadow=1;
  997. viewCargoShadow=1;
  998. castDriverShadow=0;
  999. viewDriverShadow=0;
  1000. enabledByAnimationSource="";
  1001. };
  1002. class CargoTurret_05: CargoTurret_01
  1003. {
  1004. gunnerAction="passenger_inside_3";
  1005. gunnerName="Passenger (right-front)";
  1006. gunnerCompartments="Compartment6";
  1007. memoryPointsGetInGunner="pos cargo";
  1008. memoryPointsGetInGunnerDir="pos cargo dir";
  1009. proxyIndex=46;
  1010. castGunnerShadow=0;
  1011. viewGunnerShadow=0;
  1012. castCargoShadow=1;
  1013. viewCargoShadow=1;
  1014. castDriverShadow=0;
  1015. viewDriverShadow=0;
  1016. enabledByAnimationSource="";
  1017. };
  1018. class CargoTurret_06: CargoTurret_01
  1019. {
  1020. gunnerAction="passenger_inside_3";
  1021. gunnerName="Passenger (right-middle)";
  1022. gunnerCompartments="Compartment6";
  1023. memoryPointsGetInGunner="pos cargo";
  1024. memoryPointsGetInGunnerDir="pos cargo dir";
  1025. proxyIndex=47;
  1026. castGunnerShadow=0;
  1027. viewGunnerShadow=0;
  1028. castCargoShadow=1;
  1029. viewCargoShadow=1;
  1030. castDriverShadow=0;
  1031. viewDriverShadow=0;
  1032. enabledByAnimationSource="";
  1033. };
  1034. };
  1035. thrustCoef[]=
  1036. {
  1037. "1.16*2.4",
  1038. "1.15*1.75",
  1039. "1.14*1.5",
  1040. "1.14*1.1",
  1041. "1.13*1",
  1042. "1.12*1",
  1043. "1.1*1",
  1044. "1.07*1",
  1045. "0.99*1",
  1046. "0.2*1",
  1047. 0,
  1048. 0,
  1049. 0
  1050. };
  1051. thrustDelay=0;
  1052. };
  1053. //#include "_vtol_laat.hpp"
  1054. class swop_yw: swop_ywing_base
  1055. {
  1056. class Turrets:Turrets
  1057. {
  1058. class MainTurret;
  1059. };
  1060. class ACE_SelfActions;
  1061. }
  1062. class macro_new_vehicle(Y_wing,Rebels_MkII) : swop_yw
  1063. {
  1064. faction = macro_rebel_faction
  1065. editorSubcategory = macro_editor_cat_air(Rebel_vtol)
  1066. vehicleClass = macro_editor_vehicle_type_air(Rebel)
  1067. scope = 2;
  1068. altFullForce = 6000;
  1069. airBrakeFrictionCoef = 80.4;
  1070. altNoForce = 9000;
  1071. forceInGarage=1;
  1072. displayname = "Y-Wing Rebels Mk.II";
  1073. visualTarget = 1;
  1074. visualTargetSize = 1;
  1075. reportOwnPosition = true;
  1076. radarTargetSize = 1;
  1077. radarTarget = 1;
  1078. nvTarget = 1;
  1079. laserTarget = 1;
  1080. laserScanner = 0;
  1081. irTarget = 1;
  1082. irTargetSize = 1;
  1083. countermeasureActivationRadius = 2000;
  1084. armor=800;
  1085. #include "common.hpp"
  1086. class EventHandlers
  1087. {
  1088. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  1089. init = "[_this select 0] execVM '\ywing\initturbine.sqf';";
  1090. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  1091. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  1092. };
  1093. weapons[] = {
  1094. macro_basic_air_weapons,
  1095. macro_new_weapon(voltic,y_wing),
  1096. macro_new_weapon(wynd,a2a),
  1097. macro_new_weapon(wynd,agm),
  1098. macro_new_weapon(wynd,ugm),
  1099. macro_new_weapon(bomb,cluster),
  1100. macro_new_weapon(bomb,SDB),
  1101. macro_new_weapon(bomb,LGB),
  1102. };
  1103. magazines[] = {
  1104. macro_basic_air_mags,
  1105. macro_new_mag(voltic,200),
  1106. macro_new_mag(voltic,200),
  1107. macro_new_mag(voltic,200),
  1108. macro_new_mag(voltic,200),
  1109. macro_new_mag(voltic,200),
  1110. macro_new_mag(a2a,4),
  1111. macro_new_mag(a2a,4),
  1112. macro_new_mag(agm,6),
  1113. macro_new_mag(ugm,10),
  1114. macro_new_mag(cluster_bomb,4),
  1115. macro_new_mag(cluster_bomb,4),
  1116. macro_new_mag(cluster_bomb,4),
  1117. macro_new_mag(sdb_bomb,4),
  1118. macro_new_mag(sdb_bomb,4),
  1119. macro_new_mag(sdb_bomb,4),
  1120. macro_new_mag(lgb_bomb,4),
  1121. macro_new_mag(lgb_bomb,4),
  1122. macro_new_mag(lgb_bomb,4)
  1123. };
  1124. };
  1125. };