'############## 'Cockpit-Script '############## 'Simuliert alle unmittelbar mit dem Armaturenbrett zusammenhängenden Funktionen '(c) 23.10.2009 Rüdiger Hülsmann '(c) 15.04.2010 Marcel Kuhnt ' modified for Hamburg addon Darius Bode 2012 ' modified for VDV-cockpit Darius Bode 2013 ' modified for VDV-cockpit Darius Bode 2016 'Script Version: 1.0 'Omsi release: 1.0 'Needs: '- antrieb '- engine '- bremse '- lights '- wiper? '- doors 'Revision History: '- Rüdiger Hülsmann 09.06.2009 Last Change '- Marcel Kuhnt 13.06.2009 Added Gearbox switches '- Marcel Kuhnt 13.06.2009 Moved some switchvars to other scripts '- Rüdiger Hülsmann 19.06.2009 Added Openable Window Triggers '- Rüdiger Hülsmann 23.10.2009 Added Battery and kinderwagen light '- Marcel Kuhnt 26.10.2009 Radio switchable with Motorkühlung (replaced with cassette player) '- Rüdiger Hülsmann 28.10.2009 Added driver door '- Rüdiger Hülsmann 16.12.2009 Added driver curtain '- Rüdiger Hülsmann 18.12.2009 Bugfix driver curtain '- Marcel Kuhnt 15.04.2010 Traegheit debugged '- Rüdiger Hülsmann 13.05.2010 Engine temperature '- Rüdiger Hülsmann 03.06.2010 Automatic battery switch on key insertion (For standard-II-buses) '- Rüdiger Hülsmann 08.06.2010 Automatic battery switch made optional, Auxiliary heating switchable by button or switch '- Rüdiger Hülsmann 23.06.2010 Added mouse-clickable wiper lever on wheel console '- Rüdiger Hülsmann 08.07.2010 Wiper lever: Improved usability '- Rüdiger Hülsmann 18.07.2010 Wiper lever: soundfix for keyboard operation and new ignition key algorithm '- Rüdiger Hülsmann 16.09.2010 Auxheat Switch Bugfix '- Rüdiger Hülsmann 18.09.2010 Imported microphone switch '- Rüdiger Hülsmann 17.10.2010 Added pressure warning needle '- Rüdiger Hülsmann 23.10.2010 Added old-style gear button functionality '- Rüdiger Hülsmann 06.11.2010 Gear-button "1" functionality removed for old-style gear buttons '- Rüdiger Hülsmann 16.11.2010 Heating sliders '- Rüdiger Hülsmann 23.11.2010 Central lubrication, cabin heater sound '- Rüdiger Hülsmann 23.12.2010 Included 10 "multi-purpose" dummy switches '- Rüdiger Hülsmann 29.12.2010 ASR switch '- Rüdiger Hülsmann 04.01.2011 "D-only" gear selector function '- Rüdiger Hülsmann 05.01.2011 fog lamp switch, high beam lever animation, clock debugged '- Rüdiger Hülsmann 07.01.2011 Wiper lever sound and function debugges, availybility of several cockpit functions depending on bus type (via constfile) '- Rüdiger Hülsmann 16.01.2011 Support for wiper turn-switch '- Rüdiger Hülsmann 18.01.2011 Old-style gear button sounds '- Rüdiger Hülsmann 26.01.2011 Invertable driver door '- Rüdiger Hülsmann 26.01.2011 Thermometer '------------------------------------------------------------------------------------------ '---------------------- ' Trigger '---------------------- {trigger:cp_killsw_notaus_cover} (L.L.cp_killsw_notaus_cover) ! (S.L.cp_killsw_notaus_cover) {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:cp_killsw_notaus_sw} (L.L.cp_killsw_notaus_sw) ! (S.L.cp_killsw_notaus_sw) {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:cp_killsw_hst_cover} (L.L.cp_killsw_hst_cover) ! (S.L.cp_killsw_hst_cover) {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:fahrertuer_licht_sw} (L.L.fahrertuer_licht_sw) ! (S.L.fahrertuer_licht_sw) {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:cp_killsw_hst_sw} (L.L.cp_killsw_hst_sw) ! (S.L.cp_killsw_hst_sw) (S.L.cp_notloese_anfahrsperre) {if} (T.L.ev_wippschaltereinsound) 0 (S.L.bremse_anfahrsperre) (S.L.bremse_halte) (S.L.bremse_halte_sw) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:cp_killsw_batterie_cover} (L.L.cp_killsw_batterie_cover) ! (S.L.cp_killsw_batterie_cover) {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:cp_killsw_batterie_sw} (L.L.cp_killsw_batterie_sw) ! (S.L.cp_killsw_batterie_sw) (S.L.cp_killsw_batterie) {if} (T.L.ev_wippschaltereinsound) (T.L.ev_hauptschalter) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:cp_sw_dummy1} 1 (S.L.cp_sw_dummy1) (T.L.ev_taste_klein) {end} {trigger:cp_sw_dummy1_off} 0 (S.L.cp_sw_dummy1) (T.L.ev_taste_klein) {end} {trigger:cp_sw_dummy2} 1 (S.L.cp_sw_dummy2) (T.L.ev_taste_klein) {end} {trigger:cp_sw_dummy2_off} 0 (S.L.cp_sw_dummy2) (T.L.ev_taste_klein) {end} {trigger:automatic_R} (L.L.antrieb_getr_gangvorwahl) 1 <= {if} (L.L.antrieb_getr_gangvorwahl) 0 = ! {if} (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt) 0 (S.L.antrieb_getr_gangvorwahl) {endif} (L.L.cockpit_gangR) ! {if} (S.L.cockpit_gangR) (T.L.ev_gangwahltaster_D) {endif} 0 (S.L.cockpit_gangN) -1 (S.L.cockpit_gang_sw) {endif} {end} {trigger:automatic_R_off} (L.L.cockpit_gangR) {if} 0.7 (S.L.cockpit_gangR) {endif} {end} {trigger:automatic_N} (L.L.antrieb_getr_gangvorwahl) 1 = ! {if} (L.S.getTime) (C.L.antrieb_gangwahlzeit) (C.L.antrieb_neutralwahlzeit) - - (S.L.antrieb_getr_gangwahlzeitpunkt) 1 (S.L.antrieb_getr_gangvorwahl) {endif} (L.L.cockpit_gangN) ! {if} (T.L.ev_gangwahltaster_N) 1 (S.L.cockpit_gangN) {endif} 0 (S.L.cockpit_gangR) (S.L.cockpit_gang1) (S.L.cockpit_gang2) (S.L.cockpit_gang3) (S.L.cockpit_gangD) (S.L.cockpit_gang_sw) {end} {trigger:automatic_N_off} (L.L.cockpit_gangN) {if} 0 (S.L.cockpit_gangN) {endif} {end} {trigger:automatic_D} (L.L.cockpit_gang_sw) 4 = ! (L.L.cockpit_gang_sw) -1 = ! && {if} (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt) 4 (S.L.cockpit_gang_sw) 5 (S.L.antrieb_getr_gangvorwahl) 0 (S.L.cockpit_gang1) (S.L.cockpit_gang2) (S.L.cockpit_gang3) (S.L.cockpit_gangN) {endif} (L.L.cockpit_gangD) ! {if} (T.L.ev_gangwahltaster_D) 1 (S.L.cockpit_gangD) {endif} {end} {trigger:automatic_D_off} (L.L.cockpit_gang_sw) 4 = {if} 0.7 (S.L.cockpit_gangD) {endif} {end} {trigger:automatic_3} (L.L.cockpit_gang_sw) 3 = ! (L.L.cockpit_gang_sw) -1 = ! && {if} (T.L.ev_gangwahltaster_D) (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt) 4 (S.L.antrieb_getr_gangvorwahl) {endif} 0 (S.L.cockpit_gangR) (S.L.cockpit_gangN) (S.L.cockpit_gang1) (S.L.cockpit_gang2) (S.L.cockpit_gangD) 1 (S.L.cockpit_gang3) 3 (S.L.cockpit_gang_sw) {end} {trigger:automatic_3_off} (L.L.cockpit_gang_sw) 3 = {if} 0.7 (S.L.cockpit_gang3) {endif} {end} {trigger:automatic_2} (L.L.cockpit_gang_sw) 2 = ! (L.L.cockpit_gang_sw) -1 = ! && {if} (T.L.ev_gangwahltaster_D) (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt) 3 (S.L.antrieb_getr_gangvorwahl) {endif} 0 (S.L.cockpit_gangR) (S.L.cockpit_gangN) (S.L.cockpit_gang1) (S.L.cockpit_gang3) (S.L.cockpit_gangD) 1 (S.L.cockpit_gang2) 2 (S.L.cockpit_gang_sw) {end} {trigger:automatic_2_off} (L.L.cockpit_gang_sw) 2 = {if} 0.7 (S.L.cockpit_gang2) {endif} {end} {trigger:automatic_1} (L.L.cockpit_gang_sw) 1 = ! (L.L.cockpit_gang_sw) -1 = ! && {if} (T.L.ev_gangwahltaster_D) (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt) 2 (S.L.antrieb_getr_gangvorwahl) {endif} 0 (S.L.cockpit_gangR) (S.L.cockpit_gangN) (S.L.cockpit_gang2) (S.L.cockpit_gang3) (S.L.cockpit_gangD) 1 (S.L.cockpit_gang1) 1 (S.L.cockpit_gang_sw) {end} {trigger:automatic_1_off} (L.L.cockpit_gang_sw) 1 = {if} 0.7 (S.L.cockpit_gang1) {endif} {end} {trigger:klappsitzR} (L.L.klappsitzR_pax) ! {if} (L.L.klappsitzR) ! (S.L.klappsitzR) {if} (T.L.ev_klappsitz_runter) {else} (T.L.ev_klappsitz_hoch) {endif} {endif} {end} {trigger:klappsitzL} (L.L.klappsitzL_pax) ! {if} (L.L.klappsitzL) ! (S.L.klappsitzL) {if} (T.L.ev_klappsitz_runter) {else} (T.L.ev_klappsitz_hoch) {endif} {endif} {end} {trigger:2_klappsitz_R} (L.L.2_klappsitz_R_pax) ! {if} (L.L.2_klappsitz_R) ! (S.L.2_klappsitz_R) {if} (T.L.ev_klappsitz_2_runter) {else} (T.L.ev_klappsitz_2_hoch) {endif} {endif} {end} {trigger:2_klappsitz_L} (L.L.2_klappsitz_L_pax) ! {if} (L.L.2_klappsitz_L) ! (S.L.2_klappsitz_L) {if} (T.L.ev_klappsitz_2_runter) {else} (T.L.ev_klappsitz_2_hoch) {endif} {endif} {end} {trigger:3_klappsitz_R} (L.L.3_klappsitz_R_pax) ! {if} (L.L.3_klappsitz_R) ! (S.L.3_klappsitz_R) {if} (T.L.ev_klappsitz_3_runter) {else} (T.L.ev_klappsitz_3_hoch) {endif} {endif} {end} {trigger:3_klappsitz_L} (L.L.3_klappsitz_L_pax) ! {if} (L.L.3_klappsitz_L) ! (S.L.3_klappsitz_L) {if} (T.L.ev_klappsitz_3_runter) {else} (T.L.ev_klappsitz_3_hoch) {endif} {endif} {end} {trigger:horn} (L.L.cockpit_hupe) ! (L.L.elec_busbar_main) && (L.L.engine_injection_on) && {if} (T.L.ev_hupe_an) {endif} 1 (S.L.cockpit_hupe) {end} {trigger:horn_off} (L.L.cockpit_hupe) (L.L.elec_busbar_main) && (L.L.engine_injection_on) && {if} (T.L.ev_hupe_aus) {endif} 0 (S.L.cockpit_hupe) {end} {trigger:cp_armlehne_L} (L.L.cp_armlehne_L) ! (S.L.cp_armlehne_L) {end} {trigger:cp_armlehne_R} (L.L.cp_armlehne_R) ! (S.L.cp_armlehne_R) {end} {trigger:pax_armlehne_1} (L.L.pax_armlehne_1) ! (S.L.pax_armlehne_1) {end} {trigger:pax_armlehne_2} (L.L.pax_armlehne_2) ! (S.L.pax_armlehne_2) {end} {trigger:pax_armlehne_3} (L.L.pax_armlehne_3) ! (S.L.pax_armlehne_3) {end} {trigger:pax_armlehne_4} (L.L.pax_armlehne_4) ! (S.L.pax_armlehne_4) {end} {trigger:vdv_sw_funk} 1 (S.L.vdv_sw_funk) (T.L.ev_wippschaltereinsound) (L.L.elec_busbar_main) (S.L.cockpit_light_funk) {end} {trigger:vdv_sw_funk_off} 0 (S.L.vdv_sw_funk) (S.L.cockpit_light_funk) (T.L.ev_wippschalteraussound) {end} {trigger:kw_wipermode_up} 1 (S.L.cp_wischersw_change) {end} {trigger:cp_wiperlever_drag} ' Fallunterscheidung: Hebel in x- oder y-Richtung? (L.S.mouse_y) abs (L.S.mouse_x) abs >= {if} (L.S.mouse_y) -50 / (L.L.cockpit_wischerhebel) + 0 max 1 min (S.L.cockpit_wischerhebel) s0 ' Stufen: ' 0: Aus ' 1: Intervall ' 2: Langsam ' 3: Schnell l0 0.17 < {if} 0 (S.L.cockpit_wischerhebel_mode) (S.L.cp_wischer_intervall_sw) (S.L.cp_wischer_einaus_sw) (S.L.cp_wischer_schnell_sw) {else} l0 0.5 < {if} 1 (S.L.cockpit_wischerhebel_mode) (S.L.cp_wischer_intervall_sw) 0 (S.L.cp_wischer_schnell_sw) (S.L.cp_wischer_einaus_sw) {else} l0 0.83 < {if} 2 (S.L.cockpit_wischerhebel_mode) 1 (S.L.cp_wischer_einaus_sw) 0 (S.L.cp_wischer_intervall_sw) (S.L.cp_wischer_schnell_sw) {else} 3 (S.L.cockpit_wischerhebel_mode) 1 (S.L.cp_wischer_einaus_sw) (S.L.cp_wischer_schnell_sw) 0 (S.L.cp_wischer_intervall_sw) {endif} {endif} {endif} {else} (L.S.mouse_x) -50 / (L.L.cockpit_wischerhebel_x) + 0 max 1 min (S.L.cockpit_wischerhebel_x) s1 ' Waschanlage (Hebel nach oben) l1 0.9 > {if} (L.L.cp_wischer_wascher_sw) ! {if} (T.L.ev_wischerdrehschalter) {endif} 1 (S.L.cp_wischer_wascher_sw) {else} (L.L.cp_wischer_wascher_sw) {if} (T.L.ev_wischerdrehschalter) {endif} 0 (S.L.cp_wischer_wascher_sw) {endif} {endif} {endif} {end} {trigger:cp_wiperlever_off} ' Einrasten auf den festen Positionen: (L.L.cockpit_wischerhebel_mode) 3 / (S.L.cockpit_wischerhebel) (L.L.cp_wischer_wascher_sw) {if} (T.L.ev_wischerdrehschalter) 0 (S.L.cockpit_wischerhebel_x) (S.L.cp_wischer_wascher_sw) {endif} {end} {trigger:cp_wiper_turnswitch_drag} (L.S.mouse_y) -50 / (L.L.cockpit_wischer_drehschalter) + 0 max 1 min (S.L.cockpit_wischer_drehschalter) s0 ' Stufen: ' 0: Intervall ' 1: Aus ' 2: Langsam ' 3: Schnell l0 0.17 < {if} 1 (S.L.cp_wischer_intervall_sw) 0 (S.L.cockpit_wischer_drehschalter_mode) (S.L.cockpit_wischer_drehschalter_lastmode) (S.L.cp_wischer_schnell_sw) (S.L.cp_wischer_einaus_sw) (T.L.ev_wischerdrehschalter_dreh) {else} l0 0.5 < {if} 0 (S.L.cp_wischer_intervall_sw) (S.L.cp_wischer_einaus_sw) (S.L.cp_wischer_schnell_sw) (L.L.cockpit_wischer_drehschalter_mode) s0 0 = {if} 0 (S.L.cockpit_wischer_drehschalter_lastmode) {else} l0 2 = {if} 2 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} {endif} 1 (S.L.cockpit_wischer_drehschalter_mode) (T.L.ev_wischerdrehschalter_dreh) {else} l0 0.83 < {if} (L.L.cockpit_wischer_drehschalter_mode) s0 3 = {if} 3 (S.L.cockpit_wischer_drehschalter_lastmode) {else} l0 1 = {if} 1 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} {endif} 2 (S.L.cockpit_wischer_drehschalter_mode) 1 (S.L.cp_wischer_einaus_sw) 0 (S.L.cp_wischer_intervall_sw) (S.L.cp_wischer_schnell_sw) (T.L.ev_wischerdrehschalter_dreh) {else} (L.L.cockpit_wischer_drehschalter_mode) s0 2 = {if} 2 (S.L.cockpit_wischer_drehschalter_lastmode) {else} l0 4 = {if} 4 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} {endif} 3 (S.L.cockpit_wischer_drehschalter_mode) 1 (S.L.cp_wischer_einaus_sw) (S.L.cp_wischer_schnell_sw) 0 (S.L.cp_wischer_intervall_sw) (T.L.ev_wischerdrehschalter_dreh) {endif} {endif} {endif} {end} {trigger:cp_wiper_turnswitch_off} ' Einrasten auf den festen Positionen: (L.L.cockpit_wischer_drehschalter_mode) 3 / (S.L.cockpit_wischer_drehschalter) {end} {trigger:cp_rollo_drag} (L.L.cp_rollo_pos) (S.L.cp_rollo_lastpos) 1 (S.L.cp_rollo_dragged) 0 (S.L.cp_rollo_speed) (L.S.mouse_y) 500 / (L.L.cp_rollo_pos) + (S.L.cp_rollo_pos) s0 l0 0 < {if} 0 (S.L.cp_rollo_pos) {endif} l0 1 > {if} 1 (S.L.cp_rollo_pos) {endif} (L.L.cp_rollo_pos) (L.L.cp_rollo_lastpos) - abs (L.S.Timegap) / (S.L.cp_rollo_speed) {end} {trigger:cp_rollo_off} 0 (S.L.cp_rollo_dragged) (T.L.ev_rollo_end) {end} {trigger:cp_rollo_retract} (L.L.cp_rollo_bommel) 0 = (L.L.cp_rollo_pos) && {if} (T.L.ev_rollo_retract) {endif} 1 (S.L.cp_rollo_bommel) (S.L.cp_rollo_retract) {end} {trigger:cp_rollo_retract_off} 0 (S.L.cp_rollo_bommel) (S.L.cp_rollo_retract) (S.L.cp_rollo_speed) {end} {trigger:cp_rollo2_drag} (L.L.cp_rollo2_pos) (S.L.cp_rollo2_lastpos) 1 (S.L.cp_rollo2_dragged) 0 (S.L.cp_rollo2_speed) (L.S.mouse_y) 500 / (L.L.cp_rollo2_pos) + (S.L.cp_rollo2_pos) s0 l0 0 < {if} 0 (S.L.cp_rollo2_pos) {endif} l0 1 > {if} 1 (S.L.cp_rollo2_pos) {endif} (L.L.cp_rollo2_pos) (L.L.cp_rollo2_lastpos) - abs (L.S.Timegap) / (S.L.cp_rollo2_speed) {end} {trigger:cp_rollo2_off} 0 (S.L.cp_rollo2_dragged) (T.L.ev_rollo2_end) {end} {trigger:cp_rollo2_retract} (L.L.cp_rollo2_bommel) 0 = (L.L.cp_rollo2_pos) && {if} (T.L.ev_rollo2_retract) {endif} 1 (S.L.cp_rollo2_bommel) (S.L.cp_rollo2_retract) {end} {trigger:cp_rollo2_retract_off} 0 (S.L.cp_rollo2_bommel) (S.L.cp_rollo2_retract) (S.L.cp_rollo2_speed) {end} {trigger:cp_rollo3_drag} (L.L.cp_rollo3_pos) (S.L.cp_rollo3_lastpos) 1 (S.L.cp_rollo3_dragged) 0 (S.L.cp_rollo3_speed) (L.S.mouse_y) 500 / (L.L.cp_rollo3_pos) + (S.L.cp_rollo3_pos) s0 l0 0 < {if} 0 (S.L.cp_rollo3_pos) {endif} l0 1 > {if} 1 (S.L.cp_rollo3_pos) {endif} (L.L.cp_rollo3_pos) (L.L.cp_rollo3_lastpos) - abs (L.S.Timegap) / (S.L.cp_rollo3_speed) {end} {trigger:cp_rollo3_off} 0 (S.L.cp_rollo3_dragged) (T.L.ev_rollo3_end) {end} {trigger:cp_rollo3_retract} (L.L.cp_rollo3_bommel) 0 = (L.L.cp_rollo3_pos) && {if} (T.L.ev_rollo3_retract) {endif} 1 (S.L.cp_rollo3_bommel) (S.L.cp_rollo3_retract) {end} {trigger:cp_rollo3_retract_off} 0 (S.L.cp_rollo3_bommel) (S.L.cp_rollo3_retract) (S.L.cp_rollo3_speed) {end} {trigger:cp_slidewin_drag} (L.L.cp_fahrerfenster_pos) (S.L.cp_fahrerfenster_lastpos) (L.S.mouse_x) 200 / (L.S.mouse_y) -200 / + (L.L.cp_fahrerfenster_pos) + 1 (L.L.cp_fahrerfenster_pos) - min (S.L.cp_fahrerfenster_pos) s0 l0 0 > (L.L.cp_fahrerfenster_lastpos) 0.01 < && {if} (T.L.ev_fahrerfenster_opn) {endif} l0 0 < {if} 0 (S.L.cp_fahrerfenster_pos) (L.L.cp_fahrerfenster_endanschlag) ! {if} (T.L.ev_fahrerfenster_cls) {endif} 1 (S.L.cp_fahrerfenster_endanschlag) {endif} l0 1 >= {if} 1 (S.L.cp_fahrerfenster_pos) (L.L.cp_fahrerfenster_endanschlag) ! {if} (T.L.ev_fahrerfenster_anschlag) {endif} 1 (S.L.cp_fahrerfenster_endanschlag) {endif} (L.L.cp_fahrerfenster_pos) s0 0 > l0 1 < && {if} 0 (S.L.cp_fahrerfenster_endanschlag) {endif} (L.L.cp_fahrerfenster_pos) (L.L.cp_fahrerfenster_lastpos) - abs (L.S.Timegap) / (S.L.cp_fahrerfenster_speed) {end} {trigger:cp_slidewin_off} 0 (S.L.cp_fahrerfenster_speed) {end} ' Sonnenblende {trigger:cp_blende_opn_drag} (L.L.cp_blende_pos) (S.L.cp_blende_lastpos) (L.S.mouse_x) 400 / (L.L.cp_blende_pos) + (S.L.cp_blende_pos) s0 l0 0 < {if} 0 (S.L.cp_blende_pos) (L.L.cp_blende_endanschlag) ! {if} (T.L.ev_blende_cls) {endif} 1 (S.L.cp_blende_endanschlag) {endif} l0 1 > {if} 1 (S.L.cp_blende_pos) (L.L.cp_blende_endanschlag) ! {if} (T.L.ev_blende_opn) {endif} 1 (S.L.cp_blende_endanschlag) {endif} (L.L.cp_blende_pos) s0 0 > l0 1 < && {if} 0 (S.L.cp_blende_endanschlag) {endif} (L.L.cp_blende_pos) (L.L.cp_blende_lastpos) - abs (L.S.Timegap) / (S.L.cp_blende_speed) {end} ' Verstellung Armaturenbrett {trigger:vdv_verstellbar_sw} (L.L.vdv_verstellbar_sw) ! s0 (S.L.vdv_verstellbar_sw) l0 0 = {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:vdv_move_drag} (L.L.vdv_verstellbar) {if} (L.S.mouse_y) -300 / (L.L.vdv_move_y) + (S.L.vdv_move_y) s0 l0 0 < {if} 0 (S.L.vdv_move_y) (L.L.vdv_move_yendanschlag) ! {if} (T.L.vdv_move_up) {endif} 1 (S.L.vdv_move_yendanschlag) {endif} l0 0.8 > {if} 0.8 (S.L.vdv_move_y) (L.L.vdv_move_yendanschlag) ! {if} (T.L.vdv_move_down) {endif} 1 (S.L.vdv_move_yendanschlag) {endif} (L.L.vdv_move_y) s0 0 > l0 0.8 < && {if} 0 (S.L.vdv_move_yendanschlag) {endif} (L.S.mouse_x) 400 / (L.L.vdv_move_x) + (S.L.vdv_move_x) s0 l0 0 < {if} 0 (S.L.vdv_move_x) (L.L.vdv_move_xendanschlag) ! {if} (T.L.vdv_move_up) {endif} 1 (S.L.vdv_move_xendanschlag) {endif} l0 0.53 > {if} 0.53 (S.L.vdv_move_x) (L.L.vdv_move_xendanschlag) ! {if} (T.L.vdv_move_down) {endif} 1 (S.L.vdv_move_xendanschlag) {endif} (L.L.vdv_move_x) s0 0 > l0 0.53 < && {if} 0 (S.L.vdv_move_xendanschlag) {endif} {endif} {end} ' Lichtdrehschalter {trigger:cp_lichtschalter_mov_drag} (L.S.mouse_y) abs (L.S.mouse_x) abs > {if} ' Translation (L.S.mouse_y) 150 / (L.L.vdv_lichtschalter_trans) + 0 max 1 min (S.L.vdv_lichtschalter_trans) s0 l0 0.25 < {if} (L.L.vdv_lichtschalter_trans_mode) 0 > {if} (T.L.ev_lichtdrehschalter_zieh) {endif} 0 (S.L.vdv_lichtschalter_trans_mode) (S.L.cp_nebel_targeton) (S.L.cp_taster_nebelschluss_target) {endif} l0 0.25 >= l0 0.75 < && {if} (L.L.vdv_lichtschalter_trans_mode) 0.5 = ! {if} (T.L.ev_lichtdrehschalter_zieh) {endif} 0 (S.L.cp_taster_nebelschluss_target) 0.5 (S.L.vdv_lichtschalter_trans_mode) 1 (S.L.cp_nebel_targeton) {endif} l0 0.75 > {if} (L.L.vdv_lichtschalter_trans_mode) 1 < {if} (T.L.ev_lichtdrehschalter_zieh) {endif} 1 (S.L.vdv_lichtschalter_trans_mode) (S.L.cp_nebel_targeton) (S.L.cp_taster_nebelschluss_target) {endif} {else} ' Rotation (L.S.mouse_x) 70 / (L.L.vdv_lichtschalter_rot) + 0 max 1 min (S.L.vdv_lichtschalter_rot) s0 l0 0.25 < {if} (L.L.lights_mode) 0 = ! {if} (T.L.ev_lichtdrehschalter_aus) {endif} 0 (S.L.vdv_lichtschalter_rot_mode) (S.L.lights_mode) {endif} l0 0.25 >= l0 0.75 < && {if} (L.L.lights_mode) 1 = ! {if} (T.L.ev_lichtdrehschalter_dreh) {endif} 0.5 (S.L.vdv_lichtschalter_rot_mode) 1 (S.L.lights_mode) {endif} l0 0.75 > {if} (L.L.lights_mode) 2 = ! {if} (T.L.ev_lichtdrehschalter_an) {endif} 1 (S.L.vdv_lichtschalter_rot_mode) 2 (S.L.lights_mode) {endif} {endif} {end} {trigger:cp_lichtschalter_mov_drag_off} ' Einrasten (L.L.vdv_lichtschalter_trans_mode) (S.L.vdv_lichtschalter_trans) (L.L.vdv_lichtschalter_rot_mode) (S.L.vdv_lichtschalter_rot) {end} 'Trigger für Tastaturbedienung: {trigger:kw_m_enginestart} (L.L.engine_on) {if} 1 (S.L.vdv_motor_sw) {else} -1 (S.L.vdv_motor_sw) {endif} (T.L.ev_wippschaltereinsound) (L.L.cp_schluessel_trans_mode) 1 = (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && {if} (L.L.cp_schluessel_rot_mode) 1 < (L.L.engine_on) && (L.L.Velocity) 15 < && (L.L.antrieb_getr_aktugang) 2 < && (L.L.engine_ignition) 0 = && {if} 2 (S.L.engine_ignition) (T.L.ev_cp_engineoff) 0.33 (S.L.cp_schluessel_rot) (S.L.cp_schluessel_rot_mode) (L.L.globaltimer) (S.L.intlights_counter) 1 (S.L.vdv_display_rot_wennstop) {endif} (L.L.engine_on) ! (L.L.engine_ignition) 3 = && (L.L.elec_busbar_main) && (L.L.engine_ign_failure) ! && (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1.2 + > && (L.L.antrieb_getr_gangvorwahl) 1 = && (L.L.cockpit_gang_sw) 0 = && (L.L.cp_killsw_notaus) ! && {if} ' (T.L.ev_enginestart) ' (L.L.globaltimer) (S.L.engine_ignitiontime) 1 (S.L.engine_ignition) (S.L.cp_schluessel_rot) (S.L.cp_schluessel_rot_mode) (T.L.ev_schluessel_dreh) {endif} {endif} {end} {trigger:cp_sw_löschen} (L.L.cp_sw_löschen) ! (S.L.cp_sw_löschen) {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:kw_m_enginestart_off} 0 (S.L.vdv_motor_sw) (T.L.ev_wippschalteraussound) (L.L.cp_schluessel_trans_mode) 1 = (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && (L.L.elec_busbar_main_sw) && {if} (L.L.engine_injection_on) (L.L.engine_stopwait) 0 = && {if} 0.66 (S.L.cp_schluessel_rot_mode) (S.L.cp_schluessel_rot) (T.L.ev_schluessel_raus) {else} 0.33 (S.L.cp_schluessel_rot_mode) (S.L.cp_schluessel_rot) (T.L.ev_schluessel_raus) {endif} (L.L.engine_ignition) 1 = {if} 3 (S.L.engine_ignition) {endif} {endif} {end} {trigger:cp_batterietrennschalter_toggle} 1 (S.L.vdv_elec_safe_sw) (T.L.ev_wippschalterFeinsound) (L.L.elec_busbar_main_sw) ! (S.L.elec_busbar_main_sw) {if} 1 (S.L.cp_schluessel_trans_mode) (S.L.cp_schluessel_trans) (S.L.elec_busbar_main_sw) (S.L.cockpit_relaissound) 0.33 (S.L.cp_schluessel_rot_mode) (S.L.cp_schluessel_rot) (L.L.globaltimer) (S.L.cockpit_schluesselzeit) {else} 0 (S.L.cp_schluessel_rot_mode) (S.L.cp_schluessel_rot) (S.L.elec_busbar_main_sw) (T.L.ev_schluessel_aus) {endif} {end} {trigger:cp_batterietrennschalter_toggle_off} 0 (S.L.vdv_elec_safe_sw) (T.L.ev_wippschalterFaussound) {end} {trigger:cp_lenkrad_toggle} (L.L.cp_lenkrad_visible) ! (S.L.cp_lenkrad_visible) {end} {trigger:cp_kombiU_toggle} (L.L.cp_kombiU_visible) ! (S.L.cp_kombiU_visible) {end} {trigger:cp_kombiM_toggle} (L.L.cp_kombiM_visible) ! (S.L.cp_kombiM_visible) {end} {trigger:cp_kombiL_toggle} (L.L.cp_kombiL_visible) ! (S.L.cp_kombiL_visible) {end} {trigger:cp_hornU_toggle} (L.L.cp_hornU_visible) ! (S.L.cp_hornU_visible) {end} {trigger:cp_hornM_toggle} (L.L.cp_hornM_visible) ! (S.L.cp_hornM_visible) {end} {trigger:cp_hornL_toggle} (L.L.cp_hornL_visible) ! (S.L.cp_hornL_visible) {end} {trigger:cp_klappfensterR} (L.L.cp_klappfensterR) ! (S.L.cp_klappfensterR) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfensterL} (L.L.cp_klappfensterL) ! (S.L.cp_klappfensterL) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster2R} (L.L.cp_klappfenster2R) ! (S.L.cp_klappfenster2R) s1 (M.L.klappfenster2sound) {end} {trigger:cp_klappfenster2L} (L.L.cp_klappfenster2L) ! (S.L.cp_klappfenster2L) s1 (M.L.klappfenster2sound) {end} {trigger:cp_klappfenster_ht_L} (L.L.cp_klappfenster_ht_L) ! (S.L.cp_klappfenster_ht_L) s1 (M.L.klappfenster2sound) {end} {trigger:cp_klappfenster_ht_R} (L.L.cp_klappfenster_ht_R) ! (S.L.cp_klappfenster_ht_R) s1 (M.L.klappfenstersound_ht) {end} {trigger:cp_klappfenster3R} (L.L.cp_klappfenster3R) ! (S.L.cp_klappfenster3R) s1 (M.L.klappfenster3sound) {end} {trigger:cp_klappfenster3L} (L.L.cp_klappfenster3L) ! (S.L.cp_klappfenster3L) s1 (M.L.klappfenster3sound) {end} {trigger:cp_klappfenster4R} (L.L.cp_klappfenster4R) ! (S.L.cp_klappfenster4R) s1 (M.L.klappfenster4sound) {end} {trigger:cp_klappfenster4L} (L.L.cp_klappfenster4L) ! (S.L.cp_klappfenster4L) s1 (M.L.klappfenster4sound) {end} {trigger:cp_Fahrertuer_Klinke} 1 (S.L.cp_fahrertuer_entriegelt) (S.L.cp_fahrertuer_riegel) 0.02 (S.L.cp_fahrertuer_pos) (S.L.cp_fahrertuer_lastpos) {end} {trigger:cp_Fahrertuer_Klinke_off} 0 (S.L.cp_fahrertuer_riegel) {end} {trigger:cp_Fahrertuer_drag} (L.L.cp_fahrertuer_entriegelt) {if} 1 (S.L.cp_fahrertuer_dragged) (L.L.cp_fahrertuer_pos) (S.L.cp_fahrertuer_lastpos) (L.S.mouse_x) 500 / (L.L.cp_fahrertuer_pos) + (S.L.cp_fahrertuer_pos) s0 l0 0 < {if} 0 (S.L.cp_fahrertuer_pos) {endif} l0 1 > {if} 1 (S.L.cp_fahrertuer_pos) {endif} (L.L.cp_fahrertuer_pos) (L.L.cp_fahrertuer_lastpos) - (L.S.Timegap) / (S.L.cp_fahrertuer_speed) {endif} {end} {trigger:cp_Fahrertuer_off} 0 (S.L.cp_fahrertuer_dragged) {end} {trigger:cp_lockdoors_toggle} (L.L.cp_lockdoors_targeton) 0 = {if} (T.L.ev_wippschaltereinsound) 1 (S.L.cp_lockdoors_targeton) {else} (T.L.ev_wippschalteraussound) 0 (S.L.cp_lockdoors_targeton) {endif} {end} {trigger:cp_locksingledoor_L} (L.L.cp_locksingledoor_sw) s0 l0 0 = {if} -1 (S.L.cp_locksingledoor_sw) (T.L.ev_wippschaltereinsound) {endif} l0 1 = {if} 0 (S.L.cp_locksingledoor_sw) (T.L.ev_wippschalteraussound) {endif} {end} {trigger:cp_locksingledoor_R} (L.L.cp_locksingledoor_sw) s0 l0 0 = {if} 1 (S.L.cp_locksingledoor_sw) (T.L.ev_wippschaltereinsound) {endif} l0 -1 = {if} 0 (S.L.cp_locksingledoor_sw) (T.L.ev_wippschalteraussound) {endif} {end} {trigger:cp_tuertot} 1 (S.L.cp_tuertot_sw) (L.L.elec_busbar_main_sw) {if} (L.L.doorEntriegelung_aussen_tot) ! {if} (T.L.ev_tuertot_an) {else} (T.L.ev_tuertot_aus) {endif} (S.L.doorEntriegelung_aussen_tot) {endif} (T.L.ev_wippschaltereinsound) {end} {trigger:cp_tuertot_off} 0 (S.L.cp_tuertot_sw) (T.L.ev_wippschalteraussound) {end} {trigger:cp_vent_umluft} (L.L.cp_vent_umluft_target) ! s0 (S.L.cp_vent_umluft_target) l0 1 = {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:cp_stopbrake_toggle} (L.L.cp_stopbrake_targeton) 0 = {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} (L.L.cp_stopbrake_targeton) ! (S.L.cp_stopbrake_targeton) (S.L.bremse_halte_sw) {end} {trigger:vdv_sw_deckenlueft} (L.L.cp_roofvent_targeton) 0 = {if} (T.L.ev_wippschaltereinsound) 1 (S.L.cp_roofvent_targeton) {else} (T.L.ev_wippschalteraussound) 0 (S.L.cp_roofvent_targeton) {endif} {end} {trigger:vdv_sw_tuerfreigabe} (L.L.vdv_sw_tuerfreigabe) 0 = {if} (T.L.ev_wippschaltereinsound) 1 (S.L.vdv_sw_tuerfreigabe) (S.L.door_freigabe) {else} (T.L.ev_wippschalteraussound) 0 (S.L.vdv_sw_tuerfreigabe) (S.L.door_freigabe) {endif} {end} {trigger:vdv_sw_schulbetrieb} (L.L.vdv_sw_schulbetrieb) ! (S.L.vdv_sw_schulbetrieb) (S.L.lights_schulbetrieb) {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:vdv_setventmode_drag} (L.S.mouse_x) -150 / (L.S.mouse_y) -150 / + (L.L.vdv_setventmode_rot) + 0 max 1 min (S.L.vdv_setventmode_rot) ' Einrasten Lueftungsknopf (L.L.vdv_setventmode_rot) 0 > (L.L.vdv_setventmode_rot) 0.25 < && {if} 0 (S.L.vdv_setventmode_rot_mode) {endif} (L.L.vdv_setventmode_rot) 0.25 >= (L.L.vdv_setventmode_rot) 0.5 < && {if} 0.33 (S.L.vdv_setventmode_rot_mode) {endif} (L.L.vdv_setventmode_rot) 0.5 >= (L.L.vdv_setventmode_rot) 0.75 < && {if} 0.66 (S.L.vdv_setventmode_rot_mode) {endif} (L.L.vdv_setventmode_rot) 0.75 >= {if} 1 (S.L.vdv_setventmode_rot_mode) {endif} {end} {trigger:vdv_setflaps_drag} (L.S.mouse_x) -150 / (L.S.mouse_y) -150 / + (L.L.vdv_setflaps_rot) + 0 max 1 min (S.L.vdv_setflaps_rot) ' Einrasten Lueftungsknopf (L.L.vdv_setflaps_rot) 0 > (L.L.vdv_setflaps_rot) 0.15 < && {if} 0 (S.L.vdv_setflaps_rot_mode) {endif} (L.L.vdv_setflaps_rot) 0.15 >= (L.L.vdv_setflaps_rot) 0.35 < && {if} 0.25 (S.L.vdv_setflaps_rot_mode) {endif} (L.L.vdv_setflaps_rot) 0.35 >= (L.L.vdv_setflaps_rot) 0.55 < && {if} 0.5 (S.L.vdv_setflaps_rot_mode) {endif} (L.L.vdv_setflaps_rot) 0.55 >= (L.L.vdv_setflaps_rot) 0.75 < && {if} 0.75 (S.L.vdv_setflaps_rot_mode) {endif} (L.L.vdv_setflaps_rot) 0.75 >= {if} 1 (S.L.vdv_setflaps_rot_mode) {endif} {end} {trigger:vdv_sw_unterstuhl_L} (L.L.cp_floorventsw_mode) 0 = {if} (T.L.ev_wippschaltereinsound) 1 (S.L.cp_floorventsw_mode) {endif} (L.L.cp_floorventsw_mode) -1 = {if} (T.L.ev_wippschalteraussound) 0 (S.L.cp_floorventsw_mode) {endif} {end} {trigger:vdv_sw_unterstuhl_U} (L.L.cp_floorventsw_mode) 0 = {if} (T.L.ev_wippschaltereinsound) -1 (S.L.cp_floorventsw_mode) {endif} (L.L.cp_floorventsw_mode) 1 = {if} (T.L.ev_wippschalteraussound) 0 (S.L.cp_floorventsw_mode) {endif} {end} {trigger:cp_vent_scheibenheizung} (L.L.cp_windshieldheat_targeton) ! s0 (S.L.cp_windshieldheat_targeton) l0 1 = {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:vdv_sidewindow_sw} (L.L.cp_sidewindowheatsw_targeton) ! s0 (S.L.cp_sidewindowheatsw_targeton) l0 1 = {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:cp_fahrerlicht_toggle} (L.L.cp_intlightsdriver_targeton) ! s0 (S.L.cp_intlightsdriver_targeton) l0 1 = {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:cp_buchlicht_toggle} (L.L.cp_buchlicht_sw) ! s0 (S.L.cp_buchlicht_sw) l0 1 = {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} {end} {trigger:cp_innenlicht_swL} (L.L.cp_intlights_targeton) s0 l0 -1 = {if} 0 (S.L.cp_intlights_1) (S.L.cp_intlights_2) (S.L.cp_intlights_targeton) (M.L.wippschalteraussound) {endif} l0 0 = {if} 1 (S.L.cp_intlights_1) (S.L.cp_intlights_targeton) 0 (S.L.cp_intlights_2) (M.L.wippschaltereinsound) {endif} {end} {trigger:cp_innenlicht_swU} (L.L.cp_intlights_targeton) s0 l0 1 = {if} 0 (S.L.cp_intlights_1) (S.L.cp_intlights_2) (S.L.cp_intlights_targeton) (M.L.wippschalteraussound) {endif} l0 0 = {if} -1 (S.L.cp_intlights_targeton) 1 (S.L.cp_intlights_2) (M.L.wippschaltereinsound) {endif} {end} {trigger:cp_licht_oberdeck_toggle} (L.L.cp_intlights_targeton) s0 l0 0 = ! {if} 0 (S.L.cp_intlights_1) (S.L.cp_intlights_2) (S.L.cp_intlights_targeton) (M.L.wippschalteraussound) {endif} l0 0 = {if} -1 (S.L.cp_intlights_targeton) 1 (S.L.cp_intlights_2) (M.L.wippschaltereinsound) {endif} {end} {trigger:cp_licht_untenrechts_toggle} (L.L.cp_intlights_targeton) s0 l0 0 = ! {if} 0 (S.L.cp_intlights_1) (S.L.cp_intlights_2) (S.L.cp_intlights_targeton) (M.L.wippschalteraussound) {endif} l0 0 = {if} 1 (S.L.cp_intlights_1) (S.L.cp_intlights_targeton) 0 (S.L.cp_intlights_2) (M.L.wippschaltereinsound) {endif} {end} {trigger:cp_driverventsw_toggleon} (L.L.cp_driverventsw_mode) 0 = {if} (T.L.ev_wippschaltereinsound) 1 (S.L.cp_driverventsw_mode) {endif} (L.L.cp_driverventsw_mode) -1 = {if} (T.L.ev_wippschalteraussound) 0 (S.L.cp_driverventsw_mode) {endif} {end} {trigger:cp_driverventsw_toggleoff} (L.L.cp_driverventsw_mode) 0 = {if} (T.L.ev_wippschaltereinsound) -1 (S.L.cp_driverventsw_mode) {endif} (L.L.cp_driverventsw_mode) 1 = {if} (T.L.ev_wippschalteraussound) 0 (S.L.cp_driverventsw_mode) {endif} {end} {trigger:cp_asroffsw_toggle} (L.L.cp_asroffsw_targeton) 0 = {if} (T.L.ev_wippschaltereinsound) {else} (T.L.ev_wippschalteraussound) {endif} (L.L.cp_asroffsw_targeton) ! (S.L.cp_asroffsw_targeton) {end} {trigger:cp_nebel_toggleon} (L.L.cp_nebel_targeton) 0 = {if} (T.L.ev_wippschaltereinsound) {endif} 1 (S.L.cp_nebel_targeton) {end} {trigger:cp_nebel_toggleoff} (L.L.cp_nebel_targeton) 1 = {if} (T.L.ev_wippschalteraussound) {endif} (L.L.cp_nebel_targetoff) 0 (S.L.cp_nebel_targeton) {end} {trigger:cp_microphone} 1 (S.L.cp_microphone_sw) {end} {trigger:cp_microphone_off} 0 (S.L.cp_microphone_sw) {end} {trigger:cp_radiopedal} 1 (S.L.cp_radiopedal_sw) (T.L.ev_wippschaltereinsound) {end} {trigger:cp_radiopedal_off} 0 (S.L.cp_radiopedal_sw) (T.L.ev_wippschalteraussound) {end} {trigger:vdv_hatch1} (L.L.vdv_hatch1_set) s0 l0 0 = {if} -1 (S.L.vdv_hatch1_sw) (T.L.ev_wippschaltereinsound) 1 (S.L.vdv_hatch1_set) {else} 1 (S.L.vdv_hatch1_sw) (T.L.ev_wippschaltereinsound) 0 (S.L.vdv_hatch1_set) {endif} {end} {trigger:vdv_hatch1_off} 0 (S.L.vdv_hatch1_sw) (T.L.ev_wippschalteraussound) {end} {trigger:vdv_hatch2_drag} (L.S.mouse_y) 100 / (L.S.mouse_x) -100 / + s0 l0 0 > {if} l0 (L.L.vdv_hatch2_set) + 3 min (S.L.vdv_hatch2_set) {endif} l0 0 < {if} l0 (L.L.vdv_hatch2_set) + 0 max (S.L.vdv_hatch2_set) {endif} {end} {trigger:vdv_sw_display} 1 (S.L.vdv_sw_display) (L.L.vdv_display_an) (L.L.vdv_display_rot) ! && (L.L.vdv_display_seq) ! && {if} (L.L.vdv_display_menu) s0 l0 0 = {if} 1 (S.L.vdv_display_menu) {endif} l0 1 = {if} 2 (S.L.vdv_display_menu) {endif} l0 3 = {if} (L.L.vdv_display_halt) ! {if} 0 (S.L.vdv_display_menu) (S.L.vdv_display_gelb_viewtimer) {else} (L.L.vdv_display_gelb_viewseq) 1 + (S.L.vdv_display_gelb_viewseq) {endif} {endif} l0 2 = {if} (L.L.vdv_display_gelb) ! {if} 0 (S.L.vdv_display_menu) (S.L.vdv_display_gelb_viewtimer) {else} (L.L.vdv_display_halt) ! {if} 3 (S.L.vdv_display_menu) 1 (S.L.vdv_display_gelb_viewseq) {else} 3 (S.L.vdv_display_menu) (L.L.vdv_display_gelb_viewseq) 1 + (S.L.vdv_display_gelb_viewseq) {endif} {endif} {endif} {endif} (L.L.vdv_display_an) (L.L.vdv_display_rot) && (L.L.vdv_display_seq) ! && (L.L.vdv_display_rot_multiple) && {if} (L.L.vdv_display_rot_viewseq) 1 + s0 l0 10 < {if} l0 (S.L.vdv_display_rot_viewseq) {else} 0 (S.L.vdv_display_rot_viewseq) {endif} {endif} (T.L.ev_wippschaltereinsound) {end} {trigger:vdv_sw_display_off} 0 (S.L.vdv_sw_display) (T.L.ev_wippschalteraussound) {end} {trigger:vdv_niveau_sw_U} 1 (S.L.niveau_setlevel_dir) 1 (S.L.cp_airride_targeton) (T.L.ev_wippschaltereinsound) {end} {trigger:vdv_niveau_sw_U_off} (T.L.ev_wippschalteraussound) 0 (S.L.cp_airride_targeton) {end} {trigger:vdv_niveau_sw_L} 0 (S.L.niveau_setlevel_dir) -1 (S.L.cp_airride_targeton) (T.L.ev_wippschaltereinsound) {end} {trigger:vdv_niveau_sw_L_off} (T.L.ev_wippschalteraussound) 0 (S.L.cp_airride_targeton) {end} {trigger:cp_schiebefenster_wippL} (M.L.wippschaltereinsound) 1 (S.L.cp_schiebefenster_sw) {end} {trigger:cp_schiebefenster_wippL_off} (M.L.wippschalteraussound) 0 (S.L.cp_schiebefenster_sw) {end} {trigger:cp_schiebefenster_wippU} (M.L.wippschaltereinsound) -1 (S.L.cp_schiebefenster_sw) {end} {trigger:cp_schiebefenster_wippU_off} (M.L.wippschalteraussound) 0 (S.L.cp_schiebefenster_sw) {end} {trigger:timetable_hide} (L.L.timetable_hide) ! (S.L.timetable_hide) {end} '---------------------- ' Init '---------------------- {macro:cockpit_init} 0 (S.L.cockpit_hupe_volume) (S.L.door_handsteuerung) (S.L.cockpit_gang_sw) 0.09 (S.L.cp_blende_pos) 1 (S.L.cp_lenkrad_visible) (S.L.doordisplay_on) 0.22 (S.L.vdv_move_x) 0.65 (S.L.vdv_move_y) 0 (S.L.cockpit_gangN) 0.0 (S.L.cockpit_wischer_drehschalter) {end} '---------------------- ' Frame '---------------------- {macro:cockpit_frame} '(L.L.Clutch) (S.L.Dirt_Norm) ' Timer fuer alle zeitbezogenen Bedingungen (L.L.globaltimer) (L.S.Timegap) + (S.L.globaltimer) ' Uebertragen der Schalterstellungen: (L.L.cp_wischer_schnell_sw) (S.L.wiper_schnell_sw) (L.L.cp_wischer_einaus_sw) (S.L.wiper_einaus_sw) (L.L.cp_wischer_intervall_sw) (S.L.wiper_intervall_sw) (L.L.cp_wischer_wascher_sw) (S.L.wiper_wascher_sw) (L.L.vdv_hatch2_set) 0.5 < {if} 0 (S.L.vdv_hatch2_sw) {endif} (L.L.vdv_hatch2_set) 0.5 >= l1 1.5 < && {if} 1 (S.L.vdv_hatch2_sw) {endif} (L.L.vdv_hatch2_set) 1.5 >= l1 2.5 < && {if} 2 (S.L.vdv_hatch2_sw) {endif} (L.L.vdv_hatch2_set) 2.5 >= {if} 3 (S.L.vdv_hatch2_sw) {endif} (M.L.tacho_frame) (M.L.uhr_frame) (M.L.hupe_frame) (M.L.blinkerhebel_frame) (M.L.wischerhebel_frame) (M.L.wischer_drehschalter_frame) (M.L.oeldruck_frame) (M.L.tankuhr_frame) (M.L.cockpitlights_frame) (M.L.schluessel_frame) (M.L.fahrertuer_frame) (M.L.odometer_frame) (M.L.kombi_frame) (M.L.horn_frame) (M.L.rollo_frame) (M.L.rollo2_frame) (M.L.rollo3_frame) (M.L.engine_thermometer_frame) (M.L.antrieb_thermometer_frame) (M.L.microphone_frame) (M.L.FahrgastpendelL) (M.L.FahrgastpendelR) (M.L.phys_animation) (M.L.vdv_display) ' Tuerkamera-Fahrerdisplay (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.elec_failure_general) ! && (L.L.doordisplay_on) && (L.L.Velocity) 5 < && (L.L.door_4) 0.2 > (L.L.door_5) 0.2 > || && (S.L.doordisplay_3) ' Licht am Klemmbrett (L.L.fahrertuer_licht_sw) (L.L.elec_busbar_main) * (S.L.fahrertuer_licht) ' Elektr. Schiebefenster (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.elec_failure_general) ! && {if} (L.L.cp_schiebefenster_sw) 0 > {if} (L.L.cp_fahrerfenster_pos) 0 <= {if} (T.L.ev_fahrerfenster_auf_anfang) {endif} (L.L.cp_fahrerfenster_pos) 1 >= (L.L.cp_fahrerfenster_mov_auf) && {if} (T.L.ev_fahrerfenster_auf_ende) {endif} (L.L.cp_fahrerfenster_pos) 1 < {if} 1 (S.L.cp_fahrerfenster_mov_auf) {else} 0 (S.L.cp_fahrerfenster_mov_auf) {endif} (L.L.cp_fahrerfenster_pos) (L.L.cp_schiebefenster_sw) 150 / + 1 min (S.L.cp_fahrerfenster_pos) {endif} (L.L.cp_schiebefenster_sw) 0 < {if} (L.L.cp_fahrerfenster_pos) 1 >= {if} (T.L.ev_fahrerfenster_zu_anfang) {endif} (L.L.cp_fahrerfenster_pos) 0 <= (L.L.cp_fahrerfenster_mov_zu) && {if} (T.L.ev_fahrerfenster_zu_ende) {endif} (L.L.cp_fahrerfenster_pos) 0 > {if} 1 (S.L.cp_fahrerfenster_mov_zu) {else} 0 (S.L.cp_fahrerfenster_mov_zu) {endif} (L.L.cp_fahrerfenster_pos) (L.L.cp_schiebefenster_sw) 150 / + 0 max (S.L.cp_fahrerfenster_pos) {endif} (L.L.cp_schiebefenster_sw) 0 = {if} 0 (S.L.cp_fahrerfenster_mov_zu) (S.L.cp_fahrerfenster_mov_auf) {endif} {else} 0 (S.L.cp_fahrerfenster_mov_zu) (S.L.cp_fahrerfenster_mov_auf) {endif} ' LCD-Uhr (L.S.Time) 3600 / s0 trunc s1 "02" $IntToStrEnh (S.$.cockpit_uhr_1) l0 l1 - 60 * "02" $IntToStrEnh (S.$.cockpit_uhr_2) ' Notloesen (L.L.elec_busbar_main_sw) {if} (L.L.cp_killsw_hst_sw) (L.L.cp_killsw_hst) = ! {if} (L.L.cp_killsw_hst_sw) (S.L.cp_killsw_hst) (T.L.ev_hauptschalter) {endif} {endif} (L.L.cp_killsw_batterie) {if} 0 (S.L.elec_busbar_main_sw) (S.L.elec_busbar_main) (S.L.elec_busbar_avail) (S.L.engine_injection_on) (S.L.engine_on) 1 (S.L.antrieb_EMR_failure) 2 (S.L.engine_ignition) {endif} ' Summer, Piepen usw. (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1.5 + > && {if} (L.L.engine_on) (L.L.globaltimer) (L.L.engine_starttime) 3 + > && {if} (L.L.doorEntriegelung_01) (L.L.Velocity) 1 > && (L.L.doorEntriegelung_23) || (L.L.doorEntriegelung_45) || (L.L.knickschutz_aktiv) || (L.L.knickschutz_2_aktiv) || (L.L.cp_notloese_anfahrsperre) (L.L.Velocity) 1 > && || (S.L.summer_dauer) {else} 0 (S.L.summer_dauer) {endif} {else} 0 (S.L.summer_dauer) (S.L.summer_piep) (S.L.nothahn_23_piep) (S.L.nothahn_45_piep) {endif} ' Verstellung VDV-Armaturen (L.L.vdv_verstellbar_sw) (L.L.elec_busbar_main_sw) (L.L.vdv_verstellbar) ! && && {if} 1 (S.L.vdv_verstellbar) (T.L.vdv_verstellung_an) {endif} (L.L.vdv_verstellbar_sw) ! (L.L.elec_busbar_main_sw) ! || (L.L.vdv_verstellbar) && {if} 0 (S.L.vdv_verstellbar) (T.L.vdv_verstellung_aus) {endif} ' Soundtrigger ' Relaissound: 0 = Schlüssel ab, 1 = Schlüssel drin wartet auf Timersignal, 2 = Motor an wartet auf Motor aus, 3 = Motor aus wartet auf Timersignal (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 0 + > (L.L.cockpit_relaissound) 1 = && {if} (T.L.ev_stroman) 0 (S.L.cockpit_relaissound) {endif} (L.L.globaltimer) (L.L.cockpit_engineshutdowntime) 1 + > (L.L.elec_busbar_main) ! && (L.L.cockpit_relaissound) 3 = && {if} (T.L.ev_stromaus) 0 (S.L.cockpit_relaissound) {endif} ' Beleuchtung ZF-Taster (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > && (L.L.elec_failure_general) ! && {if} (L.L.cockpit_gang1) (S.L.cockpit_gang1_licht) (L.L.cockpit_gang2) (S.L.cockpit_gang2_licht) (L.L.cockpit_gang3) (S.L.cockpit_gang3_licht) (L.L.cockpit_gangD) (S.L.cockpit_gangD_licht) (L.L.cockpit_gang1) (L.L.cockpit_gang2) + (L.L.cockpit_gang3) + (L.L.cockpit_gangD) + (L.L.cockpit_gangR) + 0 = {if} 1 (S.L.cockpit_gangN_licht) {else} 0 (S.L.cockpit_gangN_licht) {endif} (L.L.cockpit_gangR) (S.L.cockpit_gangR_licht) {else} 0 (S.L.cockpit_gang1_licht) (S.L.cockpit_gang2_licht) (S.L.cockpit_gang3_licht) (S.L.cockpit_gangD_licht) (S.L.cockpit_gangN_licht) (S.L.cockpit_gangR_licht) {endif} ' Klappsitz durch Fahrgast ' Vorn 35 (M.V.GetHumanCountOnSeat) 0 > (L.L.klappsitzL) ! && {if} 1 (S.L.klappsitzL_pax) (S.L.klappsitzL) (T.L.ev_klappsitz_runter) {endif} 35 (M.V.GetHumanCountOnSeat) 0 = (L.L.klappsitzL_pax) && (L.L.klappsitzL) && {if} 0 (S.L.klappsitzL_pax) (S.L.klappsitzL) (T.L.ev_klappsitz_hoch) {endif} 34 (M.V.GetHumanCountOnSeat) 0 > (L.L.klappsitzR) ! && {if} 1 (S.L.klappsitzR_pax) (S.L.klappsitzR) (T.L.ev_klappsitz_runter) {endif} 34 (M.V.GetHumanCountOnSeat) 0 = (L.L.klappsitzR_pax) && (L.L.klappsitzR) && {if} 0 (S.L.klappsitzR_pax) (S.L.klappsitzR) (T.L.ev_klappsitz_hoch) {endif} {end} {macro:phys_animation} (L.L.A_Trans_X) 16 / s0 (L.L.schlaufen_swing) s1 10 s2 10 s3 (M.L.traegheit) (S.L.schlaufen_swing) (L.L.A_Trans_Y) 4 / s0 (L.L.showdiagram_shift) s1 2 s2 2 s3 (M.L.traegheit) (S.L.showdiagram_shift) {end} {macro:tacho_frame} (L.L.elec_busbar_main) {if} (L.L.Velocity) (F.L.cockpit_tacholinie) (S.L.cockpit_tachowinkel) {endif} {end} {macro:hupe_frame} (L.L.engine_injection_on) {if} (L.L.cockpit_hupe) 1 = {if} (L.L.cockpit_hupe_volume) 1 < {if} (L.L.cockpit_hupe_volume) (L.S.Timegap) 10 * + (S.L.cockpit_hupe_volume) {else} 1 (S.L.cockpit_hupe_volume) {endif} {else} (L.L.cockpit_hupe_volume) 0 > {if} (L.L.cockpit_hupe_volume) (L.S.Timegap) 10 * - (S.L.cockpit_hupe_volume) {else} 0 (S.L.cockpit_hupe_volume) {endif} {endif} {else} (L.L.cockpit_hupe_volume) 0 > {if} (L.L.cockpit_hupe_volume) (L.S.Timegap) 10 * - (S.L.cockpit_hupe_volume) {else} 0 (S.L.cockpit_hupe_volume) {endif} {endif} {end} {macro:blinkerhebel_frame} (L.L.lights_sw_blinker) 1 = {if} -1 (S.L.cockpit_blinkerhebel) {else} (L.L.lights_sw_blinker) 2 = {if} 1 (S.L.cockpit_blinkerhebel) {else} 0 (S.L.cockpit_blinkerhebel) {endif} {endif} {end} {macro:kombi_frame} (L.L.cockpit_blinkerhebel) 1 = {if} 1 (S.L.cp_kombiU_visible) && 0 (S.L.cp_kombiM_visible) && 0 (S.L.cp_kombiL_visible) {else} (L.L.cockpit_blinkerhebel) -1 = {if} 0 (S.L.cp_kombiU_visible) && 0 (S.L.cp_kombiM_visible) && 1 (S.L.cp_kombiL_visible) {else} 0 (S.L.cp_kombiU_visible) && 1 (S.L.cp_kombiM_visible) && 0 (S.L.cp_kombiL_visible) {endif} {endif} ' Hebel-Animation für Fernlicht (L.L.lights_sw_fern) {if} (L.L.cockpit_fernlichthebel) -1 = ! {if} 1 (S.L.cockpit_fernlichthebel) {endif} (L.L.lights_mode) 1 > {if} -1 (S.L.cockpit_fernlichthebel) {endif} {else} 0 (S.L.cockpit_fernlichthebel) {endif} (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > {if} (L.L.lights_fern) (L.L.globaltimer) (L.L.engine_starttime) 1.5 + < || (S.L.cockpit_light_fernlicht) {else} 0 (S.L.cockpit_light_fernlicht) {endif} {end} {macro:horn_frame} (L.L.cockpit_blinkerhebel) 1 = {if} 1 (S.L.cp_hornU_visible) && 0 (S.L.cp_hornM_visible) && 0 (S.L.cp_hornL_visible) {else} (L.L.cockpit_blinkerhebel) -1 = {if} 0 (S.L.cp_hornU_visible) && 0 (S.L.cp_hornM_visible) && 1 (S.L.cp_hornL_visible) {else} 0 (S.L.cp_hornU_visible) && 1 (S.L.cp_hornM_visible) && 0 (S.L.cp_hornL_visible) {endif} {endif} {end} {macro:wischerhebel_frame} ' Wischerhebel (L.L.cp_wischersw_change) {if} (L.L.cockpit_wischer_drehschalter_mode) 2 = (L.L.cockpit_wischer_drehschalter_lastmode) 3 = && {if} 1 (S.L.cockpit_wischer_drehschalter_mode) 0.3 (S.L.cockpit_wischer_drehschalter) 4 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} (L.L.cockpit_wischer_drehschalter_mode) 3 = (L.L.cockpit_wischer_drehschalter_lastmode) 2 = && {if} 2 (S.L.cockpit_wischer_drehschalter_mode) 0.6 (S.L.cockpit_wischer_drehschalter) 3 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} (L.L.cockpit_wischer_drehschalter_mode) 2 = (L.L.cockpit_wischer_drehschalter_lastmode) 1 = && {if} 3 (S.L.cockpit_wischer_drehschalter_mode) 1 (S.L.cockpit_wischer_drehschalter) 2 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} (L.L.cockpit_wischer_drehschalter_mode) 1 = (L.L.cockpit_wischer_drehschalter_lastmode) 0 = && {if} 2 (S.L.cockpit_wischer_drehschalter_mode) 0.6 (S.L.cockpit_wischer_drehschalter) 1 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} (L.L.cockpit_wischer_drehschalter_mode) 0 = (L.L.cockpit_wischer_drehschalter_lastmode) 1 = && {if} 1 (S.L.cockpit_wischer_drehschalter_mode) 0.3 (S.L.cockpit_wischer_drehschalter) 0 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} (L.L.cockpit_wischer_drehschalter_mode) 1 = (L.L.cockpit_wischer_drehschalter_lastmode) 2 = && {if} 0 (S.L.cockpit_wischer_drehschalter_mode) 0 (S.L.cockpit_wischer_drehschalter) 1 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} (L.L.cockpit_wischer_drehschalter_mode) 0 = (L.L.cockpit_wischer_drehschalter_lastmode) 0 = && {if} 1 (S.L.cockpit_wischer_drehschalter_mode) 0.3 (S.L.cockpit_wischer_drehschalter) 0 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} (L.L.cockpit_wischer_drehschalter_mode) 1 = (L.L.cockpit_wischer_drehschalter_lastmode) 5 = && {if} 0 (S.L.cockpit_wischer_drehschalter_mode) 0 (S.L.cockpit_wischer_drehschalter) 1 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} (L.L.cockpit_wischer_drehschalter_lastmode) 4 = {if} 5 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} (T.L.ev_wischerdrehschalter_dreh) 0 (S.L.cp_wischersw_change) {endif} (L.L.cockpit_wischer_drehschalter_mode) 0 = (L.L.cockpit_wischer_drehschalter_lastmode) 1 = && {if} 0 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} (L.L.cockpit_wischer_drehschalter_mode) 0 = {if} 0 (S.L.wiper_schnell_sw) (S.L.wiper_einaus_sw) (S.L.wiper_intervall_sw) {endif} (L.L.cockpit_wischer_drehschalter_mode) 1 = {if} 0 (S.L.wiper_schnell_sw) 0 (S.L.wiper_einaus_sw) 1 (S.L.wiper_intervall_sw) {endif} (L.L.cockpit_wischer_drehschalter_mode) 2 = {if} 0 (S.L.wiper_schnell_sw) 1 (S.L.wiper_einaus_sw) 0 (S.L.wiper_intervall_sw) {endif} (L.L.cockpit_wischer_drehschalter_mode) 3 = {if} 1 (S.L.wiper_schnell_sw) 1 (S.L.wiper_einaus_sw) 0 (S.L.wiper_intervall_sw) {endif} {end} {macro:wischer_drehschalter_frame} {end} {trigger:cp_wischer_intervall_toggle} (L.L.cockpit_wischer_drehschalter_mode) 1 = {if} 0 (S.L.cockpit_wischer_drehschalter_mode) (S.L.cockpit_wischer_drehschalter) 1 (S.L.cockpit_wischer_drehschalter_lastmode) {else} 1 (S.L.cockpit_wischer_drehschalter_mode) 0.3 (S.L.cockpit_wischer_drehschalter) 0 (S.L.cockpit_wischer_drehschalter_lastmode) {endif} (T.L.ev_wischerdrehschalter_dreh) {end} {trigger:cp_wischer_wascher_button} 1 (S.L.cp_wischer_wascher_sw) s1 (T.L.ev_wischerdrehschalter) 1 (S.L.cockpit_wischerhebel_x) {end} {trigger:cp_wischer_wascher_button_off} 0 (S.L.cp_wischer_wascher_sw) s1 (S.L.wiper_wascher_sw) (T.L.ev_wischerdrehschalter) 0 (S.L.cockpit_wischerhebel_x) {end} {trigger:cp_heizregler_temp_drag} (L.S.mouse_x) -150 / (L.S.mouse_y) -150 / + (L.L.cockpit_heizregler_temp) + 0 max 1 min (S.L.cockpit_heizregler_temp) {end} {trigger:showdiagram_pullout} (L.L.showdiagram_pullout) ! (S.L.showdiagram_pullout) {end} {macro:oeldruck_frame} (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > && {if} 500 (F.L.cockpit_oeldruck) s0 0.5 s1 5 s2 5 s3 (M.L.traegheit) l1 (S.L.cockpit_oeldruck) {endif} (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) < {if} 0 (S.L.cockpit_oeldruck) {endif} (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > {if} (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > {if} (L.L.engine_n) (F.L.cockpit_oeldruck) s0 (L.L.cockpit_oeldruck) s1 5 s2 5 s3 (M.L.traegheit) l1 (S.L.cockpit_oeldruck) {endif} {endif} {end} {macro:tankuhr_frame} (L.L.elec_failure_general) ! {if} (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > {if} (L.L.engine_injection_on) ! {if} (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > && {if} (L.L.engine_tank_content) s0 (L.L.cockpit_tankuhr) s1 5 s2 5 s3 (M.L.traegheit) l1 (S.L.cockpit_tankuhr) {endif} {endif} (L.L.engine_injection_on) {if} (L.L.engine_tank_content) s0 (L.L.cockpit_tankuhr) s1 5 s2 5 s3 (M.L.traegheit) l1 (S.L.cockpit_tankuhr) {endif} {endif} (L.L.engine_injection_on) {if} (L.L.engine_tank_content) s0 (L.L.cockpit_tankuhr) s1 5 s2 5 s3 (M.L.traegheit) l1 (S.L.cockpit_tankuhr) {endif} {endif} (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) < (L.L.elec_failure_general) || {if} 0 (S.L.cockpit_tankuhr) {endif} {end} {macro:engine_thermometer_frame} (L.L.elec_failure_general) ! {if} (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > {if} (L.L.engine_injection_on) ! && {if} (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > && {if} (L.L.engine_temperature) (F.L.cockpit_engine_temperature) s0 {endif} {endif} (L.L.engine_injection_on) {if} (L.L.engine_temperature) (F.L.cockpit_engine_temperature) s0 {endif} {endif} (L.L.engine_injection_on) {if} (L.L.engine_temperature) (F.L.cockpit_engine_temperature) s0 {endif} {endif} (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) < (L.L.elec_failure_general) || {if} 0 (S.L.cockpit_motortemperaturwinkel) {endif} l0 (S.L.cockpit_motortemperaturwinkel) {end} {macro:antrieb_thermometer_frame} (L.L.elec_failure_general) ! {if} (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > {if} (L.L.engine_injection_on) ! && {if} (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > && {if} (L.L.antrieb_temperature) (F.L.cockpit_antrieb_temperature) s0 {endif} {endif} (L.L.engine_injection_on) {if} (L.L.antrieb_temperature) (F.L.cockpit_antrieb_temperature) s0 {endif} {endif} (L.L.engine_injection_on) {if} (L.L.antrieb_temperature) (F.L.cockpit_antrieb_temperature) s0 {endif} {endif} (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) < (L.L.elec_failure_general) || {if} 0 (S.L.cockpit_getriebetemperaturwinkel) {endif} (L.L.cockpit_getriebetemperaturwinkel) s1 5 s2 5 s3 (M.L.traegheit) l1 (S.L.cockpit_getriebetemperaturwinkel) {end} {macro:wippschaltereinsound} (T.L.ev_wippschaltereinsound) {end} {macro:wippschalteraussound} (T.L.ev_wippschalteraussound) {end} {macro:druckschaltersound} (T.L.ev_druckschaltersound) {end} {macro:klappfenstersound} l1 {if} (T.L.ev_klappfenster_opn) {else} (T.L.ev_klappfenster_cls) {endif} {end} {macro:klappfenster2sound} l1 {if} (T.L.ev_klappfenster2_opn) {else} (T.L.ev_klappfenster2_cls) {endif} {end} {macro:klappfenstersound_ht} l1 {if} (T.L.ev_klappfenster_opn_ht) {else} (T.L.ev_klappfenster_cls_ht) {endif} {end} {macro:klappfenster3sound} l1 {if} (T.L.ev_klappfenster3_opn) {else} (T.L.ev_klappfenster3_cls) {endif} {end} {macro:klappfenster4sound} l1 {if} (T.L.ev_klappfenster4_opn) {else} (T.L.ev_klappfenster4_cls) {endif} {end} {macro:schluessel_frame} (L.L.cp_schluessel_trans_mode) s0 (L.L.cp_schluessel_trans_lastmode) = ! {if} l0 1 = {if} (T.L.ev_schluessel_steck) {endif} l0 0 = {if} (T.L.ev_schluessel_raus) {endif} l0 (S.L.cp_schluessel_trans_lastmode) {endif} (L.L.cp_schluessel_rot_lastmode) (L.L.cp_schluessel_rot_mode) = ! {if} (L.L.cp_schluessel_rot_mode) s0 l0 0 = {if} (T.L.ev_schluessel_dreh) {endif} l0 (S.L.cp_schluessel_rot_lastmode) {endif} {end} {macro:traegheit} 'Simuliert träges Verhalten (exponentiell) 'Ladekonventionen: ' Sollwert l0 ' Istwert l1 ' Konstante Anlauf l2 (Einheiten/s) ' Konstante Ablauf l3 (Einheiten/s) 'Anlauf oder Auslauf? l0 l1 > {if} l2 (L.S.Timegap) * 1 min -1 max s4 {else} l3 (L.S.Timegap) * 1 min -1 max s4 {endif} 'Sollwert: l0 'Istwert: l1 'Beschleunigung: - l4 * 'Addition zum Istwert: l1 + s1 {end} {macro:odometer_frame} (L.L.kmcounter_km) (L.L.kmcounter_m) 1000 / + 10 * (S.L.cp_odometer_01) (L.L.cp_odometer_01) 10 / trunc (L.L.cp_odometer_01) 10 / d trunc - (F.L.odometer_10er-uebertrag) + (S.L.cp_odometer_1) (L.L.cp_odometer_1) 10 / trunc (L.L.cp_odometer_1) 10 / d trunc - (F.L.odometer_10er-uebertrag) + (S.L.cp_odometer_10) (L.L.cp_odometer_10) 10 / trunc (L.L.cp_odometer_10) 10 / d trunc - (F.L.odometer_10er-uebertrag) + (S.L.cp_odometer_100) (L.L.cp_odometer_100) 10 / trunc (L.L.cp_odometer_100) 10 / d trunc - (F.L.odometer_10er-uebertrag) + (S.L.cp_odometer_1000) (L.L.cp_odometer_1000) 10 / trunc (L.L.cp_odometer_1000) 10 / d trunc - (F.L.odometer_10er-uebertrag) + (S.L.cp_odometer_10000) (L.L.cp_odometer_10000) 10 / trunc (L.L.cp_odometer_10000) 10 / d trunc - (F.L.odometer_10er-uebertrag) + (S.L.cp_odometer_100000) (L.L.kmcounter_m) 100 / (S.L.cp_odometer_01) {end} {macro:uhr_frame} (L.L.elec_failure_general) ! {if} (L.S.Time) s0 60 / (S.L.cockpit_uhr_min) 12 / (S.L.cockpit_uhr_std) l0 trunc (S.L.cockpit_uhr_sek) {endif} {end} {macro:fahrertuer_frame} (L.L.cp_fahrertuer_dragged) ! {if} (L.L.cp_fahrertuer_pos) (L.S.Timegap) (L.L.cp_fahrertuer_speed) * + (S.L.cp_fahrertuer_pos) (L.L.cp_fahrertuer_pos) 1 > {if} 1 (S.L.cp_fahrertuer_pos) (L.L.cp_fahrertuer_speed) /-/ 0.7 * (S.L.cp_fahrertuer_speed) {endif} (L.L.cp_fahrertuer_pos) 0 < {if} 0 (S.L.cp_fahrertuer_speed) (S.L.cp_fahrertuer_pos) {endif} (L.L.cp_fahrertuer_pos) 0 > {if} (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) {endif} (L.L.cp_fahrertuer_speed) s0 (S.L.cp_fahrertuer_lastspeed) l0 0 > {if} l0 (L.S.Timegap) 0.2 * - (S.L.cp_fahrertuer_speed) {endif} l0 0 < {if} l0 (L.S.Timegap) 0.2 * + (S.L.cp_fahrertuer_speed) {endif} (L.L.cp_fahrertuer_speed) 0 > (L.L.cp_fahrertuer_lastspeed) 0 < && (L.L.cp_fahrertuer_speed) 0 < (L.L.cp_fahrertuer_lastspeed) 0 > && || {if} 0 (S.L.cp_fahrertuer_speed) {endif} {endif} (L.L.cp_fahrertuer_pos) 0 > (L.L.cp_fahrertuer_open) ! && {if} (T.L.ev_fahrertuer_auf) 1 (S.L.cp_fahrertuer_open) {endif} (L.L.cp_fahrertuer_pos) 0 = (L.L.cp_fahrertuer_open) && {if} (T.L.ev_fahrertuer_zu) 0 (S.L.cp_fahrertuer_open) (S.L.cp_fahrertuer_entriegelt) {endif} (L.L.cp_fahrertuer_pos) 140 * 27 + 3.14 * 180 / sin (S.L.cp_fahrertuer_globalangle) (L.L.velocity) (L.L.cp_velocity_last) - (S.L.cp_acceleration) (L.L.velocity) (S.L.cp_velocity_last) {end} {macro:rollo_frame} (L.L.cp_rollo_pos) (L.L.cp_rollo_rastpos) max (S.L.cp_rollo_rastpos) (L.L.cp_rollo_dragged) ! {if} (L.L.cp_rollo_retract) {if} (L.L.cp_rollo_speed) (L.S.Timegap) (L.L.cp_rollo_pos) 14 * * - (S.L.cp_rollo_speed) (L.L.cp_rollo_pos) (L.S.Timegap) (L.L.cp_rollo_speed) * + (S.L.cp_rollo_pos) (S.L.cp_rollo_rastpos) {else} (L.L.cp_rollo_pos) (L.L.cp_rollo_rastpos) < {if} (L.L.cp_rollo_speed) (L.S.Timegap) 14 * + (S.L.cp_rollo_speed) (L.L.cp_rollo_pos) (L.S.Timegap) (L.L.cp_rollo_speed) * + (L.L.cp_rollo_rastpos) min (S.L.cp_rollo_pos) {else} 0 (S.L.cp_rollo_speed) {endif} {endif} (L.L.cp_rollo_pos) 1 > {if} 1 (S.L.cp_rollo_pos) (S.L.cp_rollo_rastpos) {else} (L.L.cp_rollo_pos) 0 < {if} 0 (S.L.cp_rollo_pos) (S.L.cp_rollo_retract) (S.L.cp_rollo_rastpos) {endif} {endif} {endif} {end} {macro:rollo2_frame} (L.L.cp_rollo2_pos) (L.L.cp_rollo2_rastpos) max (S.L.cp_rollo2_rastpos) (L.L.cp_rollo2_dragged) ! {if} (L.L.cp_rollo2_retract) {if} (L.L.cp_rollo2_speed) (L.S.Timegap) (L.L.cp_rollo2_pos) 14 * * - (S.L.cp_rollo2_speed) (L.L.cp_rollo2_pos) (L.S.Timegap) (L.L.cp_rollo2_speed) * + (S.L.cp_rollo2_pos) (S.L.cp_rollo2_rastpos) {else} (L.L.cp_rollo2_pos) (L.L.cp_rollo2_rastpos) < {if} (L.L.cp_rollo2_speed) (L.S.Timegap) 14 * + (S.L.cp_rollo2_speed) (L.L.cp_rollo2_pos) (L.S.Timegap) (L.L.cp_rollo2_speed) * + (L.L.cp_rollo2_rastpos) min (S.L.cp_rollo2_pos) {else} 0 (S.L.cp_rollo2_speed) {endif} {endif} (L.L.cp_rollo2_pos) 1 > {if} 1 (S.L.cp_rollo2_pos) (S.L.cp_rollo2_rastpos) {else} (L.L.cp_rollo2_pos) 0 < {if} 0 (S.L.cp_rollo2_pos) (S.L.cp_rollo2_retract) (S.L.cp_rollo2_rastpos) {endif} {endif} {endif} {end} {macro:rollo3_frame} (L.L.cp_rollo3_pos) (L.L.cp_rollo3_rastpos) max (S.L.cp_rollo3_rastpos) (L.L.cp_rollo3_dragged) ! {if} (L.L.cp_rollo3_retract) {if} (L.L.cp_rollo3_speed) (L.S.Timegap) (L.L.cp_rollo3_pos) 14 * * - (S.L.cp_rollo3_speed) (L.L.cp_rollo3_pos) (L.S.Timegap) (L.L.cp_rollo3_speed) * + (S.L.cp_rollo3_pos) (S.L.cp_rollo3_rastpos) {else} (L.L.cp_rollo3_pos) (L.L.cp_rollo3_rastpos) < {if} (L.L.cp_rollo3_speed) (L.S.Timegap) 14 * + (S.L.cp_rollo3_speed) (L.L.cp_rollo3_pos) (L.S.Timegap) (L.L.cp_rollo3_speed) * + (L.L.cp_rollo3_rastpos) min (S.L.cp_rollo3_pos) {else} 0 (S.L.cp_rollo3_speed) {endif} {endif} (L.L.cp_rollo3_pos) 1 > {if} 1 (S.L.cp_rollo3_pos) (S.L.cp_rollo3_rastpos) {else} (L.L.cp_rollo3_pos) 0 < {if} 0 (S.L.cp_rollo3_pos) (S.L.cp_rollo3_retract) (S.L.cp_rollo3_rastpos) {endif} {endif} {endif} {end} {macro:microphone_frame} (L.L.Axle_Steering_0_L) (S.L.cp_steeringangle) (L.L.cp_microphone_sw) (L.L.engine_injection_on) && s0 (L.L.Snd_Microphone) s1 l0 l1 ! && {if} (T.L.micro_lautsprecherknack_start) {endif} l0 ! l1 && {if} (T.L.micro_lautsprecherknack_end) {endif} l0 (S.L.Snd_Microphone) {end} {macro:pressure_warning_needle_frame} (L.L.bremse_p_Tank01) (L.L.bremse_p_Tank02) + 2 / (S.L.cockpit_warndruck) (F.L.cockpit_warndruck) (S.L.cockpit_warndruckwinkel) {end} {trigger:cp_FahrgastpendelR} 1 (S.L.cp_FahrgastpendelR_drag) {end} {trigger:cp_FahrgastpendelR_off} 0 (S.L.cp_FahrgastpendelR_drag) {end} {trigger:cp_FahrgastpendelR_drag} (L.L.cp_FahrgastpendelR_drag) {if} (L.L.cp_FahrgastpendelR_Pos) (L.S.mouse_y) 500 / + 1 min 0 max s0 l0 (L.L.cp_FahrgastpendelR_Pos) - (L.S.Timegap) / (S.L.cp_FahrgastpendelR_Speed) l0 (S.L.cp_FahrgastpendelR_Pos) {endif} {end} {macro:FahrgastpendelR} 'Sollwert: (wenn mindestens ein Typ an der Stelle durchgeht) 1 (M.V.GetHumanCountOnPathLink) 1 min s4 'Differenz * InvTrägheit = Beschleunigung (L.L.cp_FahrgastpendelR_Pos) - 10 * s1 'Wenn ein Fahrgast durchwill, dann überschreibe die "Drag"-Eigenschaft: l4 {if} 0 (S.L.cp_FahrgastpendelR_drag) {endif} (L.L.cp_FahrgastpendelR_drag) ! {if} 'Anwendung einer Reibungskraft: l1 (L.L.cp_FahrgastpendelR_Speed) sgn 0.5 * - s0 'Prüfen, ob sich die Beschleunigung infolge der Reibung umkehrt - dann wird sie auf 0 gesetzt: l0 l1 * 0 < {if} 0 s0 {endif} 'Anwenden der Beschleunigung: (L.L.cp_FahrgastpendelR_Speed) l0 (L.S.Timegap) * + (S.L.cp_FahrgastpendelR_Speed) 'Anwenden der Position: (L.L.cp_FahrgastpendelR_Pos) (L.L.cp_FahrgastpendelR_Speed) (L.S.Timegap) * + (S.L.cp_FahrgastpendelR_Pos) s0 {else} (L.L.cp_FahrgastpendelR_Pos) s0 {endif} 'Limits: (Anschlag an Haltestange mit 10% Abprallstärke) l0 0 < {if} 0 (S.L.cp_FahrgastpendelR_Pos) (T.L.ev_fahrgastpendelR_zu) (L.L.cp_FahrgastpendelR_Speed) -0.1 * (S.L.cp_FahrgastpendelR_Speed) {endif} '(anderes Ende ohne Reflexion) l0 1 > {if} 1 (S.L.cp_FahrgastpendelR_Pos) 0 (S.L.cp_FahrgastpendelR_Speed) {endif} {end} {trigger:cp_FahrgastpendelL} 1 (S.L.cp_FahrgastpendelL_drag) {end} {trigger:cp_FahrgastpendelL_off} 0 (S.L.cp_FahrgastpendelL_drag) {end} {trigger:cp_FahrgastpendelL_drag} (L.L.cp_FahrgastpendelL_drag) {if} (L.L.cp_FahrgastpendelL_Pos) (L.S.mouse_y) 500 / + 1 min 0 max s0 l0 (L.L.cp_FahrgastpendelL_Pos) - (L.S.Timegap) / (S.L.cp_FahrgastpendelL_Speed) l0 (S.L.cp_FahrgastpendelL_Pos) {endif} {end} {macro:FahrgastpendelL} 'Sollwert: (wenn mindestens ein Typ an der Stelle durchgeht) 1 (M.V.GetHumanCountOnPathLink) 1 min s4 'Differenz * InvTrägheit = Beschleunigung (L.L.cp_FahrgastpendelL_Pos) - 10 * s1 'Wenn ein Fahrgast durchwill, dann überschreibe die "Drag"-Eigenschaft: l4 {if} 0 (S.L.cp_FahrgastpendelL_drag) {endif} (L.L.cp_FahrgastpendelL_drag) ! {if} 'Anwendung einer Reibungskraft: l1 (L.L.cp_FahrgastpendelL_Speed) sgn 0.5 * - s0 'Prüfen, ob sich die Beschleunigung infolge der Reibung umkehrt - dann wird sie auf 0 gesetzt: l0 l1 * 0 < {if} 0 s0 {endif} 'Anwenden der Beschleunigung: (L.L.cp_FahrgastpendelL_Speed) l0 (L.S.Timegap) * + (S.L.cp_FahrgastpendelL_Speed) 'Anwenden der Position: (L.L.cp_FahrgastpendelL_Pos) (L.L.cp_FahrgastpendelL_Speed) (L.S.Timegap) * + (S.L.cp_FahrgastpendelL_Pos) s0 {else} (L.L.cp_FahrgastpendelL_Pos) s0 {endif} 'Limits: (Anschlag an Haltestange mit 10% Abprallstärke) l0 0 < {if} 0 (S.L.cp_FahrgastpendelL_Pos) (T.L.ev_fahrgastpendelL_zu) (L.L.cp_FahrgastpendelL_Speed) -0.1 * (S.L.cp_FahrgastpendelL_Speed) {endif} '(anderes Ende ohne Reflexion) l0 1 > {if} 1 (S.L.cp_FahrgastpendelL_Pos) 0 (S.L.cp_FahrgastpendelL_Speed) {endif} {end} {macro:vdv_display} ' Tag-/Nacht (L.L.vdv_display_an) {if} (L.L.lights_stand) (S.L.vdv_display_nacht) ! (S.L.vdv_display_tag) {else} 0 (S.L.vdv_display_nacht) (S.L.vdv_display_tag) {endif} ' Display aktiv wenn Strom verfuegbar (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.elec_failure_general) ! && (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > && {if} 1 (S.L.vdv_display_an) '********** Hochfahren (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 3 + < {if} 1 (S.L.vdv_display_seq) (L.L.vdv_display_nacht) ! {if} "vdv_display_leer.dds" (S.$.vdv_display_texture) {else} "vdv_display_leer_N.dds" (S.$.vdv_display_texture) {endif} '********** betriebsbereit {else} ' vdv_display_seq gibt an, dass die Startsequenz (2 Menues) durchgespielt werden soll. (L.L.vdv_display_seq) {if} (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 5 + >= (L.L.vdv_display_menu) 2 = ! && {if} 1 (S.L.vdv_display_menu) 0 (S.L.vdv_display_inittimer) {endif} (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 8 + >= (L.L.Brake) 0 = && (L.L.bremse_p_tank01) 680000 > && (L.L.bremse_p_tank02) 680000 > && (L.L.vdv_display_menu) 0 = ! && (L.L.vdv_display_inittimer) 0 > || {if} (L.L.vdv_display_inittimer) 0.02 + (S.L.vdv_display_inittimer) 2 (S.L.vdv_display_menu) {endif} (L.L.vdv_display_inittimer) 3 > (L.L.vdv_display_menu) 2 = && {if} 0 (S.L.vdv_display_menu) (S.L.vdv_display_inittimer) (S.L.vdv_display_seq) {endif} {endif} '********** Normalbetrieb nach Startsequenz: ' Stoerungsanzeige ' Level 2 (rot) (L.L.vdv_display_rot_system) (L.L.vdv_display_rot_nothahn) || (L.L.vdv_display_rot_vorratsdruck1) || (L.L.vdv_display_rot_vorratsdruck2) || (L.L.vdv_display_rot_oeldruck) || (L.L.vdv_display_rot_kuehlwasser) || (L.L.vdv_display_rot_getriebeoel) || (L.L.vdv_display_rot_edc) || (L.L.vdv_display_rot_emr) || (L.L.vdv_display_rot_getriebe) || (L.L.engine_ignition) 1 < && (L.L.globaltimer) (L.L.engine_starttime) 3 + >= && {if} 1 (S.L.vdv_display_rot) (L.L.vdv_display_menu) 4 = ! (L.L.vdv_display_seq) ! && {if} 0 (S.L.vdv_display_rot_viewseq) 4 (S.L.vdv_display_menu) {endif} {endif} (L.L.vdv_display_rot_system) ! (L.L.vdv_display_rot_nothahn) ! && (L.L.vdv_display_rot_vorratsdruck1) ! && (L.L.vdv_display_rot_vorratsdruck2) ! && (L.L.vdv_display_rot_oeldruck) ! && (L.L.vdv_display_rot_kuehlwasser) ! && (L.L.vdv_display_rot_getriebeoel) ! && (L.L.vdv_display_rot_edc) ! && (L.L.vdv_display_rot_emr) ! && (L.L.vdv_display_rot_getriebe) ! && (L.L.engine_ignition) 1 >= || {if} 0 (S.L.vdv_display_rot) (S.L.vdv_display_rot_viewseq) (S.L.vdv_display_rot_multiple) (S.L.vdv_display_rot_multiple_vis) {endif} ' Level 1 (gelb) (L.L.vdv_display_gelb_kuehlwasser) (L.L.vdv_display_gelb_motoroel) || (L.L.vdv_display_gelb_retarder) || (L.L.vdv_display_gelb_kraftstoff) || (L.L.vdv_display_gelb_batterie) || (L.L.engine_ignition) 1 < && (L.L.globaltimer) (L.L.engine_starttime) 3 + >= && {if} 1 (S.L.vdv_display_gelb) {endif} (L.L.vdv_display_gelb_kuehlwasser) ! (L.L.vdv_display_gelb_motoroel) ! && (L.L.vdv_display_gelb_retarder) ! && (L.L.vdv_display_gelb_kraftstoff) ! && (L.L.vdv_display_gelb_batterie) ! && (L.L.engine_ignition) 1 >= || {if} 0 (S.L.vdv_display_gelb) {endif} '********** Uebernahme der Texturstrings je nach Menu-Modus ' Menu-Variable gibt an, welches Menu gerade dargestellt wird. Dies kann von Startsequenz und Stoerlevel ueberschrieben werden. ' 0 = Halte- oder Fahrmenu, 1 = Druckvorrat, 2 = Kraftstoffvorrat ' 3 = Gelbe Stoerungen, 4 = Rote Stoerungen (L.L.vdv_display_menu) s0 l0 1 = {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_menu1.dds" (S.$.vdv_display_texture) {else} "vdv_display_menu1_N.dds" (S.$.vdv_display_texture) {endif} {endif} l0 2 = {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_menu2.dds" (S.$.vdv_display_texture) {else} "vdv_display_menu2_N.dds" (S.$.vdv_display_texture) {endif} {endif} l0 3 = {if} (L.L.vdv_display_gelb_viewseq) 1 = {if} (L.L.vdv_display_gelb_batterie_view) {if} (L.L.vdv_display_gelb_viewtimer) 2 < (L.L.vdv_display_halt) || {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_gelb_batterie.dds" (S.$.vdv_display_texture) {else} "vdv_display_gelb_batterie_N.dds" (S.$.vdv_display_texture) {endif} (L.L.vdv_display_gelb_viewtimer) 0.01 + (S.L.vdv_display_gelb_viewtimer) {else} 0 (S.L.vdv_display_gelb_batterie_view) (S.L.vdv_display_gelb_viewtimer) 2 (S.L.vdv_display_gelb_viewseq) {endif} {else} 2 (S.L.vdv_display_gelb_viewseq) {endif} {endif} (L.L.vdv_display_gelb_viewseq) 2 = {if} (L.L.vdv_display_gelb_kraftstoff_view) {if} (L.L.vdv_display_gelb_viewtimer) 2 < (L.L.vdv_display_halt) || {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_gelb_kraftstoff.dds" (S.$.vdv_display_texture) {else} "vdv_display_gelb_kraftstoff_N.dds" (S.$.vdv_display_texture) {endif} (L.L.vdv_display_gelb_viewtimer) 0.01 + (S.L.vdv_display_gelb_viewtimer) {else} 0 (S.L.vdv_display_gelb_kraftstoff_view) (S.L.vdv_display_gelb_viewtimer) 3 (S.L.vdv_display_gelb_viewseq) {endif} {else} 3 (S.L.vdv_display_gelb_viewseq) {endif} {endif} (L.L.vdv_display_gelb_viewseq) 3 = {if} (L.L.vdv_display_gelb_kuehlwasser_view) {if} (L.L.vdv_display_gelb_viewtimer) 2 < (L.L.vdv_display_halt) || {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_gelb_kuehlwasser.dds" (S.$.vdv_display_texture) {else} "vdv_display_gelb_kuehlwasser_N.dds" (S.$.vdv_display_texture) {endif} (L.L.vdv_display_gelb_viewtimer) 0.01 + (S.L.vdv_display_gelb_viewtimer) {else} 0 (S.L.vdv_display_gelb_kuehlwasser_view) (S.L.vdv_display_gelb_viewtimer) 4 (S.L.vdv_display_gelb_viewseq) {endif} {else} 4 (S.L.vdv_display_gelb_viewseq) {endif} {endif} (L.L.vdv_display_gelb_viewseq) 4 = {if} (L.L.vdv_display_gelb_motoroel_view) {if} (L.L.vdv_display_gelb_viewtimer) 2 < (L.L.vdv_display_halt) || {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_gelb_motoroel.dds" (S.$.vdv_display_texture) {else} "vdv_display_gelb_motoroel_N.dds" (S.$.vdv_display_texture) {endif} (L.L.vdv_display_gelb_viewtimer) 0.01 + (S.L.vdv_display_gelb_viewtimer) {else} 0 (S.L.vdv_display_gelb_motoroel_view) (S.L.vdv_display_gelb_viewtimer) 5 (S.L.vdv_display_gelb_viewseq) {endif} {else} 5 (S.L.vdv_display_gelb_viewseq) {endif} {endif} (L.L.vdv_display_gelb_viewseq) 5 = {if} (L.L.vdv_display_gelb_retarder_view) {if} (L.L.vdv_display_gelb_viewtimer) 2 < (L.L.vdv_display_halt) || {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_gelb_retarder.dds" (S.$.vdv_display_texture) {else} "vdv_display_gelb_retarder_N.dds" (S.$.vdv_display_texture) {endif} (L.L.vdv_display_gelb_viewtimer) 0.01 + (S.L.vdv_display_gelb_viewtimer) {else} 0 (S.L.vdv_display_gelb_retarder_view) (S.L.vdv_display_gelb_viewtimer) 6 (S.L.vdv_display_gelb_viewseq) {endif} {else} 6 (S.L.vdv_display_gelb_viewseq) {endif} {endif} (L.L.vdv_display_gelb_batterie_view) ! (L.L.vdv_display_gelb_kraftstoff_view) ! && (L.L.vdv_display_gelb_kuehlwasser_view) ! && (L.L.vdv_display_gelb_motoroel_view) ! && (L.L.vdv_display_gelb_retarder_view) ! && (L.L.vdv_display_gelb_viewseq) 5 > || {if} 0 (S.L.vdv_display_menu) (S.L.vdv_display_gelb_viewseq) {endif} {else} (L.L.vdv_display_gelb_kuehlwasser) (S.L.vdv_display_gelb_kuehlwasser_view) (L.L.vdv_display_gelb_motoroel) (S.L.vdv_display_gelb_motoroel_view) (L.L.vdv_display_gelb_retarder) (S.L.vdv_display_gelb_retarder_view) (L.L.vdv_display_gelb_kraftstoff) (S.L.vdv_display_gelb_kraftstoff_view) (L.L.vdv_display_gelb_batterie) (S.L.vdv_display_gelb_batterie_view) {endif} l0 4 = {if} ' Wenn mehr als 1 roter Fehler: Symbol zum Weiterblaettern (L.L.vdv_display_rot_system) (L.L.vdv_display_rot_nothahn) + (L.L.vdv_display_rot_vorratsdruck1) + (L.L.vdv_display_rot_vorratsdruck2) + (L.L.vdv_display_rot_oeldruck) + (L.L.vdv_display_rot_kuehlwasser) + (L.L.vdv_display_rot_getriebeoel) + (L.L.vdv_display_rot_edc) + (L.L.vdv_display_rot_emr) + (L.L.vdv_display_rot_getriebe) + 1 > {if} ' Darstellung wenn mehrere rote Fehler 1 (S.L.vdv_display_rot_multiple) (S.L.vdv_display_rot_multiple_vis) (L.L.vdv_display_rot_viewseq) 0 = {if} (L.L.vdv_display_rot_system) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_system.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_system_N.dds" (S.$.vdv_display_texture) {endif} {else} 1 (S.L.vdv_display_rot_viewseq) {endif} {endif} (L.L.vdv_display_rot_viewseq) 1 = {if} (L.L.vdv_display_rot_nothahn) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_nothahn.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_nothahn_N.dds" (S.$.vdv_display_texture) {endif} {else} 2 (S.L.vdv_display_rot_viewseq) {endif} {endif} (L.L.vdv_display_rot_viewseq) 2 = {if} (L.L.vdv_display_rot_vorratsdruck1) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_vorratsdruck1.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_vorratsdruck1_N.dds" (S.$.vdv_display_texture) {endif} {else} 3 (S.L.vdv_display_rot_viewseq) {endif} {endif} (L.L.vdv_display_rot_viewseq) 3 = {if} (L.L.vdv_display_rot_vorratsdruck2) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_vorratsdruck2.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_vorratsdruck2_N.dds" (S.$.vdv_display_texture) {endif} {else} 4 (S.L.vdv_display_rot_viewseq) {endif} {endif} (L.L.vdv_display_rot_viewseq) 4 = {if} (L.L.vdv_display_rot_oeldruck) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_oeldruck.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_oeldruck_N.dds" (S.$.vdv_display_texture) {endif} {else} 5 (S.L.vdv_display_rot_viewseq) {endif} {endif} (L.L.vdv_display_rot_viewseq) 5 = {if} (L.L.vdv_display_rot_kuehlwasser) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_kuehlwasser.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_kuehlwasser_N.dds" (S.$.vdv_display_texture) {endif} {else} 6 (S.L.vdv_display_rot_viewseq) {endif} {endif} (L.L.vdv_display_rot_viewseq) 6 = {if} (L.L.vdv_display_rot_getriebeoel) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_getriebeoel.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_getriebeoel_N.dds" (S.$.vdv_display_texture) {endif} {else} 7 (S.L.vdv_display_rot_viewseq) {endif} {endif} (L.L.vdv_display_rot_viewseq) 7 = {if} (L.L.vdv_display_rot_edc) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_edc.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_edc_N.dds" (S.$.vdv_display_texture) {endif} {else} 8 (S.L.vdv_display_rot_viewseq) {endif} {endif} (L.L.vdv_display_rot_viewseq) 8 = {if} (L.L.vdv_display_rot_emr) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_emr.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_emr_N.dds" (S.$.vdv_display_texture) {endif} {else} 9 (S.L.vdv_display_rot_viewseq) {endif} {endif} (L.L.vdv_display_rot_viewseq) 9 = {if} (L.L.vdv_display_rot_getriebe) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_getriebe.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_getriebe_N.dds" (S.$.vdv_display_texture) {endif} {else} 0 (S.L.vdv_display_rot_viewseq) {endif} {endif} {else} ' Darstellung wenn nur 1 roter Fehler 0 (S.L.vdv_display_rot_multiple) (S.L.vdv_display_rot_multiple_vis) (L.L.vdv_display_rot_system) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_system.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_system_N.dds" (S.$.vdv_display_texture) {endif} {endif} (L.L.vdv_display_rot_nothahn) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_nothahn.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_nothahn_N.dds" (S.$.vdv_display_texture) {endif} {endif} (L.L.vdv_display_rot_vorratsdruck1) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_vorratsdruck1.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_vorratsdruck1_N.dds" (S.$.vdv_display_texture) {endif} {endif} (L.L.vdv_display_rot_vorratsdruck2) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_vorratsdruck2.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_vorratsdruck2_N.dds" (S.$.vdv_display_texture) {endif} {endif} (L.L.vdv_display_rot_oeldruck) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_oeldruck.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_oeldruck_N.dds" (S.$.vdv_display_texture) {endif} {endif} (L.L.vdv_display_rot_kuehlwasser) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_kuehlwasser.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_kuehlwasser_N.dds" (S.$.vdv_display_texture) {endif} {endif} (L.L.vdv_display_rot_getriebeoel) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_getriebeoel.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_getriebeoel_N.dds" (S.$.vdv_display_texture) {endif} {endif} (L.L.vdv_display_rot_edc) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_edc.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_edc_N.dds" (S.$.vdv_display_texture) {endif} {endif} (L.L.vdv_display_rot_emr) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_emr.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_emr_N.dds" (S.$.vdv_display_texture) {endif} {endif} (L.L.vdv_display_rot_getriebe) {if} (L.L.vdv_display_nacht) ! {if} "vdv_display_rot_getriebe.dds" (S.$.vdv_display_texture) {else} "vdv_display_rot_getriebe_N.dds" (S.$.vdv_display_texture) {endif} {endif} {endif} (L.L.vdv_display_rot) ! {if} 0 (S.L.vdv_display_menu) (S.L.vdv_display_rot_viewseq) {endif} {else} 0 (S.L.vdv_display_rot_multiple_vis) (S.L.vdv_display_rot_viewseq) {endif} '********** Berechnung der Balkendiagramme und Anzeigesymbole ' Vorratsdruck l0 1 = {if} (L.L.vdv_display_calctimer) (L.S.Timegap) + (S.L.vdv_display_calctimer) (L.L.vdv_display_calctimer) 0.1 > (L.L.vdv_display_calctimer) 0.2 <= && {if} (L.L.bremse_p_tank01) 100000 - 100000 / 4.8 * "#############################################" $SetLengthL (S.$.vdv_display_menu1_leiste1) {endif} (L.L.vdv_display_calctimer) 0.5 > (L.L.vdv_display_calctimer) 0.6 <= && {if} (L.L.bremse_p_tank02) 100000 - 100000 / 4.8 * "#############################################" $SetLengthL (S.$.vdv_display_menu1_leiste2) {endif} (L.L.vdv_display_calctimer) 1 > (L.L.vdv_display_calctimer) 1.1 <= && {if} (L.L.bremse_p_tank03) 100000 - 100000 / 4.8 * "#############################################" $SetLengthL (S.$.vdv_display_menu1_leiste3) {endif} (L.L.vdv_display_calctimer) 1.5 > {if} (L.L.bremse_p_tank04) 100000 - 100000 / 4.8 * "#############################################" $SetLengthL (S.$.vdv_display_menu1_leiste4) 0 (S.L.vdv_display_calctimer) {endif} {else} "" (S.$.vdv_display_menu1_leiste1) (S.$.vdv_display_menu1_leiste2) (S.$.vdv_display_menu1_leiste3) (S.$.vdv_display_menu1_leiste4) {endif} ' Kraftstoffvorrat ' l0 2 = ' {if} ' (L.L.tank_percent) 48 * ' "################################################" $SetLengthL (S.$.vdv_display_menu2_leiste1) ' {else} ' "" (S.$.vdv_display_menu2_leiste1) ' {endif} ' Fahr-/Haltemenu l0 0 = (L.L.vdv_display_seq) ! && {if} ' Automatische Umschaltung Halte-/Fahrmenu nur wenn keine rote Stoerung (L.L.vdv_display_rot) ! {if} (L.L.door_freigabe) (L.L.door_0) 0 > || (L.L.door_1) 0 > || (L.L.door_2) 0 > || (L.L.door_3) 0 > || (L.L.door_4) 0 > || (L.L.door_5) 0 > || (L.L.bremse_p_Tank04) 650000 < (L.L.doorEntriegelung_01) (L.L.doorEntriegelung_23) (L.L.doorEntriegelung_45) || || || || (L.L.bremse_halte) || (L.L.bremse_feststell) || (L.L.bremse_anfahrsperre) || (L.L.engine_injection_on) ! || (L.L.kneeling) 0 = ! (L.L.niveau_setlevel_dir) || || (L.L.Velocity) (C.L.doors_maxvspeed) < (L.L.bremse_p_Tank04) 650000 < (L.L.niveau_setlevel_dir) (L.L.doorEntriegelung_01) (L.L.doorEntriegelung_23) (L.L.doorEntriegelung_45) || || || || || && {if} (L.L.vdv_display_haltemenu) 0.04 + 1 min (S.L.vdv_display_haltemenu) {else} (L.L.vdv_display_haltemenu) 0.01 - 0 max (S.L.vdv_display_haltemenu) {endif} (L.L.vdv_display_haltemenu) 1 >= (L.L.vdv_display_haltemenu_timer) || {if} ' Haltemenu 1 (S.L.vdv_display_haltemenu_timer) 0 (S.L.vdv_display_retarder) (S.L.vdv_display_asr) (S.L.vdv_display_knickschutz) (S.L.vdv_display_haltewunsch) (S.L.vdv_display_zusatzheizung) (S.L.vdv_display_klima) ' Symbol Haltewunsch sichtbar wenn kein Feststell (L.L.haltewunsch) (L.L.haltewunsch_2) || {if} 1 (S.L.vdv_display_haltewunsch) {else} 0 (S.L.vdv_display_haltewunsch) {endif} ' Anzeige Tuerstatus (L.L.vdv_display_nacht) ! {if} "vdv_display_menu3_solo.dds" (S.$.vdv_display_texture) {else} "vdv_display_menu3_N_solo.dds" (S.$.vdv_display_texture) {endif} (L.L.door_0) 0.1 > (L.L.door_1) 0.1 > || (L.L.doorEntriegelung_01) || {if} (L.L.doorEntriegelung_01) ! {if} 1 (S.L.vdv_display_tuer1_auf) {else} (L.L.vdv_display_tuer_blinken) (S.L.vdv_display_tuer1_auf) {endif} {else} 1 (S.L.vdv_display_tuer1) 0 (S.L.vdv_display_tuer1_auf) {endif} (L.L.door_2) 0.1 > (L.L.door_3) 0.1 > || (L.L.doorEntriegelung_23) || {if} (L.L.doorEntriegelung_23) ! {if} 1 (S.L.vdv_display_tuer2_auf) {else} (L.L.vdv_display_tuer_blinken) (S.L.vdv_display_tuer2_auf) {endif} {else} 0 (S.L.vdv_display_tuer2_auf) (L.L.door_freigabe) {if} (L.L.vdv_display_tuer_blinken) (S.L.vdv_display_tuer2) {else} 1 (S.L.vdv_display_tuer2) {endif} {endif} (L.L.door_4) 0.1 > (L.L.door_5) 0.1 > || (L.L.doorEntriegelung_45) || {if} (L.L.doorEntriegelung_45) ! {if} 1 (S.L.vdv_display_tuer3_auf) {else} (L.L.vdv_display_tuer_blinken) (S.L.vdv_display_tuer3_auf) {endif} {else} 0 (S.L.vdv_display_tuer3_auf) (L.L.door_freigabe) {if} (L.L.vdv_display_tuer_blinken) (S.L.vdv_display_tuer3) {else} 1 (S.L.vdv_display_tuer3) {endif} {endif} ' Blinken (L.L.vdv_display_tuer_timer) 0.7 < {if} (L.S.Timegap) (L.L.vdv_display_tuer_timer) + (S.L.vdv_display_tuer_timer) {else} 0 (S.L.vdv_display_tuer_timer) (L.L.vdv_display_tuer_blinken) ! (S.L.vdv_display_tuer_blinken) {endif} ' Anzeige gebremste Achsen (L.L.bremse_feststell) (L.L.bremse_anfahrsperre) (L.L.bremse_halte) || || {if} 1 (S.L.vdv_display_MA) (S.L.vdv_display_HA) {else} 0 (S.L.vdv_display_MA) (S.L.vdv_display_HA) {endif} ' Anzeige Absenkeinrichtung (L.L.kneeling) 0 = (L.L.niveau_setlevel_dir) ! && {if} 0 (S.L.vdv_display_kneel1) 0 (S.L.vdv_display_kneel2) {endif} (L.L.kneeling) 1 = (L.L.niveau_setlevel_dir) || (L.L.Axle_Springfactor_0_R) 0.65 > && {if} 1 (S.L.vdv_display_kneel1) 0 (S.L.vdv_display_kneel2) {endif} (L.L.kneeling) 1 = (L.L.niveau_setlevel_dir) || (L.L.Axle_Springfactor_0_R) 0.65 <= && {if} 0 (S.L.vdv_display_kneel1) 1 (S.L.vdv_display_kneel2) {endif} (L.L.kneeling) 2 = (L.L.niveau_setlevel_dir) || (L.L.Axle_Springfactor_0_R) 0.65 > && {if} 1 (S.L.vdv_display_kneel1) 0 (S.L.vdv_display_kneel2) {endif} (L.L.kneeling) 2 = (L.L.niveau_setlevel_dir) || (L.L.Axle_Springfactor_0_R) 0.65 <= && {if} 0 (S.L.vdv_display_kneel1) 1 (S.L.vdv_display_kneel2) {endif} ' Haltemenu Rampen (L.L.door_handrampe) {if} 1 (S.L.vdv_display_rampe_1) {else} 0 (S.L.vdv_display_rampe_1) {endif} {endif} (L.L.vdv_display_haltemenu) 0 = {if} ' Fahrtmenu (L.L.vdv_display_nacht) ! {if} "vdv_display_leer.dds" (S.$.vdv_display_texture) {else} "vdv_display_leer_N.dds" (S.$.vdv_display_texture) {endif} 0 (S.L.vdv_display_tuer4_auf) (S.L.vdv_display_tuer3_auf) (S.L.vdv_display_tuer2_auf) (S.L.vdv_display_tuer1_auf) (S.L.vdv_display_tuer4) (S.L.vdv_display_tuer3) (S.L.vdv_display_tuer2) (S.L.vdv_display_tuer1) (S.L.vdv_display_tuer_blinken) (S.L.vdv_display_tuer_timer) (S.L.vdv_display_MA) (S.L.vdv_display_HA) (S.L.vdv_display_haltemenu_timer) (S.L.vdv_display_kneel1) (S.L.vdv_display_kneel2) (S.L.vdv_display_rampe_1) (S.L.vdv_display_rampe_2) ' Fahrtmenu Information Retarder (L.L.antrieb_retardermoment) {if} 1 (S.L.vdv_display_retarder) {else} 0 (S.L.vdv_display_retarder) {endif} ' Fahrtmenu Information Zusatzheizung (L.L.zusatzheizung_running) (L.L.c2klima_fahrgast_running) (L.L.heatpower) (L.L.coolpower) > && || (L.L.vdv_display_neutral) ! && {if} 1 (S.L.vdv_display_zusatzheizung) 0 (S.L.vdv_display_klima) {else} 0 (S.L.vdv_display_zusatzheizung) (L.L.c2klima_fahrgast_running) (L.L.heatpower) (L.L.coolpower) <= && (L.L.vdv_display_neutral) ! && {if} 1 (S.L.vdv_display_klima) {else} 0 (S.L.vdv_display_klima) {endif} {endif} ' Fahrtmenu Information Knickschutz (L.L.knickschutz_aktiv) {if} 1 (S.L.vdv_display_knickschutz) {else} 0 (S.L.vdv_display_knickschutz) {endif} ' Fahrtmenu Information ASR aus (L.L.cp_asroffsw_targeton) (L.L.Velocity) 15 < && (L.L.engine_ASR_eingriff) || {if} 1 (S.L.vdv_display_asr) {else} 0 (S.L.vdv_display_asr) {endif} ' Symbol Haltewunsch (L.L.haltewunsch) (L.L.haltewunsch_2) || {if} 1 (S.L.vdv_display_haltewunsch) {else} 0 (S.L.vdv_display_haltewunsch) {endif} {endif} ' Symbol Feststellbremse kann immer angezeigt werden wenn keine Stoerung 2 (L.L.bremse_feststell) {if} 1 (S.L.vdv_display_feststell) {else} 0 (S.L.vdv_display_feststell) {endif} ' Symbol Neutral kann immer angezeigt werden wenn keine Stoerung 2 (L.L.antrieb_getr_aktugang) 0 = (L.L.antrieb_getr_gangvorwahl) 1 = (L.L.antrieb_einleg_lock) || && {if} 1 (S.L.vdv_display_neutral) {else} 0 (S.L.vdv_display_neutral) {endif} ' Symbol Kinderwagenwunsch kann immer angezeigt werden wenn keine Stoerung 2 (L.L.door_kinderwagenwunsch_lampe) {if} 1 (S.L.vdv_display_kinderwagen) {else} 0 (S.L.vdv_display_kinderwagen) {endif} ' Symbol Rolliwunsch kann immer angezeigt werden wenn keine Stoerung 2 (L.L.rampenwunschlampe) {if} 1 (S.L.vdv_display_rollstuhl) {else} 0 (S.L.vdv_display_rollstuhl) {endif} {endif} {else} 0 (S.L.vdv_display_feststell) (S.L.vdv_display_neutral) (S.L.vdv_display_tuer1) (S.L.vdv_display_tuer2) (S.L.vdv_display_tuer3) (S.L.vdv_display_tuer4) (S.L.vdv_display_tuer1_auf) (S.L.vdv_display_tuer2_auf) (S.L.vdv_display_tuer3_auf) (S.L.vdv_display_tuer4_auf) (S.L.vdv_display_tuer_blinken) (S.L.vdv_display_MA) (S.L.vdv_display_HA) (S.L.vdv_display_haltemenu_timer) (S.L.vdv_display_haltemenu) (S.L.vdv_display_retarder) (S.L.vdv_display_kneel1) (S.L.vdv_display_kneel2) (S.L.vdv_display_asr) (S.L.vdv_display_knickschutz) (S.L.vdv_display_haltewunsch) (S.L.vdv_display_kinderwagen) (S.L.vdv_display_rollstuhl) (S.L.vdv_display_rampe_1) (S.L.vdv_display_rampe_2) {endif} '********** Ende betriebsbereit *********** {endif} ' Wenn Strom aus oder Stoerung der Elektrik {else} 0 (S.L.vdv_display_an) (S.L.vdv_display_seq) (S.L.vdv_display_menu) (S.L.vdv_display_feststell) (S.L.vdv_display_neutral) (S.L.vdv_display_tuer1) (S.L.vdv_display_tuer2) (S.L.vdv_display_tuer3) (S.L.vdv_display_tuer4) (S.L.vdv_display_tuer1_auf) (S.L.vdv_display_tuer2_auf) (S.L.vdv_display_tuer3_auf) (S.L.vdv_display_tuer4_auf) (S.L.vdv_display_tuer_blinken) (S.L.vdv_display_tuer_timer) (S.L.vdv_display_MA) (S.L.vdv_display_HA) (S.L.vdv_display_haltemenu_timer) (S.L.vdv_display_haltemenu) (S.L.vdv_display_retarder) (S.L.vdv_display_kneel1) (S.L.vdv_display_kneel2) (S.L.vdv_display_gelb_kuehlwasser_view) (S.L.vdv_display_gelb_motoroel_view) (S.L.vdv_display_gelb_retarder_view) (S.L.vdv_display_gelb_kraftstoff_view) (S.L.vdv_display_gelb_batterie_view) (S.L.vdv_display_rot_multiple) (S.L.vdv_display_rot_multiple_vis) (S.L.vdv_display_inittimer) (S.L.vdv_display_asr) (S.L.vdv_display_knickschutz) (S.L.vdv_display_kinderwagen) (S.L.vdv_display_rollstuhl) (S.L.vdv_display_haltewunsch) (S.L.vdv_display_rampe_1) (S.L.vdv_display_rampe_2) (L.L.vdv_display_nacht) ! {if} "vdv_display_leer.dds" (S.$.vdv_display_texture) {else} "vdv_display_leer_N.dds" (S.$.vdv_display_texture) {endif} ' "" (S.$.vdv_display_menu2_leiste1) "" (S.$.vdv_display_menu1_leiste1) (S.$.vdv_display_menu1_leiste2) (S.$.vdv_display_menu1_leiste3) (S.$.vdv_display_menu1_leiste4) {endif} ' Stoerungen fuer VDV-Display (L.L.vdv_display_an) {if} ' NIVEAU ROT ' Systemausfall (L.L.elec_failure_general) {if} 1 (S.L.vdv_display_rot_system) {else} 0 (S.L.vdv_display_rot_system) {endif} ' Nothahn (L.L.doorEntriegelung_01) (L.L.Velocity) 1 > && (L.L.doorEntriegelung_23) || (L.L.doorEntriegelung_45) || {if} 1 (S.L.vdv_display_rot_nothahn) {else} 0 (S.L.vdv_display_rot_nothahn) {endif} ' Vorratsdruck Kreis 1 (L.L.bremse_p_tank01) 640000 < {if} 1 (S.L.vdv_display_rot_vorratsdruck1) {endif} (L.L.bremse_p_tank01) 680000 > {if} 0 (S.L.vdv_display_rot_vorratsdruck1) {endif} ' Vorratsdruck Kreis 2 (L.L.bremse_p_tank02) 640000 < {if} 1 (S.L.vdv_display_rot_vorratsdruck2) {endif} (L.L.bremse_p_tank02) 680000 > {if} 0 (S.L.vdv_display_rot_vorratsdruck2) {endif} ' Oeldruck (L.L.cockpit_oeldruck) 0.5 < (L.L.engine_on) && {if} 1 (S.L.vdv_display_rot_oeldruck) {else} 0 (S.L.vdv_display_rot_oeldruck) {endif} ' Kuehlwasser (L.L.engine_temperature) 110 > {if} 1 (S.L.vdv_display_rot_kuehlwasser) {else} 0 (S.L.vdv_display_rot_kuehlwasser) {endif} ' Getriebeoel (L.L.antrieb_temperature) 150 > {if} 1 (S.L.vdv_display_rot_getriebeoel) {else} 0 (S.L.vdv_display_rot_getriebeoel) {endif} ' EDC (L.L.antrieb_EMR_failure) (L.S.Day) 2 % 0.5 > && (L.L.cp_killsw_notaus) || {if} 1 (S.L.vdv_display_rot_edc) {else} 0 (S.L.vdv_display_rot_edc) {endif} ' EMR (L.L.antrieb_EMR_failure) (L.S.Day) 2 % 0.5 <= && {if} 1 (S.L.vdv_display_rot_emr) {else} 0 (S.L.vdv_display_rot_emr) {endif} ' Getriebe (L.L.antrieb_failure_general) {if} 1 (S.L.vdv_display_rot_getriebe) {else} 0 (S.L.vdv_display_rot_getriebe) {endif} ' NIVEAU GELB ' Keine Batterieladung (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) < (L.L.elec_busbar_main_sw) && (L.L.elec_V_generator) ! (L.L.engine_on) && || (L.L.generator_failure) (L.L.engine_on) && || (L.L.engine_failure_general) || {if} 1 (S.L.vdv_display_gelb_batterie) {else} 0 (S.L.vdv_display_gelb_batterie) {endif} ' Kuehlwasser / Motoroel (L.L.engine_temperature) 100 > {if} (L.S.Day) 2 % 0.5 > {if} 1 (S.L.vdv_display_gelb_kuehlwasser) {else} 1 (S.L.vdv_display_gelb_motoroel) {endif} {else} 0 (S.L.vdv_display_gelb_kuehlwasser) (S.L.vdv_display_gelb_motoroel) {endif} ' Retarder (L.L.antrieb_retardermoment) -500 < (L.L.antrieb_temperature) 115 > && (L.L.antrieb_failure_general) || {if} 1 (S.L.vdv_display_gelb_retarder) {endif} (L.L.antrieb_temperature) 100 < (L.L.antrieb_failure_general) ! && (L.L.lights_fern) ! && {if} 0 (S.L.vdv_display_gelb_retarder) {endif} ' Kraftstoff (L.L.tank_percent) 0.1 < {if} 1 (S.L.vdv_display_gelb_kraftstoff) {else} 0 (S.L.vdv_display_gelb_kraftstoff) {endif} {else} ' Stoerungen werden geloescht wenn Display aus: 0 (S.L.vdv_display_gelb_kuehlwasser) (S.L.vdv_display_gelb_motoroel) (S.L.vdv_display_gelb_batterie) (S.L.vdv_display_gelb_retarder) (S.L.vdv_display_gelb_kraftstoff) (S.L.vdv_display_rot_multiple) (S.L.vdv_display_rot) (S.L.vdv_display_rot_system) (S.L.vdv_display_rot_nothahn) (S.L.vdv_display_rot_vorratsdruck1) (S.L.vdv_display_rot_vorratsdruck2) (S.L.vdv_display_rot_oeldruck) (S.L.vdv_display_rot_kuehlwasser) (S.L.vdv_display_rot_getriebeoel) (S.L.vdv_display_rot_edc) (S.L.vdv_display_rot_emr) (S.L.vdv_display_rot_getriebe) (S.L.vdv_display_gelb) (S.L.vdv_display_rot_multiple_vis) (S.L.vdv_display_rot_multiple) (S.L.vdv_display_inittimer) {endif} ' Unterscheidung Fahrt/Halt fuer Stoermenue gelb (L.L.door_freigabe) (L.L.door_2) 0 > || (L.L.bremse_halte) || (L.L.bremse_feststell) || (L.L.bremse_anfahrsperre) || (L.L.engine_injection_on) ! || (L.L.Velocity) (C.L.doors_maxvspeed) < && (L.L.vdv_display_rot) ! && {if} 1 (S.L.vdv_display_halt) {else} 0 (S.L.vdv_display_halt) {endif} {end} {macro:cockpitlights_frame} (L.L.elec_failure_general) ! {if} ' Schalterbeleuchtung Wippschalter Umluft (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > {if} (L.L.cp_vent_umluft_target) (S.L.cp_vent_umluft_licht) {else} 0 (S.L.cp_vent_umluft_licht) {endif} ' Schalterbeleuchtung Wippschalter Scheibenheizung (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > {if} (L.L.cp_windshieldheat_targeton) (S.L.cp_vent_scheibenheizung_licht) {else} 0 (S.L.cp_vent_scheibenheizung_licht) {endif} ' Schalterbeleuchtung Wippschalter Verstellung (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > {if} (L.L.vdv_verstellbar_sw) (S.L.vdv_verstellbar_sw_licht) {else} 0 (S.L.vdv_verstellbar_sw_licht) {endif} ' Schalterbeleuchtung Wippschalter Zusatzheizung (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > {if} (L.L.zusatzheizung_running) (S.L.vdv_zusatzheizung_sw_licht) {else} 0 (S.L.vdv_zusatzheizung_sw_licht) {endif} ' Schalterbeleuchtung Wippschalter Seitenscheibenheizung (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > {if} (L.L.cp_sidewindowheatsw_targeton) (S.L.vdv_sw_sidewindow_licht) {else} 0 (S.L.vdv_sw_sidewindow_licht) {endif} ' Schalterbeleuchtung Wippschalter Niveauregelung (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.niveau_on) && {if} (L.L.niveau_setlevel_active) (S.L.vdv_niveau_licht) {else} 0 (S.L.vdv_niveau_licht) {endif} ' Roter Stoerungsmelder (STOP) (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.engine_injection_on) || {if} (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > {if} (L.L.vdv_display_rot) (L.L.globaltimer) (L.L.engine_starttime) 3 + < (L.L.engine_on) && || ' (L.L.vdv_display_rot_wennstop) || {if} (L.L.vdv_display_rot) (L.L.cockpit_light_masterfailure) ! && {if} (T.L.ev_vdv_fehler) {endif} 1 (S.L.cockpit_light_masterfailure) {else} 0 (S.L.cockpit_light_masterfailure) {endif} {else} 0 (S.L.cockpit_light_masterfailure) {endif} {else} 0 (S.L.cockpit_light_masterfailure) {endif} ' Gelber Stoerungsmelder (STOP) (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.engine_injection_on) || {if} (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > {if} (L.L.vdv_display_gelb) (L.L.globaltimer) (L.L.engine_starttime) 3 + < (L.L.engine_on) && || {if} (L.L.vdv_display_gelb) (L.L.cockpit_light_yellowfailure) ! && {if} (T.L.ev_vdv_fehler) {endif} 1 (S.L.cockpit_light_yellowfailure) {else} 0 (S.L.cockpit_light_yellowfailure) {endif} {else} 0 (S.L.cockpit_light_yellowfailure) {endif} {else} 0 (S.L.cockpit_light_yellowfailure) {endif} ' Haltewunsch (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.engine_injection_on) || (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > && (L.L.haltewunschlampe) && (L.L.globaltimer) (L.L.engine_starttime) 2.5 + < (L.L.engine_on) && || {if} 1 (S.L.cockpit_light_haltewunsch) {else} 0 (S.L.cockpit_light_haltewunsch) {endif} ' ABS/ASR-Kontrolle (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.engine_injection_on) || (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > && (L.L.bremse_ABS_eingriff) (L.L.engine_ASR_eingriff) (L.L.bremse_ABS_failure) || || && (L.L.globaltimer) (L.L.engine_starttime) 2.5 + < (L.L.engine_on) && || {if} 1 (S.L.cockpit_light_ABS) {else} 0 (S.L.cockpit_light_ABS) {endif} ' Batterie (L.L.elec_V_generator) 0.5 < (L.L.globaltimer) (L.L.engine_starttime) 1.8 + < (L.L.engine_on) && || (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && (S.L.cockpit_light_batterie) ' Bremsstörung (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.engine_injection_on) || (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > && {if} (L.L.bremse_p_Tank03) 640000 < (L.L.bremse_ABS_failure) || (L.L.globaltimer) (L.L.engine_starttime) 2 + < (L.L.engine_on) && || {if} 1 (S.L.cockpit_light_feststellbremse) {endif} (L.L.bremse_p_Tank03) 680000 > (L.L.bremse_ABS_failure) ! && (L.L.globaltimer) (L.L.engine_starttime) 2 + >= (L.L.engine_on) ! || && {if} 0 (S.L.cockpit_light_feststellbremse) {endif} {else} 0 (S.L.cockpit_light_feststellbremse) {endif} ' Vier gruene Kontrollleuchten (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.engine_injection_on) || (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > && (L.L.globaltimer) (L.L.engine_starttime) 1.5 + < (L.L.engine_on) && && {if} 1 (S.L.cockpit_light_viergruen) {else} 0 (S.L.cockpit_light_viergruen) {endif} ' Debug (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) < {if} 0 (S.L.cockpit_light_kneeling) (S.L.rampe_aktiv_licht) (L.L.cp_stopbrake_targeton) ! {if} 0 (S.L.bremse_halte_licht) {endif} {endif} (L.L.cp_schluessel_rot) 0 = (L.L.cp_schluessel_rot_mode) 0 = && (L.L.engine_injection_on) ! && (L.L.cp_killsw_batterie_sw) || {if} 0 (S.L.elec_busbar_main_sw) (S.L.engine_stopwait) {endif} (L.L.engine_stopwait) 0 > (L.L.cp_schluessel_rot) 0.17 > (L.L.cp_schluessel_rot) 0.48 < && && (L.L.cp_schluessel_rot_mode) 0.5 = ! && (L.L.cp_killsw_batterie_sw) ! && {if} 0.33 (S.L.cp_schluessel_rot_mode) (L.L.elec_busbar_main_sw) ! {if} (L.L.globaltimer) (S.L.cockpit_schluesselzeit) 0 (S.L.cockpit_engineshutdowntime) 1 (S.L.elec_busbar_main_sw) 1 (S.L.cockpit_relaissound) {endif} {endif} ' Geschwindigkeitswarnung (L.L.cockpit_tachowinkel) 159 >= (L.L.elec_busbar_main) && (S.L.cockpit_light_speedwarning) ' Retarder (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > && (L.L.cp_retarder1_targeton) (L.L.antrieb_retardermoment) 0 = ! && (L.L.cp_retarder2_targeton) || && {if} 1 (S.L.cockpit_light_retarder) {else} 0 (S.L.cockpit_light_retarder) {endif} ' ASR aus (L.L.cp_asroffsw_targeton) (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > && (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 3 + < && (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) < && || {if} 1 (S.L.cockpit_light_ASR_off) {else} 0 (S.L.cockpit_light_ASR_off) {endif} ' Tuerkontrolle (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > {if} (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > {if} (L.L.door_0) 0.2 > (L.L.door_1) 0.2 > || (L.L.door_2) 0.2 > || (L.L.door_3) 0.2 > || (L.L.door_4) 0.2 > || (L.L.door_5) 0.2 > || (L.L.bremse_p_Tank04) 650000 < || {if} 1 (S.L.cockpit_light_tuerkontrolle) {else} 0 (S.L.cockpit_light_tuerkontrolle) {endif} (L.L.door_freigabe) (S.L.cockpit_light_tuerfreigabe) (L.L.doorEntriegelung_45) {if} 0 (S.L.cockpit_light_tuerenzu) (L.L.cockpit_light_tuerkontrolle_timer) 1 < {if} (L.S.Timegap) (L.L.cockpit_light_tuerkontrolle_timer) + (S.L.cockpit_light_tuerkontrolle_timer) {else} 0 (S.L.cockpit_light_tuerkontrolle_timer) (L.L.cockpit_light_tuerkontrolle_blinken) ! (S.L.cockpit_light_tuerkontrolle_blinken) {endif} (L.L.cockpit_light_tuerkontrolle_blinken) 0 = {if} 1 (S.L.cockpit_light_tuerkontrolle) {else} 0 (S.L.cockpit_light_tuerkontrolle) {endif} {endif} {endif} {else} 0 (S.L.cockpit_light_tuerkontrolle) (S.L.cockpit_light_tuerfreigabe) {endif} (L.L.Velocity) (C.L.doors_maxvspeed) < (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) < || (L.L.cockpit_light_tuerkontrolle) ! && (L.L.globaltimer) (L.L.cockpit_schluesselzeit) 1 + > && (L.L.door_freigabe) ! && (L.L.doorEntriegelung_45) ! && {if} 1 (S.L.cockpit_light_tuerenzu) {endif} (L.L.Velocity) (C.L.doors_maxvspeed) >= (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) <= || (L.L.cockpit_light_tuerkontrolle) 1 = || (L.L.door_freigabe) || {if} 0 (S.L.cockpit_light_tuerenzu) {endif} 'Blinken Tuerschalter bei zu wenig Druck oder Fehler 'Vorn (L.L.bremse_p_Tank04) 650000 < (L.L.doorEntriegelung_01) || (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && {if} (L.L.cockpit_light_tuertimer) 0.7 < {if} (L.S.Timegap) (L.L.cockpit_light_tuertimer) + (S.L.cockpit_light_tuertimer) {else} 0 (S.L.cockpit_light_tuertimer) (L.L.cockpit_light_tuerblinken) ! (S.L.cockpit_light_tuerblinken) {endif} (L.L.cockpit_light_tuerblinken) 0 = {if} 1 (S.L.cockpit_light_tuervorn) {else} 0 (S.L.cockpit_light_tuervorn) {endif} {else} (L.L.door_0) 0.2 > (L.L.door_1) 0.2 > || (L.L.door_memory0) (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > || && {if} 1 (S.L.cockpit_light_tuervorn) {else} 0 (S.L.cockpit_light_tuervorn) {endif} {endif} 'Hinten (L.L.bremse_p_Tank04) 650000 < (L.L.doorEntriegelung_23) || (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && {if} (L.L.cockpit_light_tuertimer) 0.7 < {if} (L.S.Timegap) (L.L.cockpit_light_tuertimer) + (S.L.cockpit_light_tuertimer) {else} 0 (S.L.cockpit_light_tuertimer) (L.L.cockpit_light_tuerblinken) ! (S.L.cockpit_light_tuerblinken) {endif} (L.L.cockpit_light_tuerblinken) 0 = {if} 1 (S.L.cockpit_light_tuerhinten) {else} 0 (S.L.cockpit_light_tuerhinten) {endif} {else} (L.L.door_2) 0.2 > (L.L.door_3) 0.2 > || (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && {if} 1 (S.L.cockpit_light_tuerhinten) {else} 0 (S.L.cockpit_light_tuerhinten) {endif} {endif} 'Tuer 3 (L.L.bremse_p_Tank04) 650000 < (L.L.doorEntriegelung_45) || (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && {if} (L.L.cockpit_light_tuertimer) 0.7 < {if} (L.S.Timegap) (L.L.cockpit_light_tuertimer) + (S.L.cockpit_light_tuertimer) {else} 0 (S.L.cockpit_light_tuertimer) (L.L.cockpit_light_tuerblinken) ! (S.L.cockpit_light_tuerblinken) {endif} (L.L.cockpit_light_tuerblinken) 0 = {if} 1 (S.L.cockpit_light_tuer3) {else} 0 (S.L.cockpit_light_tuer3) {endif} {else} (L.L.door_4) 0.2 > (L.L.door_5) 0.2 > || (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && {if} 1 (S.L.cockpit_light_tuer3) {else} 0 (S.L.cockpit_light_tuer3) {endif} {endif} ' Door Memory erlaubt, die Tuer noch zu schliessen, wenn der Bus abgestellt wurde (L.L.door_0) 0 > (L.L.engine_injection_on) (L.L.elec_busbar_main) || && (C.L.door_memory) && {if} (L.L.door_memory0_zeit) 0 = {if} (L.L.globaltimer) (S.L.door_memory0_zeit) {endif} 1 (S.L.door_memory0) {endif} (L.L.globaltimer) (L.L.door_memory0_zeit) (C.L.door_memory) + > {if} 0 (S.L.door_memory0) (S.L.door_memory0_zeit) {endif} {else} ' Bei Stoerung der Gesamtelektrik 0 (S.L.cockpit_oeldruck) (S.L.cockpit_light_ASR_off) (S.L.cockpit_light_retarder) (S.L.cockpit_light_kneeling) (S.L.cockpit_light_feststellbremse) (S.L.cockpit_light_masterfailure) (S.L.cockpit_light_batterie) (S.L.cockpit_light_tuerenzu) (S.L.cockpit_light_tuerkontrolle) (S.L.cockpit_light_tuerhinten) (S.L.cockpit_light_tuervorn) (S.L.cockpit_light_funk) (S.L.rampe_aktiv_licht) (S.L.cockpit_light_EMR) (S.L.cockpit_light_blinker) (S.L.cockpit_light_scheibenheizung) (S.L.cockpit_light_zusatzheizung) (S.L.cockpit_light_klima) (S.L.bremse_halte_licht) (S.L.cockpit_light_oelstand) (S.L.cockpit_light_ABS) (S.L.cp_vent_umluft_licht) (S.L.cp_vent_scheibenheizung_licht) {endif} {end}