Guest User

Untitled

a guest
Nov 6th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.11 KB | None | 0 0
  1. '##############
  2. 'Cockpit-Script
  3. '##############
  4.  
  5. 'Simuliert alle unmittelbar mit dem Armaturenbrett zusammenhängenden Funktionen
  6.  
  7. '(c) 23.10.2009 Rüdiger Hülsmann
  8. '(c) 15.04.2010 Marcel Kuhnt
  9.  
  10. 'Script Version: 1.0
  11. 'Omsi release: 1.0
  12.  
  13. 'Needs:
  14. '- antrieb
  15. '- engine
  16. '- bremse
  17. '- lights
  18. '- wiper?
  19. '- doors
  20.  
  21.  
  22. 'Revision History:
  23. '- Rüdiger Hülsmann 09.06.2009 Last Change
  24. '- Marcel Kuhnt 13.06.2009 Added Gearbox switches
  25. '- Marcel Kuhnt 13.06.2009 Moved some switchvars to other scripts
  26. '- Rüdiger Hülsmann 19.06.2009 Added Openable Window Triggers
  27. '- Rüdiger Hülsmann 23.10.2009 Added Battery and kinderwagen light
  28. '- Marcel Kuhnt 26.10.2009 Radio switchable with Motorkühlung (replaced with cassette player)
  29. '- Rüdiger Hülsmann 28.10.2009 Added driver door
  30. '- Rüdiger Hülsmann 16.12.2009 Added driver curtain
  31. '- Rüdiger Hülsmann 18.12.2009 Bugfix driver curtain
  32. '- Marcel Kuhnt 15.04.2010 Traegheit debugged
  33. '- Rüdiger Hülsmann 13.05.2010 Engine temperature
  34. '- Rüdiger Hülsmann 03.06.2010 Automatic battery switch on key insertion (For standard-II-buses)
  35. '- Rüdiger Hülsmann 08.06.2010 Automatic battery switch made optional, Auxiliary heating switchable by button or switch
  36. '- Rüdiger Hülsmann 23.06.2010 Added mouse-clickable wiper lever on wheel console
  37. '- Rüdiger Hülsmann 08.07.2010 Wiper lever: Improved usability
  38. '- Rüdiger Hülsmann 18.07.2010 Wiper lever: soundfix for keyboard operation and new ignition key algorithm
  39. '- Rüdiger Hülsmann 16.09.2010 Auxheat Switch Bugfix
  40. '- Rüdiger Hülsmann 18.09.2010 Imported microphone switch
  41. '- Rüdiger Hülsmann 17.10.2010 Added pressure warning needle
  42. '- Rüdiger Hülsmann 23.10.2010 Added old-style gear button functionality
  43. '- Rüdiger Hülsmann 06.11.2010 Gear-button "1" functionality removed for old-style gear buttons
  44. '- Rüdiger Hülsmann 16.11.2010 Heating sliders
  45. '- Rüdiger Hülsmann 23.11.2010 Central lubrication, cabin heater sound
  46. '- Rüdiger Hülsmann 23.12.2010 Included 10 "multi-purpose" dummy switches
  47. '- Rüdiger Hülsmann 29.12.2010 ASR switch
  48. '- Rüdiger Hülsmann 04.01.2011 "D-only" gear selector function
  49. '- Rüdiger Hülsmann 05.01.2011 fog lamp switch, high beam lever animation, clock debugged
  50. '- Rüdiger Hülsmann 07.01.2011 Wiper lever sound and function debugges, availybility of several cockpit functions depending on bus type (via constfile)
  51. '- Rüdiger Hülsmann 16.01.2011 Support for wiper turn-switch
  52. '- Rüdiger Hülsmann 18.01.2011 Old-style gear button sounds
  53. '- Rüdiger Hülsmann 26.01.2011 Invertable driver door
  54. '- Rüdiger Hülsmann 26.01.2011 Thermometer
  55. '- Morozov Maxim 07.11.2011 Added trigger and backlight for kneeling switch. Added gearbox buttons backlight (depending on gear). Fixed temperature regulator wheel animation.
  56. '- Morozov Maxim 05.12.2011 Added engine ventilator animatoin (Based on Mi-8 script by M&R)
  57. '------------------------------------------------------------------------------------------
  58.  
  59.  
  60. '----------------------
  61. ' Trigger
  62. '----------------------
  63.  
  64. {trigger:automatic_R}
  65. (C.L.cockpit_gangwahltaster_alt)
  66. {if}
  67. (L.L.cockpit_gang2) (L.L.cockpit_gang3) ||
  68. {if}
  69. (L.L.antrieb_getr_gangvorwahl) 1 <= !
  70. {if}
  71. (L.S.getTime) (C.L.antrieb_gangwahlzeit) (C.L.antrieb_neutralwahlzeit) - - (S.L.antrieb_getr_gangwahlzeitpunkt)
  72. {endif}
  73. 1 (S.L.antrieb_getr_gangvorwahl)
  74. {endif}
  75. (L.L.cockpit_gangR_toggle) ! (S.L.cockpit_gangR_toggle)
  76. (L.L.cockpit_gangR) !
  77. {if}
  78. 1 (S.L.cockpit_gang_r-frei)
  79. {endif}
  80. (L.L.cockpit_gangR_toggle) (L.L.cockpit_gang2_toggle) ! (L.L.cockpit_gang3_toggle) ! && &&
  81. {if}
  82. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  83. 0 (S.L.antrieb_getr_gangvorwahl)
  84. {endif}
  85. (L.L.cockpit_gangR) 1 = !
  86. {if}
  87. (L.L.cockpit_gangR_toggle)
  88. {if}
  89. (T.L.ev_gangwahltaster_old_on)
  90. {else}
  91. (T.L.ev_gangwahltaster_old_off)
  92. {endif}
  93. {endif}
  94. 1 (S.L.cockpit_gangR)
  95. {else}
  96. (L.L.antrieb_getr_gangvorwahl) 1 <=
  97. {if}
  98. (L.L.antrieb_getr_gangvorwahl) 0 = !
  99. {if}
  100. (T.L.ev_gangwahltaster)
  101. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  102. {endif}
  103.  
  104. 0 (S.L.antrieb_getr_gangvorwahl)
  105.  
  106. 1 (S.L.cockpit_gangR)
  107. {endif}
  108. {endif}
  109. {end}
  110.  
  111. {trigger:automatic_R_off}
  112. (C.L.cockpit_gangwahltaster_alt)
  113. {if}
  114. (L.L.cockpit_gangR_toggle)
  115. {if}
  116. 0.7 (S.L.cockpit_gangR)
  117. 0 (S.L.cockpit_gang_r-frei)
  118. {else}
  119. (L.L.cockpit_gang3_toggle) (L.L.cockpit_gang2_toggle) ! &&
  120. {if}
  121. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  122. 4 (S.L.antrieb_getr_gangvorwahl)
  123. {else}
  124. (L.L.cockpit_gang2_toggle)
  125. {if}
  126. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  127. 3 (S.L.antrieb_getr_gangvorwahl)
  128. {else}
  129.  
  130. (L.S.getTime) (C.L.antrieb_gangwahlzeit) (C.L.antrieb_neutralwahlzeit) - - (S.L.antrieb_getr_gangwahlzeitpunkt)
  131. 1 (S.L.antrieb_getr_gangvorwahl)
  132. {endif}
  133.  
  134. {endif}
  135. 0 (S.L.cockpit_gangR) 0 (S.L.cockpit_gang_r-frei)
  136. {endif}
  137. {else}
  138. (L.L.cockpit_gangR) 1 =
  139. {if}
  140. 0.7 (S.L.cockpit_gangR)
  141. {endif}
  142. {endif}
  143. {end}
  144.  
  145.  
  146.  
  147. {trigger:automatic_R_mouse}
  148. (C.L.cockpit_gangwahltaster_alt)
  149. {if}
  150. (L.L.cockpit_gang2) (L.L.cockpit_gang3) ||
  151. {if}
  152. (L.L.antrieb_getr_gangvorwahl) 1 <= !
  153. {if}
  154. (L.S.getTime) (C.L.antrieb_gangwahlzeit) (C.L.antrieb_neutralwahlzeit) - - (S.L.antrieb_getr_gangwahlzeitpunkt)
  155. {endif}
  156. 1 (S.L.antrieb_getr_gangvorwahl)
  157. {endif}
  158. (L.L.cockpit_gangR_toggle) ! (S.L.cockpit_gangR_toggle)
  159. (L.L.cockpit_gangR) 1 = !
  160. {if}
  161. (L.L.cockpit_gangR_toggle)
  162. {if}
  163. (T.L.ev_gangwahltaster_old_on)
  164. {else}
  165. (T.L.ev_gangwahltaster_old_off)
  166. {endif}
  167. {endif}
  168. 1 (S.L.cockpit_gangR)
  169. {else}
  170. (L.L.antrieb_getr_gangvorwahl) 1 <=
  171. {if}
  172. (L.L.antrieb_getr_gangvorwahl) 0 = !
  173. {if}
  174. (T.L.ev_gangwahltaster)
  175. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  176. {endif}
  177. 0 (S.L.antrieb_getr_gangvorwahl)
  178.  
  179. 1 (S.L.cockpit_gangR)
  180. {endif}
  181. {endif}
  182. {end}
  183.  
  184. {trigger:automatic_R_mouse_off}
  185. (C.L.cockpit_gangwahltaster_alt)
  186. {if}
  187. (L.L.cockpit_gangR_toggle)
  188. {if}
  189. 0.7 (S.L.cockpit_gangR)
  190. {else}
  191. (L.L.cockpit_gang3_toggle) (L.L.cockpit_gang2_toggle) ! &&
  192. {if}
  193. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  194. 4 (S.L.antrieb_getr_gangvorwahl)
  195. {else}
  196. (L.L.cockpit_gang2_toggle)
  197. {if}
  198. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  199. 3 (S.L.antrieb_getr_gangvorwahl)
  200. {else}
  201.  
  202. (L.S.getTime) (C.L.antrieb_gangwahlzeit) (C.L.antrieb_neutralwahlzeit) - - (S.L.antrieb_getr_gangwahlzeitpunkt)
  203. 1 (S.L.antrieb_getr_gangvorwahl)
  204. {endif}
  205.  
  206. {endif}
  207. 0 (S.L.cockpit_gangR)
  208. {endif}
  209. {else}
  210. (L.L.cockpit_gangR) 1 =
  211. {if}
  212. 0.7 (S.L.cockpit_gangR)
  213. {endif}
  214. {endif}
  215. {end}
  216.  
  217.  
  218. {trigger:automatic_N}
  219. (C.L.cockpit_gangwahltaster_alt)
  220. {if}
  221. (L.L.cockpit_gangR_toggle) s1
  222. {if}
  223. 1 (S.L.cockpit_gangR)
  224. {endif}
  225. (L.L.cockpit_gang2_toggle) s2
  226. {if}
  227. 1 (S.L.cockpit_gang2)
  228. {endif}
  229. (L.L.cockpit_gang3_toggle) s3
  230. {if}
  231. 1 (S.L.cockpit_gang3)
  232. {endif}
  233.  
  234. l1 l2 l3 || ||
  235. {if}
  236. (T.L.ev_gangwahltaster_old_off)
  237. {endif}
  238. {else}
  239. (L.L.antrieb_getr_gangvorwahl) 1 = !
  240. {if}
  241. (T.L.ev_gangwahltaster_N)
  242. (L.S.getTime) (C.L.antrieb_gangwahlzeit) (C.L.antrieb_neutralwahlzeit) - - (S.L.antrieb_getr_gangwahlzeitpunkt)
  243. {endif}
  244. 1 (S.L.antrieb_getr_gangvorwahl) (S.L.cockpit_gangN)
  245. 0 (S.L.cockpit_gangR) (S.L.cockpit_gang1) (S.L.cockpit_gang2) (S.L.cockpit_gang3)
  246. {endif}
  247. {end}
  248.  
  249.  
  250. {trigger:automatic_N_off}
  251. (C.L.cockpit_gangwahltaster_alt)
  252. {if}
  253. (L.S.getTime) (C.L.antrieb_gangwahlzeit) (C.L.antrieb_neutralwahlzeit) - - (S.L.antrieb_getr_gangwahlzeitpunkt)
  254. 0 (S.L.cockpit_gangR) (S.L.cockpit_gang2) (S.L.cockpit_gang3) (S.L.cockpit_gangR_toggle) (S.L.cockpit_gang2_toggle) (S.L.cockpit_gang3_toggle)
  255. 1 (S.L.antrieb_getr_gangvorwahl)
  256. {else}
  257. 0 (S.L.cockpit_gangN)
  258. {endif}
  259. {end}
  260.  
  261.  
  262. {trigger:automatic_1}
  263. (L.L.antrieb_getr_gangvorwahl) 0 > (C.L.cockpit_gangwahltaster_alt) ! &&
  264. (C.L.cockpit_gear_D_only) ! &&
  265. {if}
  266. (L.L.antrieb_getr_gangvorwahl) 2 = !
  267. {if}
  268. (T.L.ev_gangwahltaster)
  269. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  270. {endif}
  271. 2 (S.L.antrieb_getr_gangvorwahl)
  272. 1 (S.L.cockpit_gang1)
  273. 0 (S.L.cockpit_gang2) (S.L.cockpit_gang3)
  274. {endif}
  275.  
  276. {end}
  277.  
  278.  
  279. {trigger:automatic_1_off}
  280. (L.L.cockpit_gang1) 1 =
  281. {if}
  282. 0.7 (S.L.cockpit_gang1)
  283. {endif}
  284. {end}
  285.  
  286.  
  287. {trigger:automatic_2}
  288. (C.L.cockpit_gangwahltaster_alt)
  289. {if}
  290. (L.L.cockpit_gangR)
  291. {if}
  292. (L.L.antrieb_getr_gangvorwahl) 1 = !
  293. {if}
  294. (L.S.getTime) (C.L.antrieb_gangwahlzeit) (C.L.antrieb_neutralwahlzeit) - - (S.L.antrieb_getr_gangwahlzeitpunkt)
  295. {endif}
  296. 1 (S.L.antrieb_getr_gangvorwahl)
  297. {else}
  298. (L.L.antrieb_getr_gangvorwahl) 3 = !
  299. {if}
  300. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  301. {endif}
  302. 3 (S.L.antrieb_getr_gangvorwahl)
  303. {endif}
  304. (L.L.cockpit_gang2_toggle) ! (S.L.cockpit_gang2_toggle)
  305. (L.L.cockpit_gang2) 1 = !
  306. {if}
  307. (L.L.cockpit_gang2_toggle)
  308. {if}
  309. (T.L.ev_gangwahltaster_old_on)
  310. {else}
  311. (T.L.ev_gangwahltaster_old_off)
  312. {endif}
  313. {endif}
  314. 1 (S.L.cockpit_gang2)
  315. {else}
  316. (L.L.antrieb_getr_gangvorwahl) 0 >
  317. (C.L.cockpit_gear_D_only) ! &&
  318. {if}
  319. (L.L.antrieb_getr_gangvorwahl) 3 = !
  320. {if}
  321. (T.L.ev_gangwahltaster)
  322. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  323. {endif}
  324. 3 (S.L.antrieb_getr_gangvorwahl)
  325. 1 (S.L.cockpit_gang2)
  326. 0 (S.L.cockpit_gang1) (S.L.cockpit_gang3)
  327. {endif}
  328. {endif}
  329. {end}
  330.  
  331.  
  332. {trigger:automatic_2_off}
  333. (C.L.cockpit_gangwahltaster_alt)
  334. {if}
  335. (L.L.cockpit_gang2_toggle)
  336. {if}
  337. 0.7 (S.L.cockpit_gang2)
  338. {else}
  339. (L.L.cockpit_gang3_toggle) (L.L.cockpit_gangR_toggle) ! &&
  340. {if}
  341. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  342. 4 (S.L.antrieb_getr_gangvorwahl)
  343. {else}
  344. (L.S.getTime) (C.L.antrieb_gangwahlzeit) (C.L.antrieb_neutralwahlzeit) - - (S.L.antrieb_getr_gangwahlzeitpunkt)
  345. 1 (S.L.antrieb_getr_gangvorwahl)
  346. {endif}
  347. 0 (S.L.cockpit_gang2)
  348. {endif}
  349. {else}
  350. (L.L.cockpit_gang2) 1 =
  351. {if}
  352. 0.7 (S.L.cockpit_gang2)
  353. {endif}
  354. {endif}
  355. {end}
  356.  
  357.  
  358. {trigger:automatic_D}
  359. (C.L.cockpit_gangwahltaster_alt)
  360. {if}
  361. (L.L.cockpit_gangR)
  362. {if}
  363.  
  364. (L.S.getTime) (C.L.antrieb_gangwahlzeit) (C.L.antrieb_neutralwahlzeit) - - (S.L.antrieb_getr_gangwahlzeitpunkt)
  365. 1 (S.L.antrieb_getr_gangvorwahl)
  366. {else}
  367. (L.L.cockpit_gang2_toggle) !
  368. {if}
  369. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  370. 4 (S.L.antrieb_getr_gangvorwahl)
  371. {endif}
  372. {endif}
  373. (L.L.cockpit_gang3_toggle) ! (S.L.cockpit_gang3_toggle)
  374. (L.L.cockpit_gang3) 1 = !
  375. {if}
  376. (L.L.cockpit_gang3_toggle)
  377. {if}
  378. (T.L.ev_gangwahltaster_old_on)
  379. {else}
  380. (T.L.ev_gangwahltaster_old_off)
  381. {endif}
  382. {endif}
  383. 1 (S.L.cockpit_gang3)
  384. {else}
  385. (L.L.antrieb_getr_gangvorwahl) 0 >
  386. {if}
  387. (L.L.antrieb_getr_gangvorwahl) 4 = !
  388. {if}
  389. (T.L.ev_gangwahltaster)
  390. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  391. {endif}
  392. 4 (S.L.antrieb_getr_gangvorwahl)
  393. 1 (S.L.cockpit_gang3)
  394. 0 (S.L.cockpit_gang1) (S.L.cockpit_gang2)
  395.  
  396. {endif}
  397. {endif}
  398. {end}
  399.  
  400.  
  401. {trigger:automatic_D_off}
  402. (C.L.cockpit_gangwahltaster_alt)
  403. {if}
  404. (L.L.cockpit_gang3_toggle)
  405. {if}
  406. 0.7 (S.L.cockpit_gang3)
  407. {else}
  408. (L.L.cockpit_gang2_toggle) (L.L.cockpit_gangR_toggle) ! &&
  409. {if}
  410. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  411. 3 (S.L.antrieb_getr_gangvorwahl)
  412. {else}
  413. (L.S.getTime) (C.L.antrieb_gangwahlzeit) (C.L.antrieb_neutralwahlzeit) - - (S.L.antrieb_getr_gangwahlzeitpunkt)
  414. 1 (S.L.antrieb_getr_gangvorwahl)
  415. {endif}
  416. 0 (S.L.cockpit_gang3)
  417. {endif}
  418. {else}
  419. (L.L.cockpit_gang3) 1 =
  420. {if}
  421. 0.7 (S.L.cockpit_gang3)
  422. {endif}
  423. {endif}
  424. {end}
  425.  
  426.  
  427. {trigger:automatic_r-frei}
  428. 1 (S.L.cockpit_gang_r-frei)
  429. (L.L.cockpit_gangR_toggle) (L.L.cockpit_gang2_toggle) ! (L.L.cockpit_gang3_toggle) ! && &&
  430. {if}
  431. (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt)
  432. 0 (S.L.antrieb_getr_gangvorwahl)
  433. {endif}
  434. {end}
  435.  
  436. {trigger:automatic_r-frei_off}
  437. 0 (S.L.cockpit_gang_r-frei)
  438. {end}
  439.  
  440.  
  441. {trigger:horn}
  442.  
  443. (L.L.cockpit_hupe) ! (L.L.elec_busbar_main) &&
  444. {if}
  445. (T.L.ev_hupe_an)
  446. {endif}
  447. 1 (S.L.cockpit_hupe)
  448.  
  449. {end}
  450.  
  451. {trigger:horn_off}
  452.  
  453. (L.L.cockpit_hupe) (L.L.elec_busbar_main) &&
  454. {if}
  455. (T.L.ev_hupe_aus)
  456. {endif}
  457. 0 (S.L.cockpit_hupe)
  458.  
  459. {end}
  460.  
  461. {trigger:cp_retarder_direkt_toggle}
  462. (L.L.cp_retarder_sw_direkt) ! (S.L.cp_retarder_sw_direkt) s1
  463. (M.L.kippschaltersound)
  464. {end}
  465.  
  466.  
  467. {trigger:cp_retarder_toggle}
  468. (C.L.cockpit_has_retarderswitch)
  469. {if}
  470. (L.L.cp_retarder_sw) ! (S.L.cp_retarder_sw) s1
  471. (M.L.kippschaltersound)
  472. {endif}
  473. {end}
  474.  
  475. {trigger:cp_motorkuehlung_toggle}
  476. (C.L.cockpit_has_coolingswitch)
  477. {if}
  478. (L.L.cp_motorkuehlung_sw) ! (S.L.cp_motorkuehlung_sw) s1
  479. (M.L.kippschaltersound)
  480. {endif}
  481. {end}
  482.  
  483. {trigger:cp_fahrerlicht_toggle}
  484. (L.L.cp_fahrerlicht_sw) ! (S.L.cp_fahrerlicht_sw) s1
  485. (M.L.kippschaltersound)
  486. {end}
  487.  
  488. {trigger:cp_licht_untenrechts_toggle}
  489. (L.L.cp_licht_untenrechts_sw)
  490. {if}
  491. 0 (S.L.cp_licht_untenrechts_sw) s1
  492. {else}
  493. 1 (S.L.cp_licht_untenrechts_sw) s1
  494. {endif}
  495. (M.L.kippschaltersound)
  496. {end}
  497.  
  498. {trigger:cp_licht_oberdeck_toggle}
  499. (L.L.cp_licht_oberdeck_sw)
  500. {if}
  501. 0 (S.L.cp_licht_oberdeck_sw) s1
  502. {else}
  503. 1 (S.L.cp_licht_oberdeck_sw) s1
  504. {endif}
  505. (M.L.kippschaltersound)
  506. {end}
  507.  
  508. '{trigger:cp_licht_unterdeck_toggle}
  509. (L.L.cp_licht_unterdeck_sw)
  510. {if}
  511. 0 (S.L.cp_licht_unterdeck_sw) s1
  512. {else}
  513. 1 (S.L.cp_licht_unterdeck_sw) s1
  514. {endif}
  515. (M.L.kippschaltersound)
  516. {end}
  517.  
  518. {trigger:cp_wischer_schnell_toggle}
  519. (L.L.cp_wischer_schnell_sw) ! (S.L.cp_wischer_schnell_sw) s1
  520. (M.L.kippschaltersound)
  521. {end}
  522.  
  523. {trigger:kw_wipermode_up}
  524. (L.L.cp_wischer_einaus_sw) ! (S.L.cp_wischer_einaus_sw) s1
  525. {if}
  526. 2 (S.L.cockpit_wischerhebel_mode) (S.L.cockpit_wischer_drehschalter_mode)
  527. 2 3 / (S.L.cockpit_wischerhebel) (S.L.cockpit_wischer_drehschalter)
  528. (L.L.cp_wischer_intervall_sw) !
  529. {if}
  530. (T.L.ev_wischerhebel)
  531. {endif}
  532. {else}
  533. (L.L.cp_wischer_intervall_sw)
  534. {if}
  535. 1 (S.L.cockpit_wischerhebel_mode) (S.L.cockpit_wischer_drehschalter_mode)
  536. 1 3 / (S.L.cockpit_wischerhebel)
  537. 0 (S.L.cockpit_wischer_drehschalter)
  538. {else}
  539. 0 (S.L.cockpit_wischerhebel_mode) (S.L.cockpit_wischer_drehschalter_mode) (S.L.cockpit_wischerhebel)
  540. 1 3 / (S.L.cockpit_wischer_drehschalter)
  541. (T.L.ev_wischerhebel)
  542. {endif}
  543. {endif}
  544. (C.L.wiper_lever) !
  545. {if}
  546. l1 (M.L.kippschaltersound)
  547. {endif}
  548. {end}
  549.  
  550. {trigger:cp_wischer_intervall_toggle}
  551. (L.L.cp_wischer_intervall_sw) ! (S.L.cp_wischer_intervall_sw) s1
  552. (L.L.cp_wischer_einaus_sw) ! &&
  553. {if}
  554. 1 (S.L.cockpit_wischerhebel_mode) (S.L.cockpit_wischer_drehschalter_mode)
  555. 1 3 / (S.L.cockpit_wischerhebel)
  556. 0 (S.L.cockpit_wischer_drehschalter)
  557. {else}
  558. (L.L.cp_wischer_einaus_sw)
  559. {if}
  560. 2 (S.L.cockpit_wischerhebel_mode) (S.L.cockpit_wischer_drehschalter_mode)
  561. 2 3 / (S.L.cockpit_wischerhebel) (S.L.cockpit_wischer_drehschalter)
  562. {else}
  563. 0 (S.L.cockpit_wischerhebel_mode) (S.L.cockpit_wischer_drehschalter_mode) (S.L.cockpit_wischerhebel)
  564. 1 3 / (S.L.cockpit_wischer_drehschalter)
  565. {endif}
  566.  
  567. {endif}
  568. (C.L.wiper_lever) !
  569. {if}
  570. l1 (M.L.kippschaltersound)
  571. {endif}
  572. {end}
  573.  
  574. {trigger:cp_wischer_wascher_button}
  575. 1 (S.L.cp_wischer_wascher_sw) s1
  576. (C.L.wiper_lever)
  577. {if}
  578. (T.L.ev_wischerhebel)
  579. 1 (S.L.cockpit_wischerhebel_x)
  580. {else}
  581. l1 (M.L.kippschaltersound)
  582. {endif}
  583. {end}
  584.  
  585. {trigger:cp_wischer_wascher_button_off}
  586. 0 (S.L.cp_wischer_wascher_sw) s1
  587. (S.L.wiper_wascher_sw)
  588. (C.L.wiper_lever)
  589. {if}
  590. (T.L.ev_wischerhebel)
  591. 0 (S.L.cockpit_wischerhebel_x)
  592. {else}
  593. l1 (M.L.kippschaltersound)
  594. {endif}
  595. {end}
  596.  
  597. {trigger:cp_heizluefter_toggle}
  598. (L.L.cp_heizluefter_sw) ! (S.L.cp_heizluefter_sw) s1
  599. {end}
  600.  
  601. {trigger:cp_spiegelheizung_toggle}
  602. (L.L.cp_spiegelheizung_sw) ! (S.L.cp_spiegelheizung_sw) s1
  603. (M.L.kippschaltersound)
  604. {end}
  605.  
  606. {trigger:cp_kneel_switch}
  607. (L.L.kneel_allowed) ! (S.L.kneel_allowed) s1
  608. (M.L.kippschaltersound)
  609. {end}
  610.  
  611.  
  612.  
  613. {trigger:cp_dummy_sw01_toggle}
  614. (L.L.cp_dummy_sw01) ! (S.L.cp_dummy_sw01) s1
  615. (M.L.kippschaltersound)
  616. {end}
  617.  
  618. {trigger:cp_dummy_sw02_toggle}
  619. (L.L.cp_dummy_sw02) ! (S.L.cp_dummy_sw02) s1
  620. (M.L.kippschaltersound)
  621. {end}
  622.  
  623. {trigger:cp_dummy_sw03_toggle}
  624. (L.L.cp_dummy_sw03) ! (S.L.cp_dummy_sw03) s1
  625. (M.L.kippschaltersound)
  626. {end}
  627.  
  628. {trigger:cp_dummy_sw04_toggle}
  629. (L.L.cp_dummy_sw04) ! (S.L.cp_dummy_sw04) s1
  630. (M.L.kippschaltersound)
  631. {end}
  632.  
  633. {trigger:cp_dummy_sw05_toggle}
  634. (L.L.cp_dummy_sw05) ! (S.L.cp_dummy_sw05) s1
  635. (M.L.kippschaltersound)
  636. {end}
  637.  
  638. {trigger:cp_dummy_sw06_toggle}
  639. (L.L.cp_dummy_sw06) ! (S.L.cp_dummy_sw06) s1
  640. (M.L.kippschaltersound)
  641. {end}
  642.  
  643. {trigger:cp_dummy_sw07_toggle}
  644. (L.L.cp_dummy_sw07) ! (S.L.cp_dummy_sw07) s1
  645. (M.L.kippschaltersound)
  646. {end}
  647.  
  648. {trigger:cp_dummy_sw08_toggle}
  649. (L.L.cp_dummy_sw08) ! (S.L.cp_dummy_sw08) s1
  650. (M.L.kippschaltersound)
  651. {end}
  652.  
  653. {trigger:cp_dummy_sw09_toggle}
  654. (L.L.cp_dummy_sw09) ! (S.L.cp_dummy_sw09) s1
  655. (M.L.kippschaltersound)
  656. {end}
  657.  
  658. {trigger:cp_dummy_sw10_toggle}
  659. (L.L.cp_dummy_sw10) ! (S.L.cp_dummy_sw10) s1
  660. (M.L.kippschaltersound)
  661. {end}
  662.  
  663. {trigger:cp_schalter_ASR_off_toggle}
  664. (L.L.cp_ASR_off) ! (S.L.cp_ASR_off) s1
  665. (M.L.kippschaltersound)
  666. {end}
  667.  
  668.  
  669.  
  670.  
  671.  
  672. {trigger:cp_klimator_sw_drag}
  673. (L.S.mouse_y) -100 / (L.L.cp_klimator_sw) + (S.L.cp_klimator_sw) s0
  674. l0 0 <
  675. {if}
  676. 0 (S.L.cp_klimator_sw)
  677. {endif}
  678. l0 1 >
  679. {if}
  680. 1 (S.L.cp_klimator_sw)
  681. {endif}
  682. {end}
  683.  
  684. {trigger:cp_rollo_drag}
  685.  
  686. (L.L.cp_rollo_pos) (S.L.cp_rollo_lastpos)
  687.  
  688. 1 (S.L.cp_rollo_dragged)
  689. 0 (S.L.cp_rollo_speed)
  690. (L.S.mouse_y) 500 / (L.L.cp_rollo_pos) + (S.L.cp_rollo_pos) s0
  691. l0 0 <
  692. {if}
  693. 0 (S.L.cp_rollo_pos)
  694. {endif}
  695. l0 1 >
  696. {if}
  697. 1 (S.L.cp_rollo_pos)
  698. {endif}
  699.  
  700. (L.L.cp_rollo_pos) (L.L.cp_rollo_lastpos) - abs (L.S.Timegap) / (S.L.cp_rollo_speed)
  701.  
  702. {end}
  703.  
  704. {trigger:cp_rollo_off}
  705. 0 (S.L.cp_rollo_dragged)
  706. (T.L.ev_rollo_end)
  707. {end}
  708.  
  709. {trigger:cp_rollo_retract}
  710. (L.L.cp_rollo_bommel) 0 = (L.L.cp_rollo_pos) &&
  711. {if}
  712. (T.L.ev_rollo_retract)
  713. {endif}
  714. 1 (S.L.cp_rollo_bommel) (S.L.cp_rollo_retract)
  715.  
  716. {end}
  717.  
  718. {trigger:cp_rollo_retract_off}
  719. 0 (S.L.cp_rollo_bommel) (S.L.cp_rollo_retract) (S.L.cp_rollo_speed)
  720. {end}
  721.  
  722.  
  723. {trigger:cp_fahrerfenster_opn_drag}
  724.  
  725. (L.L.cp_fahrerfenster_pos) (S.L.cp_fahrerfenster_lastpos)
  726.  
  727. (L.S.mouse_x) -500 / (L.L.cp_fahrerfenster_pos) + (S.L.cp_fahrerfenster_pos) s0
  728. l0 0 <
  729. {if}
  730. 0 (S.L.cp_fahrerfenster_pos)
  731. (L.L.cp_fahrerfenster_endanschlag) !
  732. {if}
  733. (T.L.ev_fahrerfenster_cls)
  734. {endif}
  735. 1 (S.L.cp_fahrerfenster_endanschlag)
  736.  
  737. {endif}
  738. l0 1 >
  739. {if}
  740. 1 (S.L.cp_fahrerfenster_pos)
  741. (L.L.cp_fahrerfenster_endanschlag) !
  742. {if}
  743. (T.L.ev_fahrerfenster_opn)
  744. {endif}
  745. 1 (S.L.cp_fahrerfenster_endanschlag)
  746. {endif}
  747.  
  748. (L.L.cp_fahrerfenster_pos) s0 0 > l0 1 < &&
  749. {if}
  750. 0 (S.L.cp_fahrerfenster_endanschlag)
  751. {endif}
  752.  
  753.  
  754. (L.L.cp_fahrerfenster_pos) (L.L.cp_fahrerfenster_lastpos) - abs (L.S.Timegap) / (S.L.cp_fahrerfenster_speed)
  755. {end}
  756.  
  757.  
  758. {trigger:cp_fahrerfenster_opn_off}
  759. 0 (S.L.cp_fahrerfenster_speed)
  760. {end}
  761.  
  762.  
  763. {trigger:cp_schluessel_mov_drag}
  764.  
  765. ' Fallunterscheidung: Schlüssel in x- oder y-Richtung?
  766.  
  767. (L.S.mouse_y) abs (L.S.mouse_x) abs >=
  768. {if}
  769.  
  770. ' Zunächst Translation (Einstecken)
  771.  
  772. (L.S.mouse_y) 10 / (L.L.cp_schluessel_trans) + 0 max 1 min (S.L.cp_schluessel_trans) s0
  773.  
  774. ' Stufen:
  775. ' 0: Schlüssel abgezogen
  776. ' 1: Schlüssel eingesteckt
  777.  
  778. l0 0.5 <
  779. {if}
  780. 0 (S.L.cp_schluessel_trans_mode) (S.L.elec_busbar_main_sw)
  781. {else}
  782. 1 (S.L.cp_schluessel_trans_mode)
  783. 1 (S.L.bremse_ABS_selftest)
  784.  
  785. ' Wenn beim Einstecken bereits der Stromkreis geschlossen werden soll, ohne Trennschalter:
  786.  
  787. (C.L.automatic_battery_switch)
  788. {if}
  789. 1 (S.L.elec_busbar_main_sw)
  790. {endif}
  791. {endif}
  792. {else}
  793.  
  794. ' Sonst Rotation (Lichtschalter)
  795.  
  796. (L.S.mouse_x) -20 / (L.L.cp_schluessel_rot) + 0 max 1 min (S.L.cp_schluessel_rot) s1
  797.  
  798. ' Stufen:
  799. ' 0: Licht aus
  800. ' 1: Standlicht
  801. ' 2: Abblendlicht
  802.  
  803. l1 0.2 <
  804. {if}
  805. 0 (S.L.cp_schluessel_rot_mode)
  806. {else}
  807. l1 0.8 <
  808. {if}
  809. 1 (S.L.cp_schluessel_rot_mode)
  810. {else}
  811. 2 (S.L.cp_schluessel_rot_mode)
  812. {endif}
  813. {endif}
  814. {endif}
  815. {end}
  816.  
  817.  
  818.  
  819.  
  820. {trigger:cp_schluessel_mov_off}
  821.  
  822. ' Einrasten auf den festen Positionen:
  823. (L.L.cp_schluessel_trans_mode) (S.L.cp_schluessel_trans)
  824. (L.L.cp_schluessel_rot_mode) 2 / (S.L.cp_schluessel_rot)
  825.  
  826. {end}
  827.  
  828.  
  829.  
  830. {trigger:cp_lenkrad_toggle}
  831. (L.L.cp_lenkrad_visible) ! (S.L.cp_lenkrad_visible)
  832. {end}
  833.  
  834.  
  835. {trigger:kw_batterietrennschalter}
  836. 1 (S.L.cp_taster_batterietrennschalter)
  837.  
  838. (L.L.cp_schluessel_trans)
  839. {if}
  840. 1 (S.L.elec_busbar_main_sw)
  841. {endif}
  842.  
  843. {end}
  844.  
  845. {trigger:kw_batterietrennschalter_off}
  846. 0 (S.L.cp_taster_batterietrennschalter)
  847. {end}
  848.  
  849.  
  850.  
  851. {trigger:cp_batterietrennschalter_toggle}
  852. (L.L.elec_busbar_main_sw) ! (S.L.elec_busbar_main_sw)
  853. (L.L.cp_batterietrennschalter_antirepeat) !
  854. {if}
  855. (L.L.elec_busbar_main_sw)
  856. {if}
  857. (T.L.ev_schluessel_steck)
  858. 1 (S.L.cp_schluessel_trans) (S.L.cp_taster_batterietrennschalter)
  859. 1 (S.L.bremse_ABS_selftest)
  860. {else}
  861. (T.L.ev_schluessel_steck)
  862. 0 (S.L.cp_schluessel_trans)
  863. {endif}
  864. 1 (S.L.cp_batterietrennschalter_antirepeat)
  865. {endif}
  866. {end}
  867.  
  868. {trigger:cp_batterietrennschalter_toggle_off}
  869. 0 (S.L.cp_batterietrennschalter_antirepeat) (S.L.cp_taster_batterietrennschalter)
  870. {end}
  871.  
  872.  
  873. {trigger:eng_hatch_R}
  874. (L.L.eng_hatch_R) ! (S.L.eng_hatch_R) s1
  875. (M.L.outside_hatches_sound)
  876. {end}
  877.  
  878. {trigger:eng_hatch_B}
  879. (L.L.eng_hatch_B) ! (S.L.eng_hatch_B) s1
  880. (M.L.outside_hatches_sound)
  881. {end}
  882.  
  883. {trigger:cp_klappfenster_OR1}
  884. (L.L.cp_klappfenster_OR1) ! (S.L.cp_klappfenster_OR1) s1
  885. (M.L.klappfenstersound)
  886. {end}
  887.  
  888. {trigger:cp_klappfenster_OR2}
  889. (L.L.cp_klappfenster_OR2) ! (S.L.cp_klappfenster_OR2) s1
  890. (M.L.klappfenstersound)
  891. {end}
  892.  
  893. {trigger:cp_klappfenster_OR3}
  894. (L.L.cp_klappfenster_OR3) ! (S.L.cp_klappfenster_OR3) s1
  895. (M.L.klappfenstersound)
  896. {end}
  897.  
  898. {trigger:cp_klappfenster_OR4}
  899. (L.L.cp_klappfenster_OR4) ! (S.L.cp_klappfenster_OR4) s1
  900. (M.L.klappfenstersound)
  901. {end}
  902.  
  903.  
  904. {trigger:cp_klappfenster_OL1}
  905. (L.L.cp_klappfenster_OL1) ! (S.L.cp_klappfenster_OL1) s1
  906. (M.L.klappfenstersound)
  907. {end}
  908.  
  909. {trigger:cp_klappfenster_OL2}
  910. (L.L.cp_klappfenster_OL2) ! (S.L.cp_klappfenster_OL2) s1
  911. (M.L.klappfenstersound)
  912. {end}
  913.  
  914. {trigger:cp_klappfenster_OL3}
  915. (L.L.cp_klappfenster_OL3) ! (S.L.cp_klappfenster_OL3) s1
  916. (M.L.klappfenstersound)
  917. {end}
  918.  
  919. {trigger:cp_klappfenster_OL4}
  920. (L.L.cp_klappfenster_OL4) ! (S.L.cp_klappfenster_OL4) s1
  921. (M.L.klappfenstersound)
  922. {end}
  923.  
  924. {trigger:cp_klappfenster_UR1}
  925. (L.L.cp_klappfenster_UR1) ! (S.L.cp_klappfenster_UR1) s1
  926. (M.L.klappfenstersound)
  927. {end}
  928.  
  929. {trigger:cp_klappfenster_UR2}
  930. (L.L.cp_klappfenster_UR2) ! (S.L.cp_klappfenster_UR2) s1
  931. (M.L.klappfenstersound)
  932. {end}
  933.  
  934. {trigger:cp_klappfenster_UR3}
  935. (L.L.cp_klappfenster_UR3) ! (S.L.cp_klappfenster_UR3) s1
  936. (M.L.klappfenstersound)
  937. {end}
  938.  
  939. {trigger:cp_klappfenster_UR4}
  940. (L.L.cp_klappfenster_UR4) ! (S.L.cp_klappfenster_UR4) s1
  941. (M.L.klappfenstersound)
  942. {end}
  943.  
  944. {trigger:cp_klappfenster_UL1}
  945. (L.L.cp_klappfenster_UL1) ! (S.L.cp_klappfenster_UL1) s1
  946. (M.L.klappfenstersound)
  947. {end}
  948.  
  949. {trigger:cp_klappfenster_UL2}
  950. (L.L.cp_klappfenster_UL2) ! (S.L.cp_klappfenster_UL2) s1
  951. (M.L.klappfenstersound)
  952. {end}
  953.  
  954.  
  955. {trigger:cp_Fahrertuer_drag}
  956.  
  957. 1 (S.L.cp_fahrertuer_dragged)
  958. (L.L.cp_fahrertuer_pos) (S.L.cp_fahrertuer_lastpos)
  959.  
  960. (L.S.mouse_x) 500 / (L.L.cp_fahrertuer_pos) + (S.L.cp_fahrertuer_pos) s0
  961. l0 0 <
  962. {if}
  963. 0 (S.L.cp_fahrertuer_pos)
  964. {endif}
  965. l0 1 >
  966. {if}
  967. 1 (S.L.cp_fahrertuer_pos)
  968. {endif}
  969.  
  970. (L.L.cp_fahrertuer_pos) (L.L.cp_fahrertuer_lastpos) - (L.S.Timegap) / (S.L.cp_fahrertuer_speed)
  971. {end}
  972.  
  973.  
  974. {trigger:cp_Fahrertuer_off}
  975. 0 (S.L.cp_fahrertuer_dragged)
  976. {end}
  977.  
  978.  
  979.  
  980. {trigger:KR_play}
  981. (L.L.cockpit_KR_play) 0.1 <
  982. {if}
  983. (T.L.ev_kr_play)
  984. {endif}
  985. 1 (S.L.cockpit_KR_play) (S.L.Snd_Radio)
  986. {end}
  987.  
  988.  
  989. {trigger:KR_play_off}
  990. 0.8 (S.L.cockpit_KR_play)
  991. {end}
  992.  
  993. {trigger:KR_stop}
  994. 1 (S.L.cockpit_KR_stop)
  995. 0 (S.L.cockpit_KR_play) (S.L.Snd_Radio)
  996. (T.L.ev_kr_stop)
  997. {end}
  998.  
  999.  
  1000. {trigger:KR_stop_off}
  1001. 0 (S.L.cockpit_KR_stop)
  1002. {end}
  1003.  
  1004.  
  1005. {trigger:taster_standheizung}
  1006.  
  1007. (L.L.cp_taster_standheizung_target) ! (S.L.cp_taster_standheizung_target) s1
  1008.  
  1009. 1 (S.L.cp_taster_standheizung)
  1010.  
  1011. (C.L.auxheat_via_button) !
  1012. {if}
  1013. l1 (M.L.kippschaltersound)
  1014. l0 (S.L.cp_taster_standheizung)
  1015. {endif}
  1016.  
  1017. {end}
  1018.  
  1019. {trigger:taster_standheizung_off}
  1020.  
  1021. (L.L.cp_taster_standheizung_target)
  1022. {if}
  1023. 0 (S.L.cp_taster_standheizung)
  1024. {else}
  1025. 0.6 (S.L.cp_taster_standheizung)
  1026. {endif}
  1027.  
  1028. {end}
  1029.  
  1030.  
  1031. {trigger:taster_nebelschluss}
  1032.  
  1033. (L.L.cp_taster_nebelschluss_target) ! (S.L.cp_taster_nebelschluss_target)
  1034. 1 (S.L.cp_taster_nebelschluss)
  1035. {end}
  1036.  
  1037. {trigger:taster_nebelschluss_off}
  1038.  
  1039. (L.L.cp_taster_nebelschluss_target)
  1040. {if}
  1041. 0.6 (S.L.cp_taster_nebelschluss)
  1042. {else}
  1043. 0 (S.L.cp_taster_nebelschluss)
  1044. {endif}
  1045.  
  1046. {end}
  1047.  
  1048.  
  1049. {trigger:cp_wiperlever_drag}
  1050.  
  1051. ' Fallunterscheidung: Hebel in x- oder y-Richtung?
  1052.  
  1053. (C.L.wiper_lever)
  1054. {if}
  1055.  
  1056. (L.S.mouse_y) abs (L.S.mouse_x) abs >=
  1057. {if}
  1058. (L.S.mouse_y) -50 / (L.L.cockpit_wischerhebel) + 0 max 1 min (S.L.cockpit_wischerhebel) s0
  1059.  
  1060. ' Stufen:
  1061. ' 0: Aus
  1062. ' 1: Intervall
  1063. ' 2: Langsam
  1064. ' 3: Schnell
  1065.  
  1066. l0 0.17 <
  1067. {if}
  1068. 0 (S.L.cockpit_wischerhebel_mode) (S.L.cp_wischer_intervall_sw) (S.L.cp_wischer_einaus_sw) (S.L.cp_wischer_schnell_sw)
  1069. {else}
  1070. l0 0.5 <
  1071. {if}
  1072. 1 (S.L.cockpit_wischerhebel_mode) (S.L.cp_wischer_intervall_sw)
  1073. 0 (S.L.cp_wischer_schnell_sw) (S.L.cp_wischer_einaus_sw)
  1074. {else}
  1075. l0 0.83 <
  1076. {if}
  1077. 2 (S.L.cockpit_wischerhebel_mode)
  1078. 1 (S.L.cp_wischer_einaus_sw)
  1079. 0 (S.L.cp_wischer_intervall_sw) (S.L.cp_wischer_schnell_sw)
  1080. {else}
  1081. 3 (S.L.cockpit_wischerhebel_mode)
  1082. 1 (S.L.cp_wischer_einaus_sw) (S.L.cp_wischer_schnell_sw)
  1083. 0 (S.L.cp_wischer_intervall_sw)
  1084. {endif}
  1085. {endif}
  1086. {endif}
  1087. {else}
  1088. (L.S.mouse_x) -50 / (L.L.cockpit_wischerhebel_x) + 0 max 1 min (S.L.cockpit_wischerhebel_x) s1
  1089.  
  1090. ' Waschanlage (Hebel nach oben)
  1091. l1 0.9 >
  1092. {if}
  1093. (L.L.cp_wischer_wascher_sw) !
  1094. {if}
  1095. (T.L.ev_wischerhebel)
  1096. {endif}
  1097. 1 (S.L.cp_wischer_wascher_sw)
  1098. {else}
  1099. (L.L.cp_wischer_wascher_sw)
  1100. {if}
  1101. (T.L.ev_wischerhebel)
  1102. {endif}
  1103. 0 (S.L.cp_wischer_wascher_sw)
  1104. {endif}
  1105.  
  1106. {endif}
  1107. {endif}
  1108.  
  1109. {end}
  1110.  
  1111. {trigger:cp_wiperlever_off}
  1112.  
  1113. ' Einrasten auf den festen Positionen:
  1114. (L.L.cockpit_wischerhebel_mode) 3 / (S.L.cockpit_wischerhebel)
  1115. (L.L.cp_wischer_wascher_sw)
  1116. {if}
  1117. (T.L.ev_wischerhebel)
  1118. 0 (S.L.cockpit_wischerhebel_x) (S.L.cp_wischer_wascher_sw)
  1119. {endif}
  1120. {end}
  1121.  
  1122.  
  1123. {trigger:cp_wiper_turnswitch_drag}
  1124.  
  1125. ' (C.L.wiper_turnswitch)
  1126. ' {if}
  1127.  
  1128. (L.S.mouse_y) -50 / (L.L.cockpit_wischer_drehschalter) + 0 max 1 min (S.L.cockpit_wischer_drehschalter) s0
  1129.  
  1130. ' Stufen:
  1131. ' 0: Intervall
  1132. ' 1: Aus
  1133. ' 2: Langsam
  1134. ' 3: Schnell
  1135.  
  1136. l0 0.17 <
  1137. {if}
  1138. 1 (S.L.cp_wischer_intervall_sw)
  1139. 0 (S.L.cockpit_wischer_drehschalter_mode) (S.L.cp_wischer_schnell_sw) (S.L.cp_wischer_einaus_sw)
  1140. {else}
  1141. l0 0.5 <
  1142. {if}
  1143. 0 (S.L.cp_wischer_intervall_sw) (S.L.cp_wischer_einaus_sw) (S.L.cp_wischer_schnell_sw)
  1144. 1 (S.L.cockpit_wischer_drehschalter_mode)
  1145. {else}
  1146. l0 0.83 <
  1147. {if}
  1148. 2 (S.L.cockpit_wischer_drehschalter_mode)
  1149. 1 (S.L.cp_wischer_einaus_sw)
  1150. 0 (S.L.cp_wischer_intervall_sw) (S.L.cp_wischer_schnell_sw)
  1151. {else}
  1152. 3 (S.L.cockpit_wischer_drehschalter_mode)
  1153. 1 (S.L.cp_wischer_einaus_sw) (S.L.cp_wischer_schnell_sw)
  1154. 0 (S.L.cp_wischer_intervall_sw)
  1155. {endif}
  1156. {endif}
  1157. {endif}
  1158. ' {endif}
  1159.  
  1160. {end}
  1161.  
  1162. {trigger:cp_wiper_turnswitch_off}
  1163.  
  1164. ' Einrasten auf den festen Positionen:
  1165. (L.L.cockpit_wischer_drehschalter_mode) 3 / (S.L.cockpit_wischer_drehschalter)
  1166. {end}
  1167.  
  1168.  
  1169. {trigger:cp_microphone}
  1170. 1 (S.L.cp_microphone_sw)
  1171. {end}
  1172.  
  1173. {trigger:cp_microphone_off}
  1174. 0 (S.L.cp_microphone_sw)
  1175. {end}
  1176.  
  1177.  
  1178.  
  1179. {trigger:cp_heizregler_defrost_drag}
  1180. (L.S.mouse_x) -70 / (L.L.cockpit_heizregler_defrost) + 0 max 1 min (S.L.cockpit_heizregler_defrost)
  1181. {end}
  1182.  
  1183. {trigger:cp_heizregler_fussraum_drag}
  1184. (L.S.mouse_y) -150 / (L.L.cockpit_heizregler_fussraum) + 0 max 1 min (S.L.cockpit_heizregler_fussraum)
  1185. {end}
  1186.  
  1187. {trigger:cp_heizregler_temp_drag}
  1188. (L.S.mouse_x) 150 / (L.L.cockpit_heizregler_temp) + 0 max 1 min (S.L.cockpit_heizregler_temp)
  1189. {end}
  1190.  
  1191. {trigger:cp_heizregler_temp_increase}
  1192. (L.L.cockpit_heizregler_temp) 0.1 + 0 max 1 min (S.L.cockpit_heizregler_temp)
  1193. {end}
  1194.  
  1195. {trigger:cp_heizregler_temp_decrease}
  1196. (L.L.cockpit_heizregler_temp) 0.1 - 0 max 1 min (S.L.cockpit_heizregler_temp)
  1197. {end}
  1198.  
  1199. {trigger:cp_heizregler_bug_drag}
  1200. (L.S.mouse_y) -150 / (L.L.cockpit_heizregler_bug) + 0 max 1 min (S.L.cockpit_heizregler_bug)
  1201. {end}
  1202.  
  1203. {trigger:cp_heizregler_umluft_drag}
  1204. (L.S.mouse_y) -150 / (L.L.cockpit_heizregler_umluft) + 0 max 1 min (S.L.cockpit_heizregler_umluft) s0
  1205.  
  1206. ' Stufen:
  1207. ' 0: Umluftheizung
  1208. ' 1: Direktbelüftung
  1209. ' 2: Frischluftheizung
  1210.  
  1211. l0 0.2 <
  1212. {if}
  1213. 0 (S.L.cockpit_heizregler_ventilation_mode)
  1214. {else}
  1215. l0 0.8 <
  1216. {if}
  1217. 1 (S.L.cockpit_heizregler_ventilation_mode)
  1218. {else}
  1219. 2 (S.L.cockpit_heizregler_ventilation_mode)
  1220. {endif}
  1221. {endif}
  1222.  
  1223. {end}
  1224.  
  1225. {trigger:cp_heizregler_umluft_off}
  1226. (L.L.cockpit_heizregler_ventilation_mode) 2 / (S.L.cockpit_heizregler_umluft)
  1227.  
  1228. {end}
  1229.  
  1230.  
  1231.  
  1232. '----------------------
  1233. ' Init
  1234. '----------------------
  1235.  
  1236. {macro:cockpit_init}
  1237. 0 (S.L.cockpit_hupe_volume) (S.L.door_handsteuerung)
  1238. 1 (S.L.cp_retarder_sw) (S.L.cp_lenkrad_visible) (S.L.cp_taster_warnblinker) (S.L.cockpit_wischer_drehschalter_mode)
  1239.  
  1240. 0.6 (S.L.cp_taster_warnblinker) (S.L.cp_taster_standheizung)
  1241.  
  1242. (C.L.cockpit_zentralschmierung_dist) random (S.L.cp_zentralschmierung_nextkm)
  1243.  
  1244. 0.333 (S.L.cockpit_wischer_drehschalter)
  1245.  
  1246.  
  1247. {end}
  1248.  
  1249. '----------------------
  1250. ' Frame
  1251. '----------------------
  1252. {macro:cockpit_frame}
  1253. 'Übertragen der Schalterstellungen:
  1254. (L.L.cp_retarder_sw) (S.L.antrieb_retarder_sw)
  1255. (L.L.cp_retarder_sw_direkt) (S.L.antrieb_retarder_sw_direkt)
  1256. (L.L.cp_wischer_schnell_sw) (S.L.wiper_schnell_sw)
  1257. (L.L.cp_wischer_einaus_sw) (S.L.wiper_einaus_sw)
  1258. (L.L.cp_wischer_intervall_sw) (S.L.wiper_intervall_sw)
  1259. (L.L.cp_wischer_wascher_sw) (S.L.wiper_wascher_sw)
  1260.  
  1261. (M.L.tacho_frame)
  1262. (M.L.uhr_frame)
  1263. (M.L.drehzahlmesser_frame)
  1264. (M.L.hupe_frame)
  1265. (M.L.blinkerhebel_frame)
  1266. (M.L.wischerhebel_frame)
  1267. (M.L.wischer_drehschalter_frame)
  1268. (M.L.oeldruck_frame)
  1269. (M.L.tankuhr_frame)
  1270. (M.L.cockpitlights_frame)
  1271. (M.L.klimator_frame)
  1272. (M.L.schluessel_frame)
  1273. (M.L.odometer_frame)
  1274. (M.L.fahrertuer_frame)
  1275. (M.L.rollo_frame)
  1276. (M.L.engine_thermometer_frame)
  1277. (M.L.microphone_frame)
  1278. (M.L.pressure_warning_needle_frame)
  1279. (M.L.zentralschmierung_frame)
  1280. (M.L.Thermometer_frame)
  1281. (M.L.eng_vent_frame)
  1282. {end}
  1283.  
  1284. {macro:tacho_frame}
  1285. (L.L.Velocity) (F.L.cockpit_tacholinie) (S.L.cockpit_tachowinkel)
  1286. {end}
  1287.  
  1288. {macro:uhr_frame}
  1289. (L.S.Time) s0 60 / (S.L.cockpit_uhr_min) 12 / (S.L.cockpit_uhr_std)
  1290. l0 trunc (S.L.cockpit_uhr_sek)
  1291. {end}
  1292.  
  1293. {macro:drehzahlmesser_frame}
  1294. (L.L.engine_n) 3000 270 / / (S.L.cockpit_drehzahlwinkel)
  1295. {end}
  1296.  
  1297.  
  1298.  
  1299. {macro:hupe_frame}
  1300. (L.L.elec_busbar_main)
  1301. {if}
  1302. (L.L.cockpit_hupe) 1 =
  1303. {if}
  1304. (L.L.cockpit_hupe_volume) 1 <
  1305. {if}
  1306. (L.L.cockpit_hupe_volume) (L.S.Timegap) 10 * + (S.L.cockpit_hupe_volume)
  1307. {else}
  1308. 1 (S.L.cockpit_hupe_volume)
  1309. {endif}
  1310. {else}
  1311. (L.L.cockpit_hupe_volume) 0 >
  1312. {if}
  1313. (L.L.cockpit_hupe_volume) (L.S.Timegap) 10 * - (S.L.cockpit_hupe_volume)
  1314. {else}
  1315. 0 (S.L.cockpit_hupe_volume)
  1316. {endif}
  1317. {endif}
  1318. {else}
  1319. (L.L.cockpit_hupe_volume) 0 >
  1320. {if}
  1321. (L.L.cockpit_hupe_volume) (L.S.Timegap) 10 * - (S.L.cockpit_hupe_volume)
  1322. {else}
  1323. 0 (S.L.cockpit_hupe_volume)
  1324. {endif}
  1325. {endif}
  1326.  
  1327. {end}
  1328.  
  1329. {macro:blinkerhebel_frame}
  1330. (L.L.lights_sw_blinker) 1 =
  1331. {if}
  1332. -1 (S.L.cockpit_blinkerhebel)
  1333. {else}
  1334. (L.L.lights_sw_blinker) 2 =
  1335. {if}
  1336. 1 (S.L.cockpit_blinkerhebel)
  1337. {else}
  1338. 0 (S.L.cockpit_blinkerhebel)
  1339. {endif}
  1340. {endif}
  1341.  
  1342. ' Hebel-Animation für Fernlicht
  1343. (L.L.lights_sw_fern)
  1344. {if}
  1345. (L.L.cockpit_fernlichthebel) -1 = !
  1346. {if}
  1347. 1 (S.L.cockpit_fernlichthebel)
  1348. {endif}
  1349.  
  1350. (L.L.cp_schluessel_rot) 0.8 >
  1351. {if}
  1352. -1 (S.L.cockpit_fernlichthebel)
  1353. {endif}
  1354. {else}
  1355. 0 (S.L.cockpit_fernlichthebel)
  1356. {endif}
  1357.  
  1358.  
  1359. {end}
  1360.  
  1361. {macro:wischerhebel_frame}
  1362.  
  1363. (L.L.cockpit_wischerhebel_lastmode) (L.L.cockpit_wischerhebel_mode) = !
  1364. {if}
  1365. (T.L.ev_wischerhebel)
  1366. {endif}
  1367. (L.L.cockpit_wischerhebel_mode) (S.L.cockpit_wischerhebel_lastmode)
  1368. {end}
  1369.  
  1370. {macro:wischer_drehschalter_frame}
  1371.  
  1372. (L.L.cockpit_wischer_drehschalter_lastmode) (L.L.cockpit_wischer_drehschalter_mode) = !
  1373. {if}
  1374. (T.L.ev_wischerhebel)
  1375. {endif}
  1376. (L.L.cockpit_wischer_drehschalter_mode) (S.L.cockpit_wischer_drehschalter_lastmode)
  1377. {end}
  1378.  
  1379.  
  1380.  
  1381. {macro:cockpitlights_frame}
  1382.  
  1383. ' Störungsmelder
  1384. (L.L.engine_n) 100 <
  1385. (L.L.bremse_p_tank01) 650000 < ||
  1386. (L.L.bremse_p_tank02) 650000 < ||
  1387. (L.L.bremse_p_tank03) 650000 < ||
  1388. (L.L.elec_busbar_main) &&
  1389. (S.L.cockpit_light_masterfailure)
  1390.  
  1391. ' Batterie
  1392. (L.L.engine_n) 400 < (L.L.elec_busbar_main) &&
  1393. (S.L.cockpit_light_batterie)
  1394.  
  1395. ' Türkontrolle
  1396. (L.L.door_20h_sw) !
  1397. (L.L.bremse_halte_sw) ! &&
  1398. (L.L.door_0) 0 = &&
  1399. (L.L.door_1) 0 = &&
  1400. (L.L.door_2) 0 = &&
  1401. (L.L.door_3) 0 = &&
  1402. (L.L.ramp) 0 = &&
  1403. (L.L.Nothahn_1_sw) ||
  1404. (L.L.Nothahn_2_sw) ||
  1405. (L.L.elec_busbar_main) &&
  1406. (S.L.cockpit_light_tuerkontrolle)
  1407.  
  1408. ' Kneeling
  1409. (L.L.door_20h_sw)
  1410. (L.L.bremse_halte_sw) ||
  1411. (L.L.kneel_allowed) &&
  1412. (L.L.elec_busbar_main) &&
  1413. (S.L.cockpit_light_kneeling)
  1414.  
  1415. ' Kontrolle Feststellbremse
  1416. (L.L.bremse_p_Brzyl_FBA) 650000 <
  1417. (L.L.elec_busbar_main) &&
  1418. (S.L.cockpit_light_feststellbremse)
  1419.  
  1420. ' Geschwindigkeitswarnung
  1421. (L.L.Velocity) 54 > (L.L.elec_busbar_main) &&
  1422. (S.L.cockpit_light_speedwarning)
  1423.  
  1424. ' Kinderwagenwunsch
  1425. (L.L.door_kinderwagenwunsch) (L.L.elec_busbar_main) &&
  1426. (S.L.cockpit_light_kinderwagenwunsch)
  1427.  
  1428. ' Kippschalter-Beleuchtung
  1429. (L.L.cp_retarder_sw_direkt) (L.L.elec_busbar_main) &&
  1430. (S.L.cockpit_light_retarder_direkt)
  1431.  
  1432. (L.L.cp_retarder_sw) (L.L.elec_busbar_main) &&
  1433. (S.L.cockpit_light_retarder)
  1434.  
  1435. (L.L.cp_fahrerlicht_sw) (L.L.elec_busbar_main) &&
  1436. (S.L.cockpit_light_fahrerlicht)
  1437.  
  1438. (L.L.cp_licht_untenrechts_sw) (L.L.elec_busbar_main) &&
  1439. (S.L.cockpit_light_licht_untenrechts)
  1440.  
  1441. ' (L.L.cp_licht_unterdeck_sw) (L.L.elec_busbar_main) &&
  1442. ' (S.L.cockpit_light_licht_unterdeck)
  1443.  
  1444. (L.L.cp_licht_oberdeck_sw) (L.L.elec_busbar_main) &&
  1445. (S.L.cockpit_light_licht_oberdeck)
  1446.  
  1447. (L.L.cp_wischer_schnell_sw) (L.L.elec_busbar_main) &&
  1448. (S.L.cockpit_light_wischer_schnell)
  1449.  
  1450. (L.L.cp_wischer_einaus_sw) (L.L.elec_busbar_main) &&
  1451. (S.L.cockpit_light_wischer_einaus)
  1452.  
  1453. (L.L.cp_wischer_intervall_sw) (L.L.elec_busbar_main) &&
  1454. (S.L.cockpit_light_wischer_intervall)
  1455.  
  1456. (L.L.cp_wischer_wascher_sw) (L.L.elec_busbar_main) &&
  1457. (S.L.cockpit_light_wischer_wascher)
  1458.  
  1459. (L.L.cp_heizluefter_sw) (L.L.elec_busbar_main) &&
  1460. (S.L.cockpit_light_heizluefter)
  1461.  
  1462. (L.L.cp_spiegelheizung_sw) (L.L.elec_busbar_main) &&
  1463. (S.L.cockpit_light_spiegelheizung)
  1464.  
  1465. (L.L.cp_motorkuehlung_sw) (L.L.elec_busbar_main) &&
  1466. (S.L.cockpit_light_motorkuehlung)
  1467.  
  1468. (L.L.door_handsteuerung) (L.L.elec_busbar_main) &&
  1469. (S.L.cockpit_light_tuer_handsteuerung)
  1470.  
  1471. (L.L.cp_ASR_off) (L.L.elec_busbar_main) &&
  1472. (S.L.cockpit_light_ASR_off)
  1473.  
  1474. (L.L.antrieb_getr_gangwahl) 4 = (L.L.elec_busbar_main) &&
  1475. (S.L.cockpit_light_gang3)
  1476.  
  1477. (L.L.antrieb_getr_gangwahl) 1 = (L.L.elec_busbar_main) &&
  1478. (S.L.cockpit_light_gangN)
  1479.  
  1480. (L.L.antrieb_getr_gangwahl) 0 = (L.L.elec_busbar_main) &&
  1481. (S.L.cockpit_light_gangR)
  1482.  
  1483. (L.L.kneel_allowed) (L.L.elec_busbar_main) &&
  1484. (S.L.cockpit_light_kneel_allowed)
  1485.  
  1486. (L.L.ramp) 0 > (L.L.elec_busbar_main) &&
  1487. (S.L.cockpit_light_ramp)
  1488.  
  1489. {end}
  1490.  
  1491. ' Dummy-Schalter:
  1492.  
  1493. (L.L.cp_dummy_sw01) (L.L.elec_busbar_main) &&
  1494. (S.L.cp_dummy_func01)
  1495.  
  1496. (L.L.cp_dummy_sw02) (L.L.elec_busbar_main) &&
  1497. (S.L.cp_dummy_func02)
  1498.  
  1499. (L.L.cp_dummy_sw03) (L.L.elec_busbar_main) &&
  1500. (S.L.cp_dummy_func03)
  1501.  
  1502. (L.L.cp_dummy_sw04) (L.L.elec_busbar_main) &&
  1503. (S.L.cp_dummy_func04)
  1504.  
  1505. (L.L.cp_dummy_sw05) (L.L.elec_busbar_main) &&
  1506. (S.L.cp_dummy_func05)
  1507.  
  1508. (L.L.cp_dummy_sw06) (L.L.elec_busbar_main) &&
  1509. (S.L.cp_dummy_func06)
  1510.  
  1511. (L.L.cp_dummy_sw07) (L.L.elec_busbar_main) &&
  1512. (S.L.cp_dummy_func07)
  1513.  
  1514. (L.L.cp_dummy_sw08) (L.L.elec_busbar_main) &&
  1515. (S.L.cp_dummy_func08)
  1516.  
  1517. (L.L.cp_dummy_sw09) (L.L.elec_busbar_main) &&
  1518. (S.L.cp_dummy_func09)
  1519.  
  1520. (L.L.cp_dummy_sw10) (L.L.elec_busbar_main) &&
  1521. (S.L.cp_dummy_func10)
  1522.  
  1523.  
  1524.  
  1525. {end}
  1526.  
  1527. {macro:oeldruck_frame}
  1528. (L.L.engine_n) (F.L.cockpit_oeldruck) s0
  1529.  
  1530. (L.L.elec_busbar_main) !
  1531. {if}
  1532. 0 s0
  1533. {endif}
  1534.  
  1535. (L.L.cockpit_oeldruck) s1
  1536. 5 s2
  1537. 5 s3
  1538. (M.L.traegheit)
  1539. l1 (S.L.cockpit_oeldruck)
  1540. {end}
  1541.  
  1542. {macro:tankuhr_frame}
  1543. (L.L.engine_tank_content) s0
  1544.  
  1545. (L.L.elec_busbar_main) !
  1546. {if}
  1547. 0 s0
  1548. {endif}
  1549.  
  1550. (L.L.cockpit_tankuhr) s1
  1551. 5 s2
  1552. 5 s3
  1553. (M.L.traegheit)
  1554. l1 (S.L.cockpit_tankuhr)
  1555. {end}
  1556.  
  1557. {macro:engine_thermometer_frame}
  1558. (L.L.elec_busbar_main) !
  1559. {if}
  1560. 0 s0
  1561. {else}
  1562. (L.L.engine_temperature) (F.L.cockpit_engine_temperature) s0
  1563. {endif}
  1564.  
  1565. (L.L.cockpit_motortemperaturwinkel) s1
  1566. 5 s2
  1567. 5 s3
  1568. (M.L.traegheit)
  1569. l1 (S.L.cockpit_motortemperaturwinkel)
  1570. {end}
  1571.  
  1572.  
  1573. {macro:kippschaltersound}
  1574. l1
  1575. {if}
  1576. (T.L.ev_kippschalter_ein)
  1577. {else}
  1578. (T.L.ev_kippschalter_aus)
  1579. {endif}
  1580. {end}
  1581.  
  1582. {macro:outside_hatches_sound}
  1583. l1
  1584. {if}
  1585. (T.L.outside_hatches_sound_opn)
  1586. {else}
  1587. (T.L.outside_hatches_sound_cls)
  1588. {endif}
  1589. {end}
  1590.  
  1591. {macro:klappfenstersound}
  1592. l1
  1593. {if}
  1594. (T.L.ev_klappfenster_opn)
  1595. {else}
  1596. (T.L.ev_klappfenster_cls)
  1597. {endif}
  1598. {end}
  1599.  
  1600.  
  1601. {macro:klimator_frame}
  1602.  
  1603. 'Frontheizgerät:
  1604. (L.L.elec_busbar_main)
  1605. {if}
  1606. (L.L.cp_klimator_sw) s1
  1607. {else}
  1608. 0 s1
  1609. {endif}
  1610.  
  1611. 'Anlauf oder Auslauf?
  1612. l1 100 * (L.L.cp_klimator_RPM) >
  1613. {if}
  1614. 1.5 s0
  1615. {else}
  1616. 0.5 s0
  1617. {endif}
  1618.  
  1619. ' Berechnung der Luefterbeschleunigung:
  1620.  
  1621. 'Sollwert:
  1622. l1 100 *
  1623. 'Istwert:
  1624. (L.L.cp_klimator_RPM)
  1625. 'Beschleunigung:
  1626. - s0 * (L.S.Timegap) *
  1627. 'Addition zum Istwert:
  1628. (L.L.cp_klimator_RPM) + (S.L.cp_klimator_RPM)
  1629.  
  1630.  
  1631. 'Raumheizgeräte:
  1632. (L.L.elec_busbar_main)
  1633. {if}
  1634. (L.L.cp_heizluefter_sw) s1
  1635. {else}
  1636. 0 s1
  1637. {endif}
  1638.  
  1639. 'Anlauf oder Auslauf?
  1640. l1 100 * (L.L.cp_cabinheater_RPM) >
  1641. {if}
  1642. 6 s0
  1643. {else}
  1644. 1.0 s0
  1645. {endif}
  1646.  
  1647. ' Berechnung der Luefterbeschleunigung:
  1648.  
  1649. 'Sollwert:
  1650. l1 100 *
  1651. 'Istwert:
  1652. (L.L.cp_cabinheater_RPM)
  1653. 'Beschleunigung:
  1654. - s0 * (L.S.Timegap) *
  1655. 'Addition zum Istwert:
  1656. (L.L.cp_cabinheater_RPM) + (S.L.cp_cabinheater_RPM)
  1657.  
  1658.  
  1659.  
  1660.  
  1661. {end}
  1662.  
  1663.  
  1664.  
  1665. {macro:schluessel_frame}
  1666.  
  1667. (L.L.cp_schluessel_trans_lastmode) (L.L.cp_schluessel_trans_mode) = !
  1668. {if}
  1669. (T.L.ev_schluessel_steck)
  1670. {endif}
  1671. (L.L.cp_schluessel_trans_mode) (S.L.cp_schluessel_trans_lastmode)
  1672.  
  1673.  
  1674. (L.L.cp_schluessel_rot_lastmode) (L.L.cp_schluessel_rot_mode) = !
  1675. {if}
  1676. (T.L.ev_schluessel_dreh)
  1677. {endif}
  1678. (L.L.cp_schluessel_rot_mode) (S.L.cp_schluessel_rot_lastmode)
  1679. {end}
  1680.  
  1681.  
  1682.  
  1683. {macro:traegheit}
  1684.  
  1685. 'Simuliert träges Verhalten (exponentiell)
  1686.  
  1687. 'Ladekonventionen:
  1688. ' Sollwert l0
  1689. ' Istwert l1
  1690. ' Konstante Anlauf l2 (Einheiten/s)
  1691. ' Konstante Ablauf l3 (Einheiten/s)
  1692.  
  1693. 'Anlauf oder Auslauf?
  1694. l0 l1 >
  1695. {if}
  1696. l2 (L.S.Timegap) * 1 min -1 max s4
  1697. {else}
  1698. l3 (L.S.Timegap) * 1 min -1 max s4
  1699. {endif}
  1700.  
  1701.  
  1702. 'Sollwert:
  1703. l0
  1704. 'Istwert:
  1705. l1
  1706. 'Beschleunigung:
  1707. - l4 *
  1708. 'Addition zum Istwert:
  1709. l1 + s1
  1710. {end}
  1711.  
  1712.  
  1713. {macro:odometer_frame}
  1714. (L.L.kmcounter_km) (L.L.kmcounter_m) 1000 / + 10 *
  1715. (S.L.cp_odometer_01)
  1716.  
  1717. (L.L.cp_odometer_01) 10 / trunc
  1718. (L.L.cp_odometer_01) 10 / d trunc - (F.L.odometer_10er-uebertrag) +
  1719. (S.L.cp_odometer_1)
  1720.  
  1721. (L.L.cp_odometer_1) 10 / trunc
  1722. (L.L.cp_odometer_1) 10 / d trunc - (F.L.odometer_10er-uebertrag) +
  1723. (S.L.cp_odometer_10)
  1724.  
  1725. (L.L.cp_odometer_10) 10 / trunc
  1726. (L.L.cp_odometer_10) 10 / d trunc - (F.L.odometer_10er-uebertrag) +
  1727. (S.L.cp_odometer_100)
  1728.  
  1729. (L.L.cp_odometer_100) 10 / trunc
  1730. (L.L.cp_odometer_100) 10 / d trunc - (F.L.odometer_10er-uebertrag) +
  1731. (S.L.cp_odometer_1000)
  1732.  
  1733. (L.L.cp_odometer_1000) 10 / trunc
  1734. (L.L.cp_odometer_1000) 10 / d trunc - (F.L.odometer_10er-uebertrag) +
  1735. (S.L.cp_odometer_10000)
  1736.  
  1737. (L.L.cp_odometer_10000) 10 / trunc
  1738. (L.L.cp_odometer_10000) 10 / d trunc - (F.L.odometer_10er-uebertrag) +
  1739. (S.L.cp_odometer_100000)
  1740.  
  1741.  
  1742. (L.L.kmcounter_m) 100 / (S.L.cp_odometer_01)
  1743. {end}
  1744.  
  1745.  
  1746. {macro:fahrertuer_frame}
  1747.  
  1748. (L.L.cp_fahrertuer_dragged) !
  1749. {if}
  1750. (L.L.cp_fahrertuer_pos) (L.S.Timegap) (L.L.cp_fahrertuer_speed) * + (S.L.cp_fahrertuer_pos)
  1751.  
  1752. (L.L.cp_fahrertuer_pos) 1 >
  1753. {if}
  1754. 1 (S.L.cp_fahrertuer_pos)
  1755. (L.L.cp_fahrertuer_speed) /-/ 0.7 * (S.L.cp_fahrertuer_speed)
  1756. {endif}
  1757. (L.L.cp_fahrertuer_pos) 0 <
  1758. {if}
  1759. 0 (S.L.cp_fahrertuer_speed) (S.L.cp_fahrertuer_pos)
  1760. {endif}
  1761.  
  1762. (L.L.cp_fahrertuer_pos) 0 >
  1763. {if}
  1764. (L.L.cp_fahrertuer_speed) (L.S.Timegap) (L.L.A_Trans_Y) (C.L.cp_fahrertuer_anschlagseite) * (L.L.A_Trans_X) /-/ + 0.3 * (L.L.cp_fahrertuer_globalangle) * * + (S.L.cp_fahrertuer_speed)
  1765. {endif}
  1766.  
  1767. (L.L.cp_fahrertuer_speed) s0 (S.L.cp_fahrertuer_lastspeed)
  1768. l0 0 >
  1769. {if}
  1770. l0 (L.S.Timegap) 0.2 * - (S.L.cp_fahrertuer_speed)
  1771. {endif}
  1772. l0 0 <
  1773. {if}
  1774. l0 (L.S.Timegap) 0.2 * + (S.L.cp_fahrertuer_speed)
  1775. {endif}
  1776.  
  1777.  
  1778. (L.L.cp_fahrertuer_speed) 0 > (L.L.cp_fahrertuer_lastspeed) 0 < &&
  1779. (L.L.cp_fahrertuer_speed) 0 < (L.L.cp_fahrertuer_lastspeed) 0 > && ||
  1780. {if}
  1781. 0 (S.L.cp_fahrertuer_speed)
  1782. {endif}
  1783.  
  1784. {endif}
  1785.  
  1786. (L.L.cp_fahrertuer_pos) 0 > (L.L.cp_fahrertuer_open) ! &&
  1787. {if}
  1788. (T.L.ev_fahrertuer_auf)
  1789. 1 (S.L.cp_fahrertuer_open)
  1790. {endif}
  1791.  
  1792. (L.L.cp_fahrertuer_pos) 0 = (L.L.cp_fahrertuer_open) &&
  1793. {if}
  1794. (T.L.ev_fahrertuer_zu)
  1795. 0 (S.L.cp_fahrertuer_open)
  1796. {endif}
  1797.  
  1798. (L.L.cp_fahrertuer_pos) 140 * 27 + 3.14 * 180 / sin (S.L.cp_fahrertuer_globalangle)
  1799.  
  1800. (L.L.velocity) (L.L.cp_velocity_last) - (S.L.cp_acceleration)
  1801. (L.L.velocity) (S.L.cp_velocity_last)
  1802.  
  1803.  
  1804. {end}
  1805.  
  1806. {macro:rollo_frame}
  1807. (L.L.cp_rollo_pos) (L.L.cp_rollo_rastpos) max (S.L.cp_rollo_rastpos)
  1808.  
  1809. (L.L.cp_rollo_dragged) !
  1810. {if}
  1811. (L.L.cp_rollo_retract)
  1812. {if}
  1813. (L.L.cp_rollo_speed) (L.S.Timegap) (L.L.cp_rollo_pos) 14 * * - (S.L.cp_rollo_speed)
  1814. (L.L.cp_rollo_pos) (L.S.Timegap) (L.L.cp_rollo_speed) * + (S.L.cp_rollo_pos) (S.L.cp_rollo_rastpos)
  1815.  
  1816. {else}
  1817. (L.L.cp_rollo_pos) (L.L.cp_rollo_rastpos) <
  1818. {if}
  1819. (L.L.cp_rollo_speed) (L.S.Timegap) 14 * + (S.L.cp_rollo_speed)
  1820. (L.L.cp_rollo_pos) (L.S.Timegap) (L.L.cp_rollo_speed) * + (L.L.cp_rollo_rastpos) min (S.L.cp_rollo_pos)
  1821. {else}
  1822. 0 (S.L.cp_rollo_speed)
  1823. {endif}
  1824. {endif}
  1825.  
  1826. (L.L.cp_rollo_pos) 1 >
  1827. {if}
  1828. 1 (S.L.cp_rollo_pos) (S.L.cp_rollo_rastpos)
  1829. {else}
  1830. (L.L.cp_rollo_pos) 0 <
  1831. {if}
  1832. 0 (S.L.cp_rollo_pos) (S.L.cp_rollo_retract) (S.L.cp_rollo_rastpos)
  1833. {endif}
  1834. {endif}
  1835.  
  1836. {endif}
  1837. {end}
  1838.  
  1839.  
  1840.  
  1841. {macro:microphone_frame}
  1842.  
  1843. (L.L.Clutch) 0.2 > (L.L.cp_microphone_sw) ||
  1844. (L.L.elec_busbar_main) && s0
  1845. (L.L.Snd_Microphone) s1
  1846.  
  1847.  
  1848. l0 l1 ! &&
  1849. {if}
  1850. (T.L.micro_lautsprecherknack_start)
  1851. {endif}
  1852.  
  1853. l0 ! l1 &&
  1854. {if}
  1855. (T.L.micro_lautsprecherknack_end)
  1856. {endif}
  1857.  
  1858.  
  1859. l0 (S.L.Snd_Microphone)
  1860. {end}
  1861.  
  1862.  
  1863. {macro:pressure_warning_needle_frame}
  1864.  
  1865. (L.L.bremse_p_Tank01) (L.L.bremse_p_Tank02) + 2 / (S.L.cockpit_warndruck) (F.L.cockpit_warndruck) (S.L.cockpit_warndruckwinkel)
  1866.  
  1867. {end}
  1868.  
  1869. {macro:zentralschmierung_frame}
  1870.  
  1871. (L.L.cp_zentralschmierung_nextkm) (L.L.velocity) 3600 / (L.S.Timegap) * + (S.L.cp_zentralschmierung_nextkm)
  1872. (C.L.cockpit_zentralschmierung_dist) >
  1873. (L.L.cp_zentralschmierung_runtime) (C.L.cockpit_zentralschmierung_maxtime) < &&
  1874. {if}
  1875. 1 (S.L.cockpit_light_zentralschmierung)
  1876. (L.L.cp_zentralschmierung_runtime) (L.S.Timegap) + (S.L.cp_zentralschmierung_runtime)
  1877. {else}
  1878. (L.L.cockpit_light_zentralschmierung)
  1879. {if}
  1880. 0 (S.L.cp_zentralschmierung_nextkm)
  1881. {endif}
  1882. 0 (S.L.cockpit_light_zentralschmierung) (S.L.cp_zentralschmierung_runtime)
  1883. {endif}
  1884.  
  1885. {end}
  1886.  
  1887. {macro:Thermometer_frame}
  1888.  
  1889. (L.L.Cabinair_Temp) s0 trunc " 3" $IntToStrEnh "." $+
  1890. l0 abs l0 abs trunc - 10 * trunc " 1" $IntToStrEnh $+ "C" $+
  1891. (S.$.cockpit_temperatur)
  1892. {end}
  1893.  
  1894. {macro:eng_vent_frame}
  1895. (L.L.engine_n) 300 >=
  1896. {if}
  1897. (L.L.eng_vent) (L.L.engine_n) (L.S.Timegap) * + (S.L.eng_vent)
  1898. 360 >
  1899. {if}
  1900. (L.L.eng_vent) 360 + (S.L.eng_vent)
  1901. {endif}
  1902. {endif}
  1903.  
  1904. (L.L.eng_vent) trunc (S.L.eng_vent)
  1905. {end}
Advertisement
Add Comment
Please, Sign In to add comment