Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.77 KB | None | 0 0
  1. class vxf_driver
  2. {
  3. projectPrefix="Dpy_mh60L";
  4. class modules
  5. {
  6. class engine
  7. {
  8. startOnEnter=1;
  9. };
  10. class fd: engine
  11. {
  12. };
  13. class jvmf: engine
  14. {
  15. };
  16. class flir: engine
  17. {
  18. };
  19. class ui: engine
  20. {
  21. startOnEnter=0;
  22. };
  23. };
  24. class interaction
  25. {
  26. crossHair=0;
  27. class help
  28. {
  29. condition="Dpy_mh60L_ui_helpEnabled";
  30. class b_hidePlayer
  31. {
  32. positionType="coordinates";
  33. position[]={0,5,-0.69999999};
  34. label="Toggle player body";
  35. radius=0.050000001;
  36. buttonUp="player hideObject !(isObjectHidden player);";
  37. clickSound="vxf_Switch_Sound";
  38. };
  39. };
  40. class startUp
  41. {
  42. class fuelPump
  43. {
  44. positionType="static";
  45. position="b_fuelpump";
  46. label="Fuel Pump";
  47. radius=0.015;
  48. animation="Switch_fuelpump";
  49. animSpeed=0;
  50. animStates[]={0.5,0};
  51. animLabels[]=
  52. {
  53. "OFF",
  54. "APU BOOST"
  55. };
  56. animEnd="_this call vtx_uh60_engine_fnc_apuState";
  57. clickSound="vxf_Switch_Sound";
  58. };
  59. class apucont
  60. {
  61. positionType="static";
  62. position="b_apucont";
  63. label="APU CONT";
  64. radius=0.015;
  65. animation="Switch_apucont";
  66. animSpeed=0;
  67. animStates[]={0.5,0};
  68. animLabels[]=
  69. {
  70. "OFF",
  71. "ON"
  72. };
  73. animEnd="_this call vtx_uh60_engine_fnc_apuState; _this call vtx_uh60_engine_fnc_batteryState";
  74. clickSound="vxf_Switch_Sound_3";
  75. };
  76. class b_airsce: apucont
  77. {
  78. position="b_airsce";
  79. label="AIR SCE";
  80. animation="Switch_airsce";
  81. animStates[]={1,0.5,0};
  82. animLabels[]=
  83. {
  84. "ENG",
  85. "OFF",
  86. "APU"
  87. };
  88. clickSound="vxf_Switch_Sound_3";
  89. animEnd="";
  90. };
  91. class b_batt1: apucont
  92. {
  93. position="b_batt1";
  94. label="BATT 1";
  95. animation="Switch_batt1";
  96. animEnd="_this call vtx_uh60_engine_fnc_batteryState";
  97. clickSound="vxf_Switch_Sound_3";
  98. };
  99. class b_batt2: b_batt1
  100. {
  101. position="b_batt2";
  102. label="BATT 2";
  103. animation="Switch_batt2";
  104. animEnd="_this call vtx_uh60_engine_fnc_batteryState";
  105. };
  106. class b_stbyinst: b_batt1
  107. {
  108. position="b_stbyinst";
  109. label="STBY INST";
  110. animation="Switch_stbyinst";
  111. animLabels[]=
  112. {
  113. "OFF",
  114. "ARM"
  115. };
  116. animEnd="_this call vtx_uh60_engine_fnc_batteryState";
  117. };
  118. class b_fuelboostpump1: b_batt1
  119. {
  120. position="b_fuelboostpump1";
  121. label="FUEL PUMP BOOST 1";
  122. animation="Switch_fuelboostpump1";
  123. };
  124. class b_fuelboostpump2: b_batt1
  125. {
  126. position="b_fuelboostpump2";
  127. label="FUEL PUMP BOOST 2";
  128. animation="Switch_fuelboostpump2";
  129. };
  130. class b_gen1: b_batt1
  131. {
  132. position="b_gen1";
  133. label="GEN 1";
  134. animation="Switch_gen1";
  135. animEnd="_this call vtx_uh60_engine_fnc_batteryState";
  136. };
  137. class b_gen2: b_batt1
  138. {
  139. position="b_gen2";
  140. label="GEN 2";
  141. animation="Switch_gen2";
  142. animEnd="_this call vtx_uh60_engine_fnc_batteryState";
  143. };
  144. class b_apugen: b_batt1
  145. {
  146. position="b_apugen";
  147. label="APU GEN";
  148. animation="Switch_apugen";
  149. animEnd="_this call vtx_uh60_engine_fnc_apuState; _this call vtx_uh60_engine_fnc_batteryState";
  150. };
  151. class b_fuelsys1
  152. {
  153. positionType="anim";
  154. position="b_fuelsys1";
  155. label="FUEL SYS 1";
  156. radius=0.035;
  157. animSpeed=1;
  158. animation="Lever_fuelsys1";
  159. animStates[]={0,0.60000002,1};
  160. animLabels[]=
  161. {
  162. "OFF",
  163. "DIR",
  164. "XFD"
  165. };
  166. animEnd="[(_this # 0), false, ""fuel""] remoteExecCall [""vtx_uh60_engine_fnc_engineEH"", crew (_this # 0)]";
  167. };
  168. class b_fuelsys2: b_fuelsys1
  169. {
  170. position="b_fuelsys2";
  171. label="FUEL SYS 2";
  172. animation="Lever_fuelsys2";
  173. };
  174. class b_ignition
  175. {
  176. positionType="static";
  177. position="b_ignition";
  178. label="Engine Ignition";
  179. radius=0.045000002;
  180. animSpeed=5;
  181. animation="Switch_ignition";
  182. animStates[]={0,1};
  183. animLabels[]=
  184. {
  185. "OFF",
  186. "ON"
  187. };
  188. animEnd="_this call vtx_uh60_engine_fnc_starterState";
  189. };
  190. class b_starter1
  191. {
  192. positionType="anim";
  193. position="b_starter1";
  194. label="Engine Start 1";
  195. radius=0.025;
  196. buttonUp="[_this # 0, ""STARTER1"", ""ON""] call vtx_uh60_engine_fnc_starterState";
  197. clickSound="vxf_Switch_Sound";
  198. };
  199. class b_starter2
  200. {
  201. positionType="anim";
  202. position="b_starter2";
  203. label="Engine Start 2";
  204. radius=0.025;
  205. buttonUp="[_this # 0, ""STARTER2"", ""ON""] call vtx_uh60_engine_fnc_starterState";
  206. clickSound="vxf_Switch_Sound";
  207. };
  208. class powerContRFM
  209. {
  210. condition="!difficultyEnabledRTD";
  211. class b_engpowercont1
  212. {
  213. interactionCondition="_this call vtx_uh60_engine_fnc_rotorBrakeInterlock";
  214. positionType="anim";
  215. position="b_engpowercont1";
  216. label="ENG POWER CONT 1";
  217. radius=0.035;
  218. animation="Lever_engpower1";
  219. animSpeed=0.5;
  220. animStates[]={0,0.85000002};
  221. animLabels[]=
  222. {
  223. "OFF",
  224. "FLY"
  225. };
  226. animEnd="[(_this # 0), (_this # 2 != ""OFF"")] remoteExecCall [""vtx_uh60_engine_fnc_engineEH"", crew (_this # 0)]";
  227. };
  228. class b_engpowercont2: b_engpowercont1
  229. {
  230. position="b_engpowercont2";
  231. label="ENG POWER CONT 2";
  232. animation="Lever_engpower2";
  233. };
  234. };
  235. class powerContRTD
  236. {
  237. condition="difficultyEnabledRTD";
  238. class b_engpowercont1
  239. {
  240. interactionCondition="_this call vtx_uh60_engine_fnc_rotorBrakeInterlock";
  241. positionType="anim";
  242. position="b_engpowercont1";
  243. label="ENG POWER CONT 1";
  244. radius=0.035;
  245. animation="Lever_engpower1";
  246. animSpeed=0.5;
  247. animStates[]={0,0.23,0.85000002};
  248. animLabels[]=
  249. {
  250. "OFF",
  251. "IDLE",
  252. "FLY"
  253. };
  254. animEnd="[(_this # 0), (_this # 2 != ""OFF"")] remoteExecCall [""vtx_uh60_engine_fnc_engineEH"", crew (_this # 0)]";
  255. };
  256. class b_engpowercont2: b_engpowercont1
  257. {
  258. position="b_engpowercont2";
  259. label="ENG POWER CONT 2";
  260. animation="Lever_engpower2";
  261. };
  262. };
  263. class l_rotorbrake: b_airsce
  264. {
  265. clickSound="";
  266. position="RotorBrake";
  267. positionType="anim";
  268. label="Rotor Brake";
  269. animation="Lever_RotorBrake";
  270. animStates[]={0,1};
  271. animLabels[]=
  272. {
  273. "OFF",
  274. "ON"
  275. };
  276. animEnd="";
  277. radius=0.1;
  278. animSpeed=1;
  279. };
  280. class l_wheelbrake: b_airsce
  281. {
  282. clickSound="";
  283. position="handle_wheelbrake";
  284. positionType="anim";
  285. label="Parking Brake";
  286. animation="Handle_wheelbrake";
  287. animStates[]={1,0};
  288. animLabels[]=
  289. {
  290. "ON",
  291. "OFF"
  292. };
  293. animEnd="_this call vtx_uh60_engine_fnc_wheelBrakes;";
  294. radius=0.1;
  295. animSpeed=3;
  296. };
  297. };
  298. class misc
  299. {
  300. class b_ap_ralt_L
  301. {
  302. positionType="static";
  303. position="ap_fdL_1";
  304. label="RALT AP";
  305. radius=0.015;
  306. clickSound="vxf_Switch_Sound";
  307. buttonUp="[(_this # 0), ""RALT""] call Dpy_mh60L_fd_fnc_modeSet;";
  308. };
  309. class b_ap_ralt_R: b_ap_ralt_L
  310. {
  311. position="ap_fdR_1";
  312. label="RALT AP";
  313. };
  314. class b_ap_altp_L: b_ap_ralt_L
  315. {
  316. position="ap_fdL_2";
  317. label="ALTP AP";
  318. buttonUp="[(_this # 0), ""ALTP""] call Dpy_mh60L_fd_fnc_modeSet;";
  319. };
  320. class b_ap_altp_R: b_ap_altp_L
  321. {
  322. position="ap_fdR_2";
  323. label="ALTP AP";
  324. };
  325. class b_ap_alt_L: b_ap_ralt_L
  326. {
  327. position="ap_fdL_3";
  328. label="ALT AP";
  329. buttonUp="[(_this # 0), ""ALT""] call Dpy_mh60L_fd_fnc_modeSet;";
  330. };
  331. class b_ap_alt_R: b_ap_alt_L
  332. {
  333. position="ap_fdR_3";
  334. };
  335. class b_ap_ias_L: b_ap_ralt_L
  336. {
  337. position="ap_fdL_4";
  338. label="IAS AP";
  339. buttonUp="[(_this # 0), ""IAS""] call Dpy_mh60L_fd_fnc_modeSet;";
  340. };
  341. class b_ap_ias_R: b_ap_ias_L
  342. {
  343. position="ap_fdR_4";
  344. };
  345. class b_ap_hdg_L: b_ap_ralt_L
  346. {
  347. position="ap_fdL_5";
  348. label="HDG AP";
  349. buttonUp="[(_this # 0), ""HDG""] call Dpy_mh60L_fd_fnc_modeSet;";
  350. };
  351. class b_ap_hdg_R: b_ap_hdg_L
  352. {
  353. position="ap_fdR_5";
  354. };
  355. class Knob_LightUpperConsole
  356. {
  357. positionType="static";
  358. position="knob_lights_uprcsl";
  359. label="Upper Console Light";
  360. radius=0.025;
  361. animation="Knob_LightUpperConsole";
  362. scrollIncrement=0.2;
  363. dragRange=0.2;
  364. looping=0;
  365. animLimits[]={0,1};
  366. dragStart="";
  367. dragging="(_this # 0) setObjectMaterialGlobal[0,format [""\Dpy_mh60L\Data\Cockpit\Emmisive\Emmisive_%1.rvmat"",round(((_this # 0) animationPhase ""Knob_LightUpperConsole"")*10)]]";
  368. dragStop="(_this # 0) setObjectMaterialGlobal[0,format [""\Dpy_mh60L\Data\Cockpit\Emmisive\Emmisive_%1.rvmat"",round(((_this # 0) animationPhase ""Knob_LightUpperConsole"")*10)]]";
  369. };
  370. class Knob_LightLowerConsole: Knob_LightUpperConsole
  371. {
  372. position="knob_lights_lwrcsl";
  373. label="Lower Console Light";
  374. animation="Knob_LightLowerConsole";
  375. dragStart="";
  376. dragging="(_this # 0) setObjectMaterialGlobal[2,format [""\Dpy_mh60L\Data\Cockpit\Emmisive\Emmisive_%1.rvmat"",round(((_this # 0) animationPhase ""Knob_LightLowerConsole"")*10)]]";
  377. dragStop="(_this # 0) setObjectMaterialGlobal[2,format [""\Dpy_mh60L\Data\Cockpit\Emmisive\Emmisive_%1.rvmat"",round(((_this # 0) animationPhase ""Knob_LightLowerConsole"")*10)]]";
  378. };
  379. class Knob_LightInstPanel: Knob_LightUpperConsole
  380. {
  381. position="knob_lights_instpnl";
  382. label="Instrument Panel Light";
  383. animation="Knob_LightInstPanel";
  384. dragStart="";
  385. dragging="(_this # 0) setObjectMaterialGlobal[1,format [""\Dpy_mh60L\Data\Cockpit\Emmisive\Emmisive_%1.rvmat"",round(((_this # 0) animationPhase ""Knob_LightInstPanel"")*10)]]";
  386. dragStop="(_this # 0) setObjectMaterialGlobal[1,format [""\Dpy_mh60L\Data\Cockpit\Emmisive\Emmisive_%1.rvmat"",round(((_this # 0) animationPhase ""Knob_LightInstPanel"")*10)]]";
  387. };
  388. class KnobFDRight_RALT: Knob_LightUpperConsole
  389. {
  390. position="knob_fdR_1";
  391. label="RALT Select";
  392. scrollIncrement=0.1;
  393. animLimits[]={0,10};
  394. dragRange="0.5*5";
  395. animation="FD_1_ROT";
  396. looping=1;
  397. dragStart="";
  398. dragging="(_this # 0) setUserMFDValue [12, (round(((_this # 0) animationSourcePhase ""FD_1_ROT"")*10))*10]";
  399. dragStop="(_this # 0) setUserMFDValue [12, (round(((_this # 0) animationSourcePhase ""FD_1_ROT"")*10))*10]";
  400. buttonUp="[(_this # 0), ""RALT""] call Dpy_mh60L_fd_fnc_psync;";
  401. };
  402. class KnobFDLeft_RALT: KnobFDRight_RALT
  403. {
  404. position="knob_fdL_1";
  405. };
  406. class KnobFDRight_ALTP: KnobFDRight_RALT
  407. {
  408. position="knob_fdR_2";
  409. animLimits[]={0,20};
  410. dragRange="0.5*10";
  411. label="ALTP Select";
  412. animation="FD_2_ROT";
  413. dragging="(_this # 0) setUserMFDValue [13, (round(((_this # 0) animationSourcePhase ""FD_2_ROT"")*10))*100]";
  414. dragStop="(_this # 0) setUserMFDValue [13, (round(((_this # 0) animationSourcePhase ""FD_2_ROT"")*10))*100]";
  415. buttonUp="[(_this # 0), ""ALTP""] call Dpy_mh60L_fd_fnc_psync;";
  416. };
  417. class KnobFDLeft_ALTP: KnobFDRight_ALTP
  418. {
  419. position="knob_fdL_2";
  420. };
  421. class KnobFDRight_ALT: KnobFDRight_RALT
  422. {
  423. position="knob_fdR_3";
  424. animLimits[]={0,20};
  425. dragRange="0.5*10";
  426. label="ALT Select";
  427. animation="FD_3_ROT";
  428. dragging="(_this # 0) setUserMFDValue [14, (round(((_this # 0) animationSourcePhase ""FD_3_ROT"")*10))*100]";
  429. dragStop="(_this # 0) setUserMFDValue [14, (round(((_this # 0) animationSourcePhase ""FD_3_ROT"")*10))*100]";
  430. buttonUp="[(_this # 0), ""ALT""] call Dpy_mh60L_fd_fnc_psync;";
  431. };
  432. class KnobFDLeft_ALT: KnobFDRight_ALT
  433. {
  434. position="knob_fdL_3";
  435. };
  436. };
  437. class MFDs
  438. {
  439. };
  440. };
  441. };
  442. class vxf_copilot
  443. {
  444. projectPrefix="Dpy_mh60L";
  445. class modules
  446. {
  447. class engine
  448. {
  449. startOnEnter=1;
  450. };
  451. class fd: engine
  452. {
  453. };
  454. class jvmf: engine
  455. {
  456. };
  457. class flir: engine
  458. {
  459. };
  460. class ui: engine
  461. {
  462. startOnEnter=0;
  463. };
  464. };
  465. class interaction
  466. {
  467. crossHair=0;
  468. class help
  469. {
  470. condition="Dpy_mh60L_ui_helpEnabled";
  471. class b_hidePlayer
  472. {
  473. positionType="coordinates";
  474. position[]={0,5,-0.69999999};
  475. label="Toggle player body";
  476. radius=0.050000001;
  477. buttonUp="player hideObject !(isObjectHidden player);";
  478. clickSound="vxf_Switch_Sound";
  479. };
  480. };
  481. class startUp
  482. {
  483. class fuelPump
  484. {
  485. positionType="static";
  486. position="b_fuelpump";
  487. label="Fuel Pump";
  488. radius=0.015;
  489. animation="Switch_fuelpump";
  490. animSpeed=0;
  491. animStates[]={0.5,0};
  492. animLabels[]=
  493. {
  494. "OFF",
  495. "APU BOOST"
  496. };
  497. animEnd="_this call vtx_uh60_engine_fnc_apuState";
  498. clickSound="vxf_Switch_Sound";
  499. };
  500. class apucont
  501. {
  502. positionType="static";
  503. position="b_apucont";
  504. label="APU CONT";
  505. radius=0.015;
  506. animation="Switch_apucont";
  507. animSpeed=0;
  508. animStates[]={0.5,0};
  509. animLabels[]=
  510. {
  511. "OFF",
  512. "ON"
  513. };
  514. animEnd="_this call vtx_uh60_engine_fnc_apuState; _this call vtx_uh60_engine_fnc_batteryState";
  515. clickSound="vxf_Switch_Sound_3";
  516. };
  517. class b_airsce: apucont
  518. {
  519. position="b_airsce";
  520. label="AIR SCE";
  521. animation="Switch_airsce";
  522. animStates[]={1,0.5,0};
  523. animLabels[]=
  524. {
  525. "ENG",
  526. "OFF",
  527. "APU"
  528. };
  529. clickSound="vxf_Switch_Sound_3";
  530. animEnd="";
  531. };
  532. class b_batt1: apucont
  533. {
  534. position="b_batt1";
  535. label="BATT 1";
  536. animation="Switch_batt1";
  537. animEnd="_this call vtx_uh60_engine_fnc_batteryState";
  538. clickSound="vxf_Switch_Sound_3";
  539. };
  540. class b_batt2: b_batt1
  541. {
  542. position="b_batt2";
  543. label="BATT 2";
  544. animation="Switch_batt2";
  545. animEnd="_this call vtx_uh60_engine_fnc_batteryState";
  546. };
  547. class b_stbyinst: b_batt1
  548. {
  549. position="b_stbyinst";
  550. label="STBY INST";
  551. animation="Switch_stbyinst";
  552. animLabels[]=
  553. {
  554. "OFF",
  555. "ARM"
  556. };
  557. animEnd="_this call vtx_uh60_engine_fnc_batteryState";
  558. };
  559. class b_fuelboostpump1: b_batt1
  560. {
  561. position="b_fuelboostpump1";
  562. label="FUEL PUMP BOOST 1";
  563. animation="Switch_fuelboostpump1";
  564. };
  565. class b_fuelboostpump2: b_batt1
  566. {
  567. position="b_fuelboostpump2";
  568. label="FUEL PUMP BOOST 2";
  569. animation="Switch_fuelboostpump2";
  570. };
  571. class b_gen1: b_batt1
  572. {
  573. position="b_gen1";
  574. label="GEN 1";
  575. animation="Switch_gen1";
  576. animEnd="_this call vtx_uh60_engine_fnc_batteryState";
  577. };
  578. class b_gen2: b_batt1
  579. {
  580. position="b_gen2";
  581. label="GEN 2";
  582. animation="Switch_gen2";
  583. animEnd="_this call vtx_uh60_engine_fnc_batteryState";
  584. };
  585. class b_apugen: b_batt1
  586. {
  587. position="b_apugen";
  588. label="APU GEN";
  589. animation="Switch_apugen";
  590. animEnd="_this call vtx_uh60_engine_fnc_apuState; _this call vtx_uh60_engine_fnc_batteryState";
  591. };
  592. class b_fuelsys1
  593. {
  594. positionType="anim";
  595. position="b_fuelsys1";
  596. label="FUEL SYS 1";
  597. radius=0.035;
  598. animSpeed=1;
  599. animation="Lever_fuelsys1";
  600. animStates[]={0,0.60000002,1};
  601. animLabels[]=
  602. {
  603. "OFF",
  604. "DIR",
  605. "XFD"
  606. };
  607. animEnd="[(_this # 0), false, ""fuel""] remoteExecCall [""vtx_uh60_engine_fnc_engineEH"", crew (_this # 0)]";
  608. };
  609. class b_fuelsys2: b_fuelsys1
  610. {
  611. position="b_fuelsys2";
  612. label="FUEL SYS 2";
  613. animation="Lever_fuelsys2";
  614. };
  615. class b_ignition
  616. {
  617. positionType="static";
  618. position="b_ignition";
  619. label="Engine Ignition";
  620. radius=0.045000002;
  621. animSpeed=5;
  622. animation="Switch_ignition";
  623. animStates[]={0,1};
  624. animLabels[]=
  625. {
  626. "OFF",
  627. "ON"
  628. };
  629. animEnd="_this call vtx_uh60_engine_fnc_starterState";
  630. };
  631. class b_starter1
  632. {
  633. positionType="anim";
  634. position="b_starter1";
  635. label="Engine Start 1";
  636. radius=0.025;
  637. buttonUp="[_this # 0, ""STARTER1"", ""ON""] call vtx_uh60_engine_fnc_starterState";
  638. clickSound="vxf_Switch_Sound";
  639. };
  640. class b_starter2
  641. {
  642. positionType="anim";
  643. position="b_starter2";
  644. label="Engine Start 2";
  645. radius=0.025;
  646. buttonUp="[_this # 0, ""STARTER2"", ""ON""] call vtx_uh60_engine_fnc_starterState";
  647. clickSound="vxf_Switch_Sound";
  648. };
  649. class powerContRFM
  650. {
  651. condition="!difficultyEnabledRTD";
  652. class b_engpowercont1
  653. {
  654. interactionCondition="_this call vtx_uh60_engine_fnc_rotorBrakeInterlock";
  655. positionType="anim";
  656. position="b_engpowercont1";
  657. label="ENG POWER CONT 1";
  658. radius=0.035;
  659. animation="Lever_engpower1";
  660. animSpeed=0.5;
  661. animStates[]={0,0.85000002};
  662. animLabels[]=
  663. {
  664. "OFF",
  665. "FLY"
  666. };
  667. animEnd="[(_this # 0), (_this # 2 != ""OFF"")] remoteExecCall [""vtx_uh60_engine_fnc_engineEH"", crew (_this # 0)]";
  668. };
  669. class b_engpowercont2: b_engpowercont1
  670. {
  671. position="b_engpowercont2";
  672. label="ENG POWER CONT 2";
  673. animation="Lever_engpower2";
  674. };
  675. };
  676. class powerContRTD
  677. {
  678. condition="difficultyEnabledRTD";
  679. class b_engpowercont1
  680. {
  681. interactionCondition="_this call vtx_uh60_engine_fnc_rotorBrakeInterlock";
  682. positionType="anim";
  683. position="b_engpowercont1";
  684. label="ENG POWER CONT 1";
  685. radius=0.035;
  686. animation="Lever_engpower1";
  687. animSpeed=0.5;
  688. animStates[]={0,0.23,0.85000002};
  689. animLabels[]=
  690. {
  691. "OFF",
  692. "IDLE",
  693. "FLY"
  694. };
  695. animEnd="[(_this # 0), (_this # 2 != ""OFF"")] remoteExecCall [""vtx_uh60_engine_fnc_engineEH"", crew (_this # 0)]";
  696. };
  697. class b_engpowercont2: b_engpowercont1
  698. {
  699. position="b_engpowercont2";
  700. label="ENG POWER CONT 2";
  701. animation="Lever_engpower2";
  702. };
  703. };
  704. class l_rotorbrake: b_airsce
  705. {
  706. clickSound="";
  707. position="RotorBrake";
  708. positionType="anim";
  709. label="Rotor Brake";
  710. animation="Lever_RotorBrake";
  711. animStates[]={0,1};
  712. animLabels[]=
  713. {
  714. "OFF",
  715. "ON"
  716. };
  717. animEnd="";
  718. radius=0.1;
  719. animSpeed=1;
  720. };
  721. class l_wheelbrake: b_airsce
  722. {
  723. clickSound="";
  724. position="handle_wheelbrake";
  725. positionType="anim";
  726. label="Parking Brake";
  727. animation="Handle_wheelbrake";
  728. animStates[]={1,0};
  729. animLabels[]=
  730. {
  731. "ON",
  732. "OFF"
  733. };
  734. animEnd="_this call vtx_uh60_engine_fnc_wheelBrakes;";
  735. radius=0.1;
  736. animSpeed=3;
  737. };
  738. };
  739. class misc
  740. {
  741. class b_ap_ralt_L
  742. {
  743. positionType="static";
  744. position="ap_fdL_1";
  745. label="RALT AP";
  746. radius=0.015;
  747. clickSound="vxf_Switch_Sound";
  748. buttonUp="[(_this # 0), ""RALT""] call Dpy_mh60L_fd_fnc_modeSet;";
  749. };
  750. class b_ap_ralt_R: b_ap_ralt_L
  751. {
  752. position="ap_fdR_1";
  753. label="RALT AP";
  754. };
  755. class b_ap_altp_L: b_ap_ralt_L
  756. {
  757. position="ap_fdL_2";
  758. label="ALTP AP";
  759. buttonUp="[(_this # 0), ""ALTP""] call Dpy_mh60L_fd_fnc_modeSet;";
  760. };
  761. class b_ap_altp_R: b_ap_altp_L
  762. {
  763. position="ap_fdR_2";
  764. label="ALTP AP";
  765. };
  766. class b_ap_alt_L: b_ap_ralt_L
  767. {
  768. position="ap_fdL_3";
  769. label="ALT AP";
  770. buttonUp="[(_this # 0), ""ALT""] call Dpy_mh60L_fd_fnc_modeSet;";
  771. };
  772. class b_ap_alt_R: b_ap_alt_L
  773. {
  774. position="ap_fdR_3";
  775. };
  776. class b_ap_ias_L: b_ap_ralt_L
  777. {
  778. position="ap_fdL_4";
  779. label="IAS AP";
  780. buttonUp="[(_this # 0), ""IAS""] call Dpy_mh60L_fd_fnc_modeSet;";
  781. };
  782. class b_ap_ias_R: b_ap_ias_L
  783. {
  784. position="ap_fdR_4";
  785. };
  786. class b_ap_hdg_L: b_ap_ralt_L
  787. {
  788. position="ap_fdL_5";
  789. label="HDG AP";
  790. buttonUp="[(_this # 0), ""HDG""] call Dpy_mh60L_fd_fnc_modeSet;";
  791. };
  792. class b_ap_hdg_R: b_ap_hdg_L
  793. {
  794. position="ap_fdR_5";
  795. };
  796. class Knob_LightUpperConsole
  797. {
  798. positionType="static";
  799. position="knob_lights_uprcsl";
  800. label="Upper Console Light";
  801. radius=0.025;
  802. animation="Knob_LightUpperConsole";
  803. scrollIncrement=0.2;
  804. dragRange=0.2;
  805. looping=0;
  806. animLimits[]={0,1};
  807. dragStart="";
  808. dragging="(_this # 0) setObjectMaterialGlobal[0,format [""\Dpy_mh60L\Data\Cockpit\Emmisive\Emmisive_%1.rvmat"",round(((_this # 0) animationPhase ""Knob_LightUpperConsole"")*10)]]";
  809. dragStop="(_this # 0) setObjectMaterialGlobal[0,format [""\Dpy_mh60L\Data\Cockpit\Emmisive\Emmisive_%1.rvmat"",round(((_this # 0) animationPhase ""Knob_LightUpperConsole"")*10)]]";
  810. };
  811. class Knob_LightLowerConsole: Knob_LightUpperConsole
  812. {
  813. position="knob_lights_lwrcsl";
  814. label="Lower Console Light";
  815. animation="Knob_LightLowerConsole";
  816. dragStart="";
  817. dragging="(_this # 0) setObjectMaterialGlobal[2,format [""\Dpy_mh60L\Data\Cockpit\Emmisive\Emmisive_%1.rvmat"",round(((_this # 0) animationPhase ""Knob_LightLowerConsole"")*10)]]";
  818. dragStop="(_this # 0) setObjectMaterialGlobal[2,format [""\Dpy_mh60L\Data\Cockpit\Emmisive\Emmisive_%1.rvmat"",round(((_this # 0) animationPhase ""Knob_LightLowerConsole"")*10)]]";
  819. };
  820. class Knob_LightInstPanel: Knob_LightUpperConsole
  821. {
  822. position="knob_lights_instpnl";
  823. label="Instrument Panel Light";
  824. animation="Knob_LightInstPanel";
  825. dragStart="";
  826. dragging="(_this # 0) setObjectMaterialGlobal[1,format [""\Dpy_mh60L\Data\Cockpit\Emmisive\Emmisive_%1.rvmat"",round(((_this # 0) animationPhase ""Knob_LightInstPanel"")*10)]]";
  827. dragStop="(_this # 0) setObjectMaterialGlobal[1,format [""\Dpy_mh60L\Data\Cockpit\Emmisive\Emmisive_%1.rvmat"",round(((_this # 0) animationPhase ""Knob_LightInstPanel"")*10)]]";
  828. };
  829. class KnobFDRight_RALT: Knob_LightUpperConsole
  830. {
  831. position="knob_fdR_1";
  832. label="RALT Select";
  833. scrollIncrement=0.1;
  834. animLimits[]={0,10};
  835. dragRange="0.5*5";
  836. animation="FD_1_ROT";
  837. looping=1;
  838. dragStart="";
  839. dragging="(_this # 0) setUserMFDValue [12, (round(((_this # 0) animationSourcePhase ""FD_1_ROT"")*10))*10]";
  840. dragStop="(_this # 0) setUserMFDValue [12, (round(((_this # 0) animationSourcePhase ""FD_1_ROT"")*10))*10]";
  841. buttonUp="[(_this # 0), ""RALT""] call Dpy_mh60L_fd_fnc_psync;";
  842. };
  843. class KnobFDLeft_RALT: KnobFDRight_RALT
  844. {
  845. position="knob_fdL_1";
  846. };
  847. class KnobFDRight_ALTP: KnobFDRight_RALT
  848. {
  849. position="knob_fdR_2";
  850. animLimits[]={0,20};
  851. dragRange="0.5*10";
  852. label="ALTP Select";
  853. animation="FD_2_ROT";
  854. dragging="(_this # 0) setUserMFDValue [13, (round(((_this # 0) animationSourcePhase ""FD_2_ROT"")*10))*100]";
  855. dragStop="(_this # 0) setUserMFDValue [13, (round(((_this # 0) animationSourcePhase ""FD_2_ROT"")*10))*100]";
  856. buttonUp="[(_this # 0), ""ALTP""] call Dpy_mh60L_fd_fnc_psync;";
  857. };
  858. class KnobFDLeft_ALTP: KnobFDRight_ALTP
  859. {
  860. position="knob_fdL_2";
  861. };
  862. class KnobFDRight_ALT: KnobFDRight_RALT
  863. {
  864. position="knob_fdR_3";
  865. animLimits[]={0,20};
  866. dragRange="0.5*10";
  867. label="ALT Select";
  868. animation="FD_3_ROT";
  869. dragging="(_this # 0) setUserMFDValue [14, (round(((_this # 0) animationSourcePhase ""FD_3_ROT"")*10))*100]";
  870. dragStop="(_this # 0) setUserMFDValue [14, (round(((_this # 0) animationSourcePhase ""FD_3_ROT"")*10))*100]";
  871. buttonUp="[(_this # 0), ""ALT""] call Dpy_mh60L_fd_fnc_psync;";
  872. };
  873. class KnobFDLeft_ALT: KnobFDRight_ALT
  874. {
  875. position="knob_fdL_3";
  876. };
  877. };
  878. class MFDs
  879. {
  880. };
  881. };
  882. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement