'############## 'Cockpit-Script '############## 'Simuliert alle unmittelbar mit dem Armaturenbrett zusammenhängenden Funktionen '(c) 23.10.2009 Rüdiger Hülsmann '(c) 03.11.2012 Marcel Kuhnt '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 '- Modified by Notio3D '------------------------------------------------------------------------------------------ '---------------------- ' Trigger '---------------------- {trigger:automatic_R} (C.L.dashboard_antrieb) 1 >= {if} (L.L.brake) 0.05 > (L.L.velocity) 3 < {if} (L.L.antrieb_getr_gangvorwahl) 1 = {if} (L.L.antrieb_getr_gangvorwahl) 0 = ! {if} (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt) {endif} 0 (S.L.antrieb_getr_gangvorwahl) {endif} {endif} (L.L.cockpit_gangR) 0 = {if} (T.L.ev_gangwahltaster) {endif} 1 (S.L.cockpit_gangR) 0 (S.L.cockpit_gangD) (S.L.cockpit_gangN) (S.L.cockpit_gang1) (S.L.cockpit_gang2) (S.L.cockpit_gang3) {endif} {endif} {trigger:automatic_R_off} (L.L.cockpit_gangR) 1 = {if} 0.7 (S.L.cockpit_gangR) {endif} {end} {trigger:automatic_N} (C.L.dashboard_antrieb) 1 >= {if} (L.L.antrieb_getr_gangvorwahl) 1 = ! {if} (L.S.getTime) (C.L.antrieb_gangwahlzeit) (C.L.antrieb_neutralwahlzeit) - - (S.L.antrieb_getr_gangwahlzeitpunkt) {endif} (L.L.cockpit_gangN) 0 = {if} (T.L.ev_gangwahltaster_N) {endif} 1 (S.L.antrieb_getr_gangvorwahl) (S.L.cockpit_gangN) 0 (S.L.cockpit_gangR) (S.L.cockpit_gangD) (S.L.cockpit_gang1) (S.L.cockpit_gang2) (S.L.cockpit_gang3) {endif} {end} {trigger:automatic_N_off} (L.L.cockpit_gangN) 1 = {if} 0.7 (S.L.cockpit_gangN) {endif} {end} {trigger:automatic_D} (C.L.dashboard_antrieb) 1 = {if} (L.L.antrieb_getr_gangvorwahl) 0 > (L.L.brake) 0.05 > && {if} (L.L.antrieb_getr_gangvorwahl) 4 = ! {if} (T.L.ev_gangwahltaster) (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt) {endif} 4 (S.L.antrieb_getr_gangvorwahl) {endif} (L.L.cockpit_gangD) 0 = {if} (T.L.ev_gangwahltaster) {endif} 1 (S.L.cockpit_gangD) 0 (S.L.cockpit_gangR) (S.L.cockpit_gangN) (S.L.cockpit_gang1) (S.L.cockpit_gang2) (S.L.cockpit_gang3) {endif} (C.L.dashboard_antrieb) 2 = {if} (L.L.antrieb_getr_gangvorwahl) 0 > (L.L.brake) 0.05 > && {if} (L.L.antrieb_getr_gangvorwahl) 1 = {if} (L.S.getTime) (S.L.antrieb_getr_gangwahlzeitpunkt) 6 (S.L.antrieb_getr_gangvorwahl) {endif} 6 (S.L.antrieb_getr_gangvorwahl) {endif} (L.L.cockpit_gangD) 0 = {if} (T.L.ev_gangwahltaster) {endif} 1 (S.L.cockpit_gangD) 0 (S.L.cockpit_gangR) (S.L.cockpit_gangN) (S.L.cockpit_gang1) (S.L.cockpit_gang2) (S.L.cockpit_gang3) {endif} {endif} {trigger:automatic_D_off} (L.L.cockpit_gangD) 1 = {if} 0.7 (S.L.cockpit_gangD) {endif} {end} {trigger:horn} (L.L.cockpit_hupe) ! (L.L.elec_busbar_main) (C.L.elec_busbar_minV) > && {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) (C.L.elec_busbar_minV) > && {if} (T.L.ev_hupe_aus) {endif} 0 (S.L.cockpit_hupe) {end} {trigger:cp_retarder_toggle} (L.L.cp_retarder_sw_direkt) ! (S.L.cp_retarder_sw_direkt) (L.L.cp_retarder_sw_direkt) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_fahrerlicht_toggle} (L.L.cp_fahrerlicht_sw) ! (S.L.cp_fahrerlicht_sw) (L.L.cp_fahrerlicht_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_licht_oberdeck_toggle} (L.L.cp_licht_oberdeck_sw) ! (S.L.cp_licht_oberdeck_sw) (L.L.cp_licht_oberdeck_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_licht_unterdeck_toggle} (L.L.cp_licht_unterdeck_sw) ! (S.L.cp_licht_unterdeck_sw) (L.L.cp_licht_unterdeck_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_licht_untenrechts_toggle} (L.L.cp_licht_untenrechts_sw) ! (S.L.cp_licht_untenrechts_sw) (L.L.cp_licht_untenrechts_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_mic_toggle} (L.L.cp_mic_sw) ! (S.L.cp_mic_sw) (L.L.cp_mic_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_kein_toggle} (L.L.cp_kein_sw) ! (S.L.cp_kein_sw) (L.L.cp_kein_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_horntype_toggle} (L.L.cp_horntype_sw) ! (S.L.cp_horntype_sw) (L.L.cp_horntype_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_alarm_toggle} (L.L.cp_alarm_sw) ! (S.L.cp_alarm_sw) (L.L.cp_alarm_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_dummy_func04_toggle} 1 (S.L.cp_dummy_func04_sw) (L.L.cp_dummy_func04_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} (L.L.elec_busbar_main) {if} (L.L.cp_dummy_func04_active) ! (S.L.cp_dummy_func04_active) 0 (S.L.cp_spiegel_timer) {endif} {end} {trigger:cp_dummy_func04_toggle_off} 0 (S.L.cp_dummy_func04_sw) (L.L.cp_dummy_func04_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_disabled_service_toggle} (L.L.cp_disabled_service_sw) ! (S.L.cp_disabled_service_sw) (L.L.cp_disabled_service_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_dummy_sw01_toggle} (L.L.cp_dummy_sw01_sw) ! (S.L.cp_dummy_sw01_sw) (L.L.cp_dummy_sw01_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_tuer_blinkwarn_toggle} 1 (S.L.dash_school_blinkwarn_sw) 1 (S.L.dash_school_blinkwarn_sw_trg) (L.L.dash_school_blinkwarn_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_tuer_blinkwarn_toggle_off} 0 (S.L.dash_school_blinkwarn_sw) (L.L.dash_school_blinkwarn_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_regenerate_toggle} 1 (S.L.cp_regenerate_sw) 0 (S.L.cp_regenerate_up_active) (L.L.cp_regenerate_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_regenerate_toggle_off} 0 (S.L.cp_regenerate_sw) (L.L.cp_regenerate_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_regenerate_up} -1 (S.L.cp_regenerate_sw) 0 (S.L.cp_regenerate_up_timer) (L.L.cp_regenerate_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_regenerate_up_drag} (L.L.antrieb_getr_gangvorwahl) 1 = (L.L.antrieb_getr_aktugang) 0 = && (L.L.engine_n) 500 > && (L.L.engine_n) 650 < && (L.L.cockpit_light_parking_brake) && (L.L.cp_regenerate_up_timer) 3 > && {if} 1 (S.L.cp_regenerate_up_active) 0 (S.L.cp_regenerate_up_active_timer) {endif} {end} {trigger:cp_regenerate_up_off} 0 (S.L.cp_regenerate_sw) (L.L.cp_regenerate_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} ' Driver door {trigger:cp_fahrertuer_drag} 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) {end} {trigger:cp_fahrertuer_off} 0 (S.L.cp_fahrertuer_dragged) {end} ' Kneeling ' Reset {trigger:cp_kneel_up} -1 (S.L.cp_kneel_sw) 0 (S.L.cp_kneeling_mode_forced) (S.L.cp_kneel_dn_drag_timer) (L.L.elec_busbar_main) {if} 0 (S.L.cp_kneeling_mode) {endif} (L.L.cp_kneel_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_kneel_up_off} 0 (S.L.cp_kneel_sw) (L.L.cp_kneel_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} ' Enable automatic kneeling or force it (hold) {trigger:cp_kneel_dn_drag} (L.L.cp_kneel_dn_drag_timer) (L.S.Timegap) + (S.L.cp_kneel_dn_drag_timer) (L.L.cp_kneel_dn_drag_timer) 0.5 > {if} (L.L.elec_busbar_main) {if} 1 (S.L.cp_kneeling_mode_forced) {endif} {endif} {end} {trigger:cp_kneel_dn} 1 (S.L.cp_kneel_sw) 0 (S.L.cp_kneeling_mode_forced) (S.L.cp_kneel_dn_drag_timer) (L.L.elec_busbar_main) {if} 1 (S.L.cp_kneeling_mode) {endif} (L.L.cp_kneel_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_kneel_dn_off} 0 (S.L.cp_kneel_sw) (S.L.cp_kneeling_mode_forced) (L.L.cp_kneel_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} ' Electric hatches {trigger:cp_hatch_fr_front} -1 (S.L.cp_hatch_fr_sw) (L.L.cp_taster_heiz_aircond_sw_request) ! {if} (L.L.elec_busbar_main) {if} (L.L.cp_hatch_fr_front_mode) ! (S.L.cp_hatch_fr_front_mode) {endif} (L.L.cp_hatch_fr_front_mode) {if} (T.L.ev_hatch_front_fr_opn) {else} (T.L.ev_hatch_front_fr_cls) {endif} {endif} (L.L.cp_hatch_fr_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_hatch_fr_front_off} 0 (S.L.cp_hatch_fr_sw) (L.L.cp_hatch_fr_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_hatch_fr_back} 1 (S.L.cp_hatch_fr_sw) (L.L.cp_taster_heiz_aircond_sw_request) ! {if} (L.L.elec_busbar_main) {if} (L.L.cp_hatch_fr_back_mode) ! (S.L.cp_hatch_fr_back_mode) {endif} (L.L.cp_hatch_fr_back_mode) {if} (T.L.ev_hatch_front_bc_opn) {else} (T.L.ev_hatch_front_bc_cls) {endif} {endif} (L.L.cp_hatch_fr_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_hatch_fr_back_off} 0 (S.L.cp_hatch_fr_sw) (L.L.cp_hatch_fr_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} ' Rear hatch {trigger:cp_hatch_rr_front} -1 (S.L.cp_hatch_rr_sw) (L.L.cp_taster_heiz_aircond_sw_request) ! {if} (L.L.elec_busbar_main) {if} (L.L.cp_hatch_rr_front_mode) ! (S.L.cp_hatch_rr_front_mode) {endif} (L.L.cp_hatch_rr_front_mode) {if} (T.L.ev_hatch_rear_fr_opn) {else} (T.L.ev_hatch_rear_fr_cls) {endif} {endif} (L.L.cp_hatch_rr_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_hatch_rr_front_off} 0 (S.L.cp_hatch_rr_sw) (L.L.cp_hatch_rr_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_hatch_rr_back} 1 (S.L.cp_hatch_rr_sw) (L.L.cp_taster_heiz_aircond_sw_request) ! {if} (L.L.elec_busbar_main) {if} (L.L.cp_hatch_rr_back_mode) ! (S.L.cp_hatch_rr_back_mode) {endif} (L.L.cp_hatch_rr_back_mode) {if} (T.L.ev_hatch_rear_bc_opn) {else} (T.L.ev_hatch_rear_bc_cls) {endif} {endif} (L.L.cp_hatch_rr_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_hatch_rr_back_off} 0 (S.L.cp_hatch_rr_sw) (L.L.cp_hatch_rr_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} ' End hatches ' Electric rollo {trigger:cp_rollo_fr_up} -1 (S.L.cp_rollo_fr_sw) (L.L.cp_rollo_fr_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_rollo_fr_up_drag} (L.L.elec_busbar_main) {if} 1 (S.L.cp_rollo_fr_up_sound) (L.L.cp_rollo_fenster_pos) (L.S.Timegap) 0.2 * - (S.L.cp_rollo_fenster_pos) 0 < {if} 0 (S.L.cp_rollo_fenster_pos) {endif} {endif} {end} {trigger:cp_rollo_fr_up_off} 0 (S.L.cp_rollo_fr_sw) (S.L.cp_rollo_fr_up_sound) (L.L.cp_rollo_fr_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_rollo_fr_dn} 1 (S.L.cp_rollo_fr_sw) (L.L.cp_rollo_fr_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_rollo_fr_dn_drag} (L.L.elec_busbar_main) {if} 1 (S.L.cp_rollo_fr_dn_sound) (L.L.cp_rollo_fenster_pos) (L.S.Timegap) 0.25 * + (S.L.cp_rollo_fenster_pos) 1 > {if} 1 (S.L.cp_rollo_fenster_pos) {endif} {endif} {end} {trigger:cp_rollo_fr_dn_off} 0 (S.L.cp_rollo_fr_sw) (S.L.cp_rollo_fr_dn_sound) (L.L.cp_rollo_fr_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_direkt_brems_tuer_toggle} (L.L.cp_direkt_brems_tuer_sw) ! (S.L.cp_direkt_brems_tuer_sw) (L.L.cp_direkt_brems_tuer_sw) {if} (T.L.ev_switch_halte__on) {else} (T.L.ev_switch_halte__off) {endif} {end} {trigger:cp_direkt_brems_tuer_sw_toggle} (L.L.cp_20h_halte_sw) ! (S.L.cp_20h_halte_sw) (L.L.cp_20h_halte_sw) {if} (T.L.ev_switch_halte___on) {else} (T.L.ev_switch_halte___off) {endif} (L.L.elec_busbar_main) (L.L.cp_20h_halte_sw) && (L.L.elec_runtime_display) 45 > && {if} 15 (S.L.onboard_e5_mode) 1 (S.L.onboard_e5_screenlock_forced) 0 (S.L.onboard_e5_screenlock_forced_timer) 4 (S.L.cp_heizluefter_sw_onboard) 0 (S.L.onboard_e5_textureload) (T.L.ev_cluster_error) {endif} {end} {trigger:cp_wischer_schnell_toggle} (L.L.cp_wischer_schnell_sw) ! (S.L.cp_wischer_schnell_sw) s1 {end} {trigger:kw_wipermode_up} (L.L.cp_wischer_einaus_sw) ! (S.L.cp_wischer_einaus_sw) s1 {if} 2 (S.L.cockpit_wischerhebel_mode) (S.L.cockpit_wischer_drehschalter_mode) 2 3 / (S.L.cockpit_wischerhebel) (S.L.cockpit_wischer_drehschalter) (L.L.cp_wischer_intervall_sw) ! {if} (T.L.ev_wischerhebel) {endif} {else} (L.L.cp_wischer_intervall_sw) {if} 1 (S.L.cockpit_wischerhebel_mode) (S.L.cockpit_wischer_drehschalter_mode) 1 3 / (S.L.cockpit_wischerhebel) 0 (S.L.cockpit_wischer_drehschalter) {else} 0 (S.L.cockpit_wischerhebel_mode) (S.L.cockpit_wischer_drehschalter_mode) (S.L.cockpit_wischerhebel) 1 3 / (S.L.cockpit_wischer_drehschalter) (T.L.ev_wischerhebel) {endif} {endif} {end} {trigger:cp_wischer_intervall_toggle} (L.L.cp_wischer_intervall_sw) {if} 0 (S.L.cp_wischer_intervall_sw) 0 (S.L.cockpit_wischer_drehschalter_mode) (S.L.cp_wischer_schnell_sw) (S.L.cp_wischer_einaus_sw) 0 (S.L.cockpit_wischerhebel) (S.L.cockpit_wischer_drehschalter) {else} 1 (S.L.cp_wischer_intervall_sw) 0 (S.L.cp_wischer_einaus_sw) (S.L.cp_wischer_schnell_sw) 1 (S.L.cockpit_wischer_drehschalter_mode) 1 3 / (S.L.cockpit_wischerhebel) (S.L.cockpit_wischer_drehschalter) {endif} {end} {trigger:cp_wischer_wascher_button} 1 (S.L.cp_wischer_wascher_sw) s1 (T.L.ev_wischerhebel) {end} {trigger:cp_wischer_wascher_button_off} 0 (S.L.cp_wischer_wascher_sw) s1 (S.L.wiper_wascher_sw) (T.L.ev_wischerhebel) {end} '-------------------------------------------------------- 'Neues Heizlüftersteuerungsgerät: {trigger:cp_taster_heiz_aircond_toggle} (L.L.elec_busbar_main) {if} (L.L.vis_aircond_intern) 0 = {if} 8 (S.L.onboard_e5_mode) 1 (S.L.onboard_e5_screenlock_forced) 0 (S.L.onboard_e5_screenlock_forced_timer) 0 (S.L.onboard_e5_textureload) {else} (L.S.Weather_Temperature) 2 > {if} (L.L.cp_taster_heiz_aircond_sw_request) ! (S.L.cp_taster_heiz_aircond_sw_request) (L.L.cp_taster_heiz_aircond_sw_request) {if} (L.L.elec_busbar_main) (L.L.vis_aircond_intern) 1 = && {if} (L.L.heating_mode) ! (S.L.heating_mode) (L.L.heating_mode) 0 = {if} 1 (S.L.cp_taster_heiz_aircond_sw_request) {else} 0 (S.L.cp_taster_heiz_aircond_sw_request) {endif} {endif} {endif} {else} 9 (S.L.onboard_e5_mode) 1 (S.L.onboard_e5_screenlock_forced) 0 (S.L.onboard_e5_screenlock_forced_timer) 0 (S.L.onboard_e5_textureload) {endif} {endif} {endif} 1 (S.L.cp_taster_heiz_aircond_sw) (T.L.ev_switch_heizung_on) {end} {trigger:cp_taster_heiz_aircond_toggle_off} 0 (S.L.cp_taster_heiz_aircond_sw) (T.L.ev_switch_heizung_off) {end} {trigger:cp_taster_heiz_heatcold_toggle} (L.L.elec_busbar_main) (L.L.vis_aircond_intern) 0 = && {if} 8 (S.L.onboard_e5_mode) 1 (S.L.onboard_e5_screenlock_forced) 0 (S.L.onboard_e5_screenlock_forced_timer) 0 (S.L.onboard_e5_textureload) {endif} 1 (S.L.cp_taster_heiz_heatcold_sw) (L.L.cp_taster_heiz_heatcold_intern) ! (S.L.cp_taster_heiz_heatcold_intern) (T.L.ev_switch_heizung_on) {end} {trigger:cp_taster_heiz_heatcold_toggle_off} 0 (S.L.cp_taster_heiz_heatcold_sw) (T.L.ev_switch_heizung_off) ' 0 (S.L.cp_taster_heiz_heatcold_sw_light) {end} {trigger:cp_taster_heiz_plus} (L.L.onboard_e5_mode) 6 = {if} (L.L.elec_busbar_main) {if} 0 (S.L.onboard_e5_screenlock_forced_timer) (L.L.onboard_acpsg_speed) (C.L.onboard_acpsg_speed_steps) < {if} (L.L.onboard_acpsg_speed) 1 + (S.L.onboard_acpsg_speed) {endif} {endif} {else} (L.L.onboard_e5_mode) 7 = {if} (L.L.elec_busbar_main) {if} 0 (S.L.onboard_e5_screenlock_forced_timer) (L.L.onboard_acpsg_temp) (C.L.onboard_acpsg_temp_steps) < {if} (L.L.onboard_acpsg_temp) 1 + (S.L.onboard_acpsg_temp) {endif} {endif} {endif} {endif} 1 (S.L.cp_taster_heiz_plus_sw) (T.L.ev_switch_heizung_on) {end} {trigger:cp_taster_heiz_plus_off} 0 (S.L.cp_taster_heiz_plus_sw) (T.L.ev_switch_heizung_off) {end} {trigger:cp_taster_heiz_minus} (L.L.onboard_e5_mode) 6 = {if} (L.L.elec_busbar_main) {if} 0 (S.L.onboard_e5_screenlock_forced_timer) (L.L.onboard_acpsg_speed) 1 > {if} (L.L.onboard_acpsg_speed) 1 - (S.L.onboard_acpsg_speed) {endif} {endif} {else} (L.L.onboard_e5_mode) 7 = {if} (L.L.elec_busbar_main) {if} 0 (S.L.onboard_e5_screenlock_forced_timer) (L.L.onboard_acpsg_temp) 1 = {if} 2 (S.L.heating_mode) 0 (S.L.aircond_active) 0 (S.L.cp_taster_heiz_aircond_sw_request) 0 (S.L.cp_heizluefter_sw) (S.L.cp_heizluefter_sw_onboard) 0 (S.L.onboard_e5_screenlock_forced) 0 (S.L.onboard_e5_screenlock_forced_timer) (S.L.onboard_e5_textureload) 2 (S.L.onboard_e5_mode) {endif} (L.L.onboard_acpsg_temp) 1 > {if} (L.L.onboard_acpsg_temp) 1 - (S.L.onboard_acpsg_temp) {endif} {endif} {endif} {endif} -1 (S.L.cp_taster_heiz_plus_sw) (T.L.ev_switch_heizung_on) {end} {trigger:cp_taster_heiz_minus_off} 0 (S.L.cp_taster_heiz_plus_sw) (T.L.ev_switch_heizung_off) {end} {trigger:cp_taster_heiz_umluft_fl} (L.L.elec_busbar_main) {if} (L.L.cp_taster_heiz_Smog) ! (S.L.cp_taster_heiz_Smog) {endif} 1 (S.L.cp_taster_heiz_umluft_sw) (T.L.ev_switch_heizung_on) {end} {trigger:cp_taster_heiz_umluft_fl_off} 0 (S.L.cp_taster_heiz_umluft_sw) (T.L.ev_switch_heizung_off) {end} {trigger:cp_taster_heiz_umluft} (L.L.onboard_e5_mode) 6 = {if} (L.L.elec_busbar_main) {if} 0 (S.L.taster_heiz_umluft_press) 0 (S.L.onboard_e5_screenlock_forced_timer) (L.L.onboard_acpsg_speed) (C.L.onboard_acpsg_speed_steps) < {if} (L.L.onboard_acpsg_speed) 1 + (S.L.onboard_acpsg_speed) {endif} {endif} {else} (L.L.onboard_e5_mode) 7 = {if} (L.L.elec_busbar_main) {if} 0 (S.L.taster_heiz_umluft_press) 0 (S.L.onboard_e5_screenlock_forced_timer) (L.L.onboard_acpsg_temp) (C.L.onboard_acpsg_temp_steps) < {if} (L.L.onboard_acpsg_temp) 1 + (S.L.onboard_acpsg_temp) {endif} {endif} {else} (L.L.elec_busbar_main) {if} (L.L.cp_taster_heiz_Smog) ! (S.L.cp_taster_heiz_Smog) {endif} {endif} {endif} 1 (S.L.cp_taster_heiz_umluft_sw) (T.L.ev_switch_heizung_on) {end} {trigger:cp_taster_heiz_umluft_drag} (L.L.taster_heiz_umluft_press) (L.S.Timegap) + (S.L.taster_heiz_umluft_press) (L.L.onboard_e5_mode) 6 = {if} (L.L.taster_heiz_umluft_press) 2 > {if} (C.L.vehicle_euro) 5 = {if} 7 (S.L.onboard_acpsg_speed) {else} 5 (S.L.onboard_acpsg_speed) {endif} {endif} {else} (L.L.onboard_e5_mode) 7 = {if} (L.L.taster_heiz_umluft_press) 2 > {if} (C.L.vehicle_euro) 5 = {if} 8 (S.L.onboard_acpsg_temp) {else} 5 (S.L.onboard_acpsg_temp) {endif} {endif} {endif} {endif} {end} {trigger:cp_taster_heiz_umluft_off} 0 (S.L.cp_taster_heiz_umluft_sw) (T.L.ev_switch_heizung_off) {end} {trigger:cp_taster_heiz_webasto_fl} (L.L.cp_taster_standheizung_target) {if} 0 (S.L.cp_taster_standheizung_target) {else} (L.L.engine_temperature) 70 > {if} (L.L.elec_busbar_main) (L.L.elec_timer) 30 > && {if} 0 (S.L.cp_taster_standheizung_target) 9 (S.L.onboard_e5_mode) 1 (S.L.onboard_e5_screenlock_forced) 0 (S.L.onboard_e5_screenlock_forced_timer) 0 (S.L.onboard_e5_textureload) {endif} {else} 1 (S.L.cp_taster_standheizung_target) {endif} {endif} 1 (S.L.cp_taster_heiz_webasto_sw) (T.L.ev_switch_heizung_on) {end} {trigger:cp_taster_heiz_webasto_fl_off} 0 (S.L.cp_taster_heiz_webasto_sw) (T.L.ev_switch_heizung_off) {end} {trigger:cp_taster_heiz_webasto} (L.L.onboard_e5_mode) 6 = {if} (L.L.elec_busbar_main) {if} 0 (S.L.taster_heiz_umluft_press) 0 (S.L.onboard_e5_screenlock_forced_timer) (L.L.onboard_acpsg_speed) 1 > {if} (L.L.onboard_acpsg_speed) 1 - (S.L.onboard_acpsg_speed) {endif} {endif} {else} (L.L.onboard_e5_mode) 7 = {if} (L.L.elec_busbar_main) {if} 0 (S.L.taster_heiz_umluft_press) 0 (S.L.onboard_e5_screenlock_forced_timer) (L.L.onboard_acpsg_temp) 1 > {if} (L.L.onboard_acpsg_temp) 1 - (S.L.onboard_acpsg_temp) {endif} {endif} {else} (L.L.cp_taster_standheizung_target) {if} 0 (S.L.cp_taster_standheizung_target) {else} (L.L.engine_temperature) 70 > {if} (L.L.elec_busbar_main) (L.L.elec_timer) 30 > && {if} 0 (S.L.cp_taster_standheizung_target) 9 (S.L.onboard_e5_mode) 1 (S.L.onboard_e5_screenlock_forced) 0 (S.L.onboard_e5_screenlock_forced_timer) 0 (S.L.onboard_e5_textureload) {endif} {else} 1 (S.L.cp_taster_standheizung_target) {endif} {endif} {endif} {endif} 1 (S.L.cp_taster_heiz_webasto_sw) (T.L.ev_switch_heizung_on) {end} {trigger:cp_taster_heiz_webasto_drag} (L.L.taster_heiz_umluft_press) (L.S.Timegap) + (S.L.taster_heiz_umluft_press) (L.L.onboard_e5_mode) 6 = {if} (L.L.taster_heiz_umluft_press) 2 > {if} (C.L.vehicle_euro) 5 = {if} 7 (S.L.onboard_acpsg_speed) {else} 5 (S.L.onboard_acpsg_speed) {endif} {endif} {else} (L.L.onboard_e5_mode) 7 = {if} (L.L.taster_heiz_umluft_press) 2 > {if} (C.L.vehicle_euro) 5 = {if} 8 (S.L.onboard_acpsg_temp) {else} 5 (S.L.onboard_acpsg_temp) {endif} {endif} {endif} {endif} {end} {trigger:cp_taster_heiz_webasto_off} 0 (S.L.cp_taster_heiz_webasto_sw) (T.L.ev_switch_heizung_off) {end} {trigger:cp_spiegelheizung_toggle} (L.L.cp_spiegelheizung_sw) ! (S.L.cp_spiegelheizung_sw) s1 (L.L.elec_busbar_main) {if} (L.L.cp_dummy_func04_active) ! (S.L.cp_dummy_func04_active) 0 (S.L.cp_spiegel_timer) {endif} {end} {trigger:cp_heizluefter_toggle_drag} (L.L.taster_heiz_umluft_press) (L.S.Timegap) + (S.L.taster_heiz_umluft_press) 0 (S.L.onboard_e5_textureload) (L.L.taster_heiz_umluft_press) 2 > (L.L.taster_heiz_umluft_press) 2.5 < && (L.L.elec_runtime_display) 45 > && {if} 2 (S.L.heating_mode) 0 (S.L.cp_heizluefter_sw) (S.L.cp_heizluefter_sw_onboard) 0 (S.L.onboard_e5_screenlock_forced) 0 (S.L.onboard_e5_screenlock_forced_timer) (S.L.onboard_e5_textureload) 2 (S.L.onboard_e5_mode) {endif} {end} {trigger:cp_heizluefter_toggle} 1 (S.L.cp_heizluefter_sw) 1 (S.L.cp_heizluefter_sw_vis) (T.L.ev_switch_heizung_on) 0 (S.L.onboard_e5_screenlock_forced_timer) (L.L.elec_busbar_main) (L.L.elec_runtime_display) 45 > && {if} 0 (S.L.cp_taster_heiz_umluft_light) (S.L.cp_taster_heiz_webasto_light) (L.L.heating_mode) 2 = {if} 1 (S.L.heating_mode) {endif} (L.L.cp_heizluefter_sw_onboard) 2 = {if} 1 (S.L.cp_heizluefter_sw_onboard) {else} 2 (S.L.cp_heizluefter_sw_onboard) {endif} {endif} {end} {trigger:cp_heizluefter_toggle_off} 0 (S.L.taster_heiz_umluft_press) 0 (S.L.cp_heizluefter_sw_vis) (T.L.ev_switch_heizung_off) {end} ' facelift unit toggle passenger Vent {trigger:cp_heizluefter_fl_toggle_drag} (L.L.taster_heiz_umluft_press) (L.S.Timegap) + (S.L.taster_heiz_umluft_press) 0 (S.L.onboard_e5_textureload) ' (L.L.taster_heiz_umluft_press) 2 > ' (L.L.taster_heiz_umluft_press) 2.5 < && ' (L.L.elec_runtime_display) 45 > && ' {if} ' 2 (S.L.heating_mode) ' 0 (S.L.cp_heizluefter_sw) (S.L.cp_heizluefter_sw_onboard) ' 0 (S.L.onboard_e5_screenlock_forced) ' 0 (S.L.onboard_e5_screenlock_forced_timer) (S.L.onboard_e5_textureload) ' 2 (S.L.onboard_e5_mode) ' {endif} (L.L.taster_heiz_umluft_press) (L.S.Timegap) + (S.L.taster_heiz_umluft_press) (L.L.taster_heiz_umluft_press) 2 > {if} (C.L.vehicle_euro) 5 = {if} 7 (S.L.onboard_acpsg_speed) {else} 5 (S.L.onboard_acpsg_speed) {endif} {endif} {end} {trigger:cp_heizluefter_fl_toggle} 1 (S.L.cp_heizluefter_sw) 1 (S.L.cp_heizluefter_sw_vis) (T.L.ev_switch_heizung_on) 0 (S.L.onboard_e5_screenlock_forced_timer) (L.L.elec_busbar_main) (L.L.elec_runtime_display) 45 > && {if} 1 (S.L.cockpit_light_heizluefter) 0 (S.L.cp_taster_heiz_umluft_light) (L.L.heating_mode) 2 = {if} 1 (S.L.heating_mode) {endif} 1 (S.L.cp_heizluefter_sw_onboard) {endif} {end} {trigger:cp_heizluefter_fl_toggle_off} 0 (S.L.taster_heiz_umluft_press) 0 (S.L.cp_heizluefter_sw_vis) (T.L.ev_switch_heizung_off) {end} ' facelift unit toggle passenger Temperature Mode {trigger:cp_heizluefter_temp_fl_toggle} 0 (S.L.cp_heizluefter_temp_sw_timer) 1 (S.L.cp_heizluefter_temp_sw) 1 (S.L.cp_heizluefter_temp_sw_vis) (T.L.ev_switch_heizung_on) 0 (S.L.onboard_e5_screenlock_forced_timer) (L.L.elec_busbar_main) (L.L.elec_runtime_display) 45 > && {if} 0 (S.L.cp_taster_heiz_temp_umluft_light) 2 (S.L.cp_heizluefter_sw_onboard) {endif} {end} {trigger:cp_heizluefter_temp_fl_toggle_drag} (L.L.cp_heizluefter_temp_sw_timer) (L.S.Timegap) + (S.L.cp_heizluefter_temp_sw_timer) (L.L.cp_heizluefter_temp_sw_timer) 2 > {if} (C.L.vehicle_euro) 5 = {if} 8 (S.L.onboard_acpsg_temp) {else} 5 (S.L.onboard_acpsg_temp) {endif} {endif} {end} {trigger:cp_heizluefter_temp_fl_toggle_off} 0 (S.L.cp_heizluefter_temp_sw_vis) (T.L.ev_switch_heizung_off) {end} ' facelift unit toggle driver Vent Mode {trigger:cp_heizluefter_drv_fl_toggle_up} 1 (S.L.cp_heizluefter_drvspeed_sw) (T.L.ev_switch_heizung_on) 0 (S.L.onboard_e5_screenlock_forced_timer) (L.L.elec_busbar_main) (L.L.elec_runtime_display) 45 > && {if} 0 (S.L.cp_taster_heiz_drvspeed_light) 3 (S.L.cp_heizluefter_sw_onboard) (L.L.cockpit_heizregler_fanspeed) 1 < {if} (L.L.cockpit_heizregler_fanspeed) 0.1 + (S.L.cockpit_heizregler_fanspeed) {endif} {endif} {end} {trigger:cp_heizluefter_drv_fl_toggle_up_off} 0 (S.L.cp_heizluefter_drvspeed_sw) (T.L.ev_switch_heizung_off) {end} {trigger:cp_heizluefter_drv_fl_toggle_dw} -1 (S.L.cp_heizluefter_drvspeed_sw) (T.L.ev_switch_heizung_on) 0 (S.L.onboard_e5_screenlock_forced_timer) (L.L.elec_busbar_main) (L.L.elec_runtime_display) 45 > && {if} 0 (S.L.cp_taster_heiz_drvspeed_light) 3 (S.L.cp_heizluefter_sw_onboard) (L.L.cockpit_heizregler_fanspeed) 0 > {if} (L.L.cockpit_heizregler_fanspeed) 0.1 - (S.L.cockpit_heizregler_fanspeed) {endif} {endif} {end} {trigger:cp_heizluefter_drv_fl_toggle_dw_off} 0 (S.L.cp_heizluefter_drvspeed_sw) (T.L.ev_switch_heizung_off) {end} {trigger:dash_schalter_ASR_off_toggle} 1 (S.L.dash_ASR_off) (L.L.dash_ASR_off_intern) ! (S.L.dash_ASR_off_intern) (L.L.dash_ASR_off) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:dash_schalter_ASR_off_toggle_off} 0 (S.L.dash_ASR_off) (L.L.dash_ASR_off) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_taster_heiz_fanposition_drag} (L.S.mouse_x) -150 / (L.L.cockpit_heizregler_fanposition) + 0 max 1 min (S.L.cockpit_heizregler_fanposition) s0 (L.S.mouse_x) -150 / (L.L.cockpit_heizregler_fanposition_fl) + 0 max 0.92 min (S.L.cockpit_heizregler_fanposition_fl) s0 {end} {trigger:cp_taster_heiz_fanposition_off} (L.L.cockpit_heizregler_fanposition) 0.84 > {if} 0.98 (S.L.cockpit_heizregler_fanposition) 0.92 (S.L.cockpit_heizregler_fanposition_fl) {else} (L.L.cockpit_heizregler_fanposition) 0.54 > {if} 0.65 (S.L.cockpit_heizregler_fanposition) (S.L.cockpit_heizregler_fanposition_fl) {else} (L.L.cockpit_heizregler_fanposition) 0.33 > {if} 0.36 (S.L.cockpit_heizregler_fanposition) (S.L.cockpit_heizregler_fanposition_fl) {else} 0 (S.L.cockpit_heizregler_fanposition) (S.L.cockpit_heizregler_fanposition_fl) {endif} {endif} {endif} {end} {trigger:cp_taster_heiz_temperature_drag} (L.S.mouse_x) -150 / (L.L.cockpit_heizregler_temperature) + 0 max 1 min (S.L.cockpit_heizregler_temperature) s0 {end} {trigger:cp_taster_heiz_fanspeed_drag} (L.S.mouse_x) -150 / (L.L.cockpit_heizregler_fanspeed) + 0 max 1 min (S.L.cockpit_heizregler_fanspeed) s0 {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) 1200 / (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) (L.L.cp_rollo_pos) 1 / (S.L.cp_rollo_pos_arm_v) {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_rollo_fenster_drag} (L.L.cp_rollo_fenster_pos) (S.L.cp_rollo_fenster_lastpos) 1 (S.L.cp_rollo_fenster_dragged) 0 (S.L.cp_rollo_fenster_speed) (L.S.mouse_y) 500 / (L.L.cp_rollo_fenster_pos) + (S.L.cp_rollo_fenster_pos) s0 l0 0 < {if} 0 (S.L.cp_rollo_fenster_pos) {endif} l0 1 > {if} 1 (S.L.cp_rollo_fenster_pos) {endif} (L.L.cp_rollo_fenster_pos) (L.L.cp_rollo_fenster_lastpos) - abs (L.S.Timegap) / (S.L.cp_rollo_fenster_speed) {end} {trigger:cp_rollo_fenster_off} 0 (S.L.cp_rollo_fenster_dragged) (T.L.ev_rollo_fenster_end) {end} {trigger:cp_rollo_fenster_retract} (L.L.cp_rollo_fenster_bommel) 0 = (L.L.cp_rollo_fenster_pos) && {if} (T.L.ev_rollo_fenster_retract) {endif} 1 (S.L.cp_rollo_fenster_bommel) (S.L.cp_rollo_fenster_retract) {end} {trigger:cp_rollo_fenster_retract_off} 0 (S.L.cp_rollo_fenster_bommel) (S.L.cp_rollo_fenster_retract) (S.L.cp_rollo_fenster_speed) {end} {trigger:cp_travel_toggle} (L.L.cp_drv_travel_sw) ! (S.L.cp_drv_travel_sw) (L.L.cp_drv_travel_sw) {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {trigger:cp_fahrerfenster_opn} 1 (S.L.cp_driver_win_sw) (T.L.ev_switch_on) (L.L.elec_busbar_main) {if} (T.L.ev_fahrerfenster_opn_start) {endif} {end} {trigger:cp_fahrerfenster_opn_drag} (L.L.cp_fahrerfenster_pos) (S.L.cp_fahrerfenster_lastpos) (L.L.elec_busbar_main) {if} (L.L.cp_fahrerfenster_pos) (L.S.Timegap) 0.35 * + (S.L.cp_fahrerfenster_pos) s0 l0 0 < {if} 0 (S.L.cp_fahrerfenster_pos) (L.L.cp_fahrerfenster_endanschlag) ! (L.L.elec_busbar_main) && {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) ! (L.L.elec_busbar_main) && {if} (T.L.ev_fahrerfenster_opn) {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} {endif} (L.L.cp_fahrerfenster_pos) (L.L.cp_fahrerfenster_lastpos) - abs (L.S.Timegap) / (S.L.cp_fahrerfenster_speed) {end} {trigger:cp_fahrerfenster_cls} -1 (S.L.cp_driver_win_sw) (T.L.ev_switch_on) (L.L.elec_busbar_main) {if} (T.L.ev_fahrerfenster_cls_start) {endif} {end} {trigger:cp_fahrerfenster_cls_drag} (L.L.cp_fahrerfenster_pos) (S.L.cp_fahrerfenster_lastpos) (L.L.elec_busbar_main) {if} (L.L.cp_fahrerfenster_pos) (L.S.Timegap) 0.16 * - (S.L.cp_fahrerfenster_pos) s0 l0 0 < {if} 0 (S.L.cp_fahrerfenster_pos) (L.L.cp_fahrerfenster_endanschlag) ! (L.L.elec_busbar_main) && {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) ! (L.L.elec_busbar_main) && {if} (T.L.ev_fahrerfenster_opn) {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} {endif} (L.L.cp_fahrerfenster_pos) (L.L.cp_fahrerfenster_lastpos) - abs (L.S.Timegap) / (S.L.cp_fahrerfenster_speed) {end} {trigger:cp_fahrerfenster_opn_off} 0 (S.L.cp_fahrerfenster_speed) 0 (S.L.cp_driver_win_sw) (T.L.ev_switch_off) {end} {trigger:cp_fahrerfenster_cls_off} 0 (S.L.cp_fahrerfenster_speed) 0 (S.L.cp_driver_win_sw) (T.L.ev_switch_off) {end} {trigger:cp_schluessel_mov} (L.L.cp_schluessel_rot_mode) 2 = {if} (L.L.lights_nebelschluss) s1 l1 2 = {if} 0 (S.L.lights_nebel) (S.L.lights_nebelschluss) (T.L.ev_lightswitch_dn) {else} l1 0 = {if} 1 (S.L.lights_nebel) (S.L.lights_nebelschluss) (T.L.ev_lightswitch_up) {else} 2 (S.L.lights_nebel) (S.L.lights_nebelschluss) (T.L.ev_lightswitch_up) {endif} {endif} {endif} {end} {trigger:cp_schluessel_mov_drag} ' Fallunterscheidung: Schlüssel in x- oder y-Richtung? (L.S.mouse_y) abs (L.S.mouse_x) abs >= {if} ' Sonst Rotation (Lichtschalter) (L.S.mouse_x) -20 / (L.L.cp_schluessel_rot) + 0 max 1 min (S.L.cp_schluessel_rot) s1 ' Stufen: ' 0: Licht aus ' 1: Standlicht ' 2: Abblendlicht l1 0.2 < {if} 0 (S.L.cp_schluessel_rot_mode) 0 (S.L.lights_nebelschluss) 0 (S.L.lights_stand) (S.L.lights_abbl) (S.L.lights_fern) (S.L.lights_sw_fern) (S.L.lights_nebel_rear) (S.L.lights_nebel_front) (S.L.lights_nebel_front_r) (S.L.lights_nebel_front_l) -1 (S.L.Spot_Select) {else} l1 0.8 < {if} 1 (S.L.cp_schluessel_rot_mode) 0 (S.L.lights_nebelschluss) {else} 2 (S.L.cp_schluessel_rot_mode) {endif} {endif} {endif} {end} {trigger:cp_schluessel_mov_off} ' Einrasten auf den festen Positionen: (L.L.cp_schluessel_rot_mode) 2 / (S.L.cp_schluessel_rot) (L.L.cp_schluessel_rot_mode) 2 < {if} 0 (S.L.lights_nebel) {endif} 0 (S.L.onboard_e5_textureload) {end} {trigger:cp_nebelswitch} (L.L.cp_schluessel_rot) 0.8 > {if} (L.L.lights_nebelschluss) 0 = {if} 1 (S.L.lights_nebelschluss) {endif} (L.L.lights_nebelschluss) 1 = {if} 2 (S.L.lights_nebelschluss) {endif} (L.L.lights_nebelschluss) 2 = {if} 0 (S.L.lights_nebelschluss) {endif} {endif} {end} {trigger:cp_lenkrad_toggle} (L.L.cp_lenkrad_visible) ! (S.L.cp_lenkrad_visible) 0 (S.L.schedule_click) {end} {trigger:cp_lenkrad_unlockposition} (L.L.cp_lenkrad_pos_lock) ! (S.L.cp_lenkrad_pos_lock) (L.L.cp_lenkrad_pos_lock) {if} (T.L.ev_lankradcol_on) {else} (T.L.ev_lankradcol_off) {endif} (T.L.ev_lankradcol_sw) {end} {trigger:schedule_toggle} (L.L.cp_lenkrad_visible) 1 = {if} (L.L.schedule_click) ! (S.L.schedule_click) {endif} {end} {trigger:kw_batterietrennschalter} 1 (S.L.cp_taster_batterietrennschalter) {end} {trigger:kw_batterietrennschalter_off} 0 (S.L.onboard_e5_textureload) 0 (S.L.cp_taster_batterietrennschalter) {end} ' Retarder Trigger {trigger:dash_retarder_lever_drag} (C.L.dashboard_antrieb) 2 < {if} (L.L.dash_retarder_lever_timer) (L.S.Timegap) + (S.L.dash_retarder_lever_timer) (L.L.dash_retarder_sw) (S.L.dash_retarder_sw_last) (L.S.mouse_y) 16 / -1 max 1 min s1 (L.L.dash_retarder_lever_timer) 0.1 > {if} l1 0.20 > (L.L.dash_retarder_sw) 5 < && {if} (L.L.dash_retarder_sw) 1 + (S.L.dash_retarder_sw) (L.L.dash_retarder_sw_last) (L.L.dash_retarder_sw) = ! {if} (T.L.ev_retarder_lever_down) {endif} {endif} l1 -0.35 < (L.L.dash_retarder_sw) 0 > && {if} (L.L.dash_retarder_sw) 1 - (S.L.dash_retarder_sw) (L.L.dash_retarder_sw_last) (L.L.dash_retarder_sw) = ! {if} (T.L.ev_retarder_lever_up) {endif} {endif} 0 (S.L.dash_retarder_lever_timer) {endif} {else} (L.L.dash_retarder_lever_timer) (L.S.Timegap) + (S.L.dash_retarder_lever_timer) (L.L.dash_retarder_sw) (S.L.dash_retarder_sw_last) (L.S.mouse_y) 16 / -1 max 1 min s1 (L.L.dash_retarder_lever_timer) 0.1 > {if} l1 0.20 > (L.L.dash_retarder_sw) 3 < && {if} (L.L.dash_retarder_sw) 1 + (S.L.dash_retarder_sw) (L.L.dash_retarder_sw_last) (L.L.dash_retarder_sw) = ! {if} (T.L.ev_retarder_lever_down) {endif} {endif} l1 -0.35 < (L.L.dash_retarder_sw) 0 > && {if} (L.L.dash_retarder_sw) 1 - (S.L.dash_retarder_sw) (L.L.dash_retarder_sw_last) (L.L.dash_retarder_sw) = ! {if} (T.L.ev_retarder_lever_up) {endif} {endif} 0 (S.L.dash_retarder_lever_timer) {endif} {endif} {end} {trigger:retarder_abschalten} (C.L.dashboard_antrieb) 2 = {if} (L.L.Retarderhebel) 1 = {if} (T.L.ev_retarder_lever_up) {endif} (L.L.Retarderhebel) 2 = {if} (T.L.ev_retarder_lever_up) {endif} (L.L.Retarderhebel) 3 = {if} (T.L.ev_retarder_lever_up) {endif} (L.L.Retarderhebel) 0 > {if} (L.L.Retarderhebel) 1 - 0 max (S.L.Retarderhebel) {endif} (L.L.antrieb_retarderstufe) 1 - 1 max (S.L.antrieb_retarderstufe) (L.L.retarderhebel) (S.L.dash_retarder_sw) {else} (L.L.dash_retarder_sw) 0 > {if} (L.L.dash_retarder_sw) (S.L.dash_retarder_sw_last) (L.L.dash_retarder_sw) 1 - (S.L.dash_retarder_sw) (L.L.dash_retarder_sw_last) (L.L.dash_retarder_sw) = ! {if} (T.L.ev_retarder_lever_up) {endif} {endif} {endif} {end} {trigger:retarder_aufschalten} (C.L.dashboard_antrieb) 2 = {if} (L.L.retarderhebel) 0 = {if} (T.L.ev_retarder_lever_down) {endif} (L.L.Retarderhebel) 1 = {if} (T.L.ev_retarder_lever_down) {endif} (L.L.Retarderhebel) 2 = {if} (T.L.ev_retarder_lever_down) {endif} (L.L.Retarderhebel) 1 + 3 min (S.L.Retarderhebel) (L.L.antrieb_retarderstufe) 1 + 3 min (S.L.antrieb_retarderstufe) 1 (S.L.cockpit_retarderhebel_stufe) (L.L.retarderhebel) (S.L.dash_retarder_sw) {else} 0 (S.L.dash_retarder_lever_timer) (L.L.dash_retarder_sw) 5 < {if} (L.L.dash_retarder_sw) (S.L.dash_retarder_sw_last) (L.L.dash_retarder_sw) 1 + (S.L.dash_retarder_sw) (L.L.dash_retarder_sw_last) (L.L.dash_retarder_sw) = ! {if} (T.L.ev_retarder_lever_down) {endif} {endif} {endif} {end} {trigger:cp_klappfenster_1} (L.L.cp_klappfenster_1) ! (S.L.cp_klappfenster_1) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_2} (L.L.cp_klappfenster_2) ! (S.L.cp_klappfenster_2) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_3} (L.L.cp_klappfenster_3) ! (S.L.cp_klappfenster_3) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_4} (L.L.cp_klappfenster_4) ! (S.L.cp_klappfenster_4) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_5} (L.L.cp_klappfenster_5) ! (S.L.cp_klappfenster_5) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_6} (L.L.cp_klappfenster_6) ! (S.L.cp_klappfenster_6) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_7} (L.L.cp_klappfenster_7) ! (S.L.cp_klappfenster_7) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_8} (L.L.cp_klappfenster_8) ! (S.L.cp_klappfenster_8) s1 (M.L.klappfenstersound) {end} ' # {trigger:cp_klappfenster_9} (L.L.cp_klappfenster_9) ! (S.L.cp_klappfenster_9) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_10} (L.L.cp_klappfenster_10) ! (S.L.cp_klappfenster_10) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_11} (L.L.cp_klappfenster_11) ! (S.L.cp_klappfenster_11) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_12} (L.L.cp_klappfenster_12) ! (S.L.cp_klappfenster_12) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_13} (L.L.cp_klappfenster_13) ! (S.L.cp_klappfenster_13) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_14} (L.L.cp_klappfenster_14) ! (S.L.cp_klappfenster_14) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_15} (L.L.cp_klappfenster_15) ! (S.L.cp_klappfenster_15) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_16} (L.L.cp_klappfenster_16) ! (S.L.cp_klappfenster_16) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_17} (L.L.cp_klappfenster_17) ! (S.L.cp_klappfenster_17) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_18} (L.L.cp_klappfenster_18) ! (S.L.cp_klappfenster_18) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_19} (L.L.cp_klappfenster_19) ! (S.L.cp_klappfenster_19) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_20} (L.L.cp_klappfenster_20) ! (S.L.cp_klappfenster_20) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_21} (L.L.cp_klappfenster_21) ! (S.L.cp_klappfenster_21) s1 (M.L.klappfenstersound) {end} {trigger:cp_klappfenster_22} (L.L.cp_klappfenster_22) ! (S.L.cp_klappfenster_22) s1 (M.L.klappfenstersound) {end} {trigger:cp_dachluke_1} (L.L.cp_dachluke_1) 1 + (S.L.cp_dachluke_1) 3 > {if} 0 (S.L.cp_dachluke_1) {endif} (L.L.cp_dachluke_1) s0 (M.L.dachluke_pos_rot) l1 (S.L.cp_dachluke_1_pos) l2 (S.L.cp_dachluke_1_rot) l3 (S.L.cp_dachluke_1_S1) l4 (S.L.cp_dachluke_1_S2) l5 (S.L.cp_dachluke_1_handles) l6 (S.L.cp_dachluke_1_bone1) l7 (S.L.cp_dachluke_1_bone2) {end} {trigger:cp_dachluke_2} (L.L.cp_dachluke_2) 1 + (S.L.cp_dachluke_2) 3 > {if} 0 (S.L.cp_dachluke_2) {endif} (L.L.cp_dachluke_2) s0 (M.L.dachluke_pos_rot) l1 (S.L.cp_dachluke_2_pos) l2 (S.L.cp_dachluke_2_rot) l3 (S.L.cp_dachluke_2_S1) l4 (S.L.cp_dachluke_2_S2) l5 (S.L.cp_dachluke_2_handles) l6 (S.L.cp_dachluke_2_bone1) l7 (S.L.cp_dachluke_2_bone2) {end} {trigger:cp_dachluke_2_old} (L.L.cp_dachluke_2_old) 1 + (S.L.cp_dachluke_2_old) 3 > {if} 0 (S.L.cp_dachluke_2_old) {endif} (L.L.cp_dachluke_2_old) s0 (M.L.dachluke_pos_rot_old) l1 (S.L.cp_dachluke_2_pos_old) l2 (S.L.cp_dachluke_2_rot_old) l3 (S.L.cp_dachluke_2_S1_old) l4 (S.L.cp_dachluke_2_S2_old) l5 (S.L.cp_dachluke_2_handles_old) l6 (S.L.cp_dachluke_2_bone1_old) l7 (S.L.cp_dachluke_2_bone2_old) {end} {trigger:KR_play} (L.L.elec_busbar_main) {if} (L.L.Snd_Radio) ! (S.L.Snd_Radio) {endif} {end} {trigger:KR_stop} 0 (S.L.Snd_Radio) {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} 0 (S.L.cp_wischer_intervall_sw) 0 (S.L.cockpit_wischer_drehschalter_mode) (S.L.cp_wischer_schnell_sw) (S.L.cp_wischer_einaus_sw) {else} l0 0.5 < {if} 1 (S.L.cp_wischer_intervall_sw) 0 (S.L.cp_wischer_einaus_sw) (S.L.cp_wischer_schnell_sw) 1 (S.L.cockpit_wischer_drehschalter_mode) {else} l0 0.83 < {if} 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) {else} 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) {endif} {endif} {endif} (L.S.mouse_x) -100 / (L.L.cp_wischer_wascher_sw) + 0 max 1 min (S.L.cp_wischer_wascher_sw) s1 {end} {trigger:cp_wiper_turnswitch_off} ' Einrasten auf den festen Positionen: (L.L.cockpit_wischer_drehschalter_mode) 3 / (S.L.cockpit_wischer_drehschalter) 0 (S.L.cp_wischer_wascher_sw) {end} {trigger:cp_microphone} 1 (S.L.cp_microphone_sw) {end} {trigger:cp_microphone_off} 0 (S.L.cp_microphone_sw) {end} {trigger:zahltisch_rot_drag} (L.S.mouse_x) -150 / (L.L.zahltisch_pos_rot) + 0 max 1 min (S.L.zahltisch_pos_rot) s0 {end} {trigger:cp_lenkrad_pos_drag} (L.L.cp_lenkrad_pos_lock) (L.L.elec_busbar_main) && {if} (L.S.mouse_y) abs (L.S.mouse_x) abs >= {if} (L.S.mouse_y) 400 / (L.L.cp_lenkrad_pos_trans) + -0.1 max 0.15 min (S.L.cp_lenkrad_pos_trans) {else} (L.S.mouse_x) -650 / (L.L.cp_lenkrad_pos_rot) + -0.006 max 0.09 min (S.L.cp_lenkrad_pos_rot) {endif} {endif} {end} {trigger:cp_spiegel_mode_trg} (L.L.spiegel_mode) ! (S.L.spiegel_mode) {end} {trigger:cp_spiegel_posL} 1 (S.L.spiegel_pos_sw) {end} {trigger:cp_spiegel_posL_off} 0 (S.L.spiegel_pos_sw) {end} {trigger:cp_spiegel_posR} -1 (S.L.spiegel_pos_sw) {end} {trigger:cp_spiegel_posR_off} 0 (S.L.spiegel_pos_sw) {end} ' Faremaster from Urbino II DLC (Chrizzly92) {trigger:ticketprinter_getticket} -1 (S.L.Faremaster_Smenu_select) 99 (S.L.Faremaster_Mode) "0" (S.$.Faremaster_Preis_Euro) "00" (S.$.Faremaster_Preis_Cent) "zu zahlen: " (L.$.Faremaster_Preis_Euro) $+ "," $+ (L.$.Faremaster_Preis_Cent) $+ "€@" $+ (S.$.Faremaster_Ticket) -1 (S.L.ticketprinter_ticket_selection) (S.L.Faremaster_Ticket) (S.L.GivenTicket) 0 (S.L.ticketprinter_ticket_pos) (S.L.faremaster_ticket_pos) (T.L.ev_ticketsale_giveticket) {endif} {end} '---------------------- ' Init '---------------------- {macro:dashboard_init} 1 (S.L.CTI_RBL) 0 (S.L.cockpit_hupe_volume) 1 (S.L.cp_lenkrad_visible) 0 (S.L.bremse_kneeling) (S.L.bremse_kneeling_snd_rep) (C.L.cockpit_zentralschmierung_dist) random (S.L.cp_zentralschmierung_nextkm) 0.09 (S.L.cp_lenkrad_pos_rot) -0.099 (S.L.cp_lenkrad_pos_trans) 1 (S.L.key_mode) (L.L.kmcounter_km) (S.L.dash_kmcount_trip) 0.5 (S.L.onboard_e5_blinker_vol) {end} '---------------------- ' Frame '---------------------- {macro:dashboard_frame} ' zf keyboard (L.L.elec_busbar_main) {if} (L.L.cockpit_gangD) (L.L.antrieb_getr_gangvorwahl) 6 = && {if} 1 (S.L.automatic_D_light) {else} (L.L.cockpit_gangD) {if} (L.L.automatic_D_light_timer) (L.S.Timegap) + (S.L.automatic_D_light_timer) 1 > {if} 0 (S.L.automatic_D_light_timer) (L.L.automatic_D_light) ! (S.L.automatic_D_light) {endif} {else} 0 (S.L.automatic_D_light) {endif} {endif} (L.L.cockpit_gangR) (L.L.antrieb_getr_gangvorwahl) 0 = && {if} 1 (S.L.automatic_R_light) {else} (L.L.cockpit_gangR) {if} (L.L.automatic_R_light_timer) (L.S.Timegap) + (S.L.automatic_R_light_timer) 1 > {if} 0 (S.L.automatic_R_light_timer) (L.L.automatic_R_light) ! (S.L.automatic_R_light) {endif} {else} 0 (S.L.automatic_R_light) {endif} {endif} (L.L.antrieb_getr_gangvorwahl) 1 = {if} 1 (S.L.automatic_N_light) {else} 0 (S.L.automatic_N_light) {endif} {else} 0 (S.L.automatic_D_light) (S.L.automatic_N_light) (S.L.automatic_R_light) {endif} (L.L.lights_fahrerlicht) {if} (L.L.Envir_Brightness) (F.L.Envir_Brightness_inverted) 0.4 * (S.L.Envir_Brightness_inverted) {else} (L.L.Envir_Brightness) (F.L.Envir_Brightness_inverted) (S.L.Envir_Brightness_inverted) {endif} ' 1 (S.L.vis_wheels) ' 1 (S.L.vis_interior_type) (S.L.vis_interior_roof_type) (S.L.vis_pattern_panel) (S.L.vis_matrix_rear) (S.L.vis_matrix_side) (S.L.vis_mirrors) (S.L.vis_floor_antislip) (S.L.vis_individual_pack) ' 0 (S.L.vis_curtains) ' Rollo arm (L.L.cp_rollo_pos) (F.L.cp_rollo_arm_leftside) (S.L.cp_rollo_pos_arm) (L.L.cp_rollo_fenster_pos) (F.L.cp_rollo_arm) (S.L.cp_rollo_fenster_pos_arm) ' Hatches frame (M.L.electric_hatches) 'Übertragen 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.elec_timer) (L.S.Timegap) + (S.L.elec_timer) ' roof type (L.L.vis_interior_roof_type) {if} (L.L.vis_individual_pack) (S.L.vis_individual_pack_sv) {else} 0 (S.L.vis_individual_pack_sv) {endif} ' engine kw (L.L.vis_engine_kw) 0 > {if} 1 (S.L.engine_power_sv) {else} 0 (S.L.engine_power_sv) {endif} (L.L.vis_interior_type) {if} 1 (S.L.vis_interior_type_cb) ' wall pattern (L.L.vis_pattern) {if} 1 1 - (S.L.vis_pattern_cb) {else} 0 (S.L.vis_pattern_cb) {endif} ' panels pattern (L.L.vis_pattern_panel) {if} 1 (S.L.vis_pattern_panel_cb) 1 (S.L.vis_pattern) {else} 0 (S.L.vis_pattern_panel_cb) 0 (S.L.vis_pattern) {endif} {else} 0 (S.L.vis_interior_type_cb) (L.L.vis_pattern) {if} 3 1 - (S.L.vis_pattern_cb) {else} 2 (S.L.vis_pattern_cb) {endif} (L.L.vis_pattern_panel) {if} 3 (S.L.vis_pattern_panel_cb) 1 (S.L.vis_pattern) {else} 2 (S.L.vis_pattern_panel_cb) 0 (S.L.vis_pattern) {endif} {endif} (M.L.tacho_frame) (M.L.dtco_frame) (M.L.uhr_frame) (M.L.cockpit_failure_frame) (M.L.drehzahlmesser_frame) (M.L.hupe_frame) (M.L.blinkerhebel_frame) (M.L.wischerhebel_frame) (M.L.wischer_drehschalter_frame) (M.L.tankuhr_frame) (M.L.spiegel_frame) (M.L.cockpitlights_frame) (M.L.schluessel_frame) (M.L.engine_thermometer_frame) (M.L.rollo_frame) (M.L.fahrertuer_frame) ' KR (L.L.elec_busbar_main) (L.L.Snd_Radio) && (S.L.lights_tuner) (L.L.elec_busbar_main) ! {if} 0 (S.L.Snd_Radio) 0 (S.L.elec_runtime) (S.L.elec_runtime_display) 0 (S.L.onboard_e5_mode) (S.L.onboard_init) "" (S.$.dash_kmcounttrip) (S.$.dash_kmcount) (S.$.dash_time) {else} (L.L.elec_runtime) (L.S.Timegap) + (S.L.elec_runtime) {endif} ' Spiegel (L.L.cp_spiegel_timer) (L.S.Timegap) + (S.L.cp_spiegel_timer) (L.L.cp_spiegel_timer) 300 > {if} 0 (S.L.cp_dummy_func04_active) {endif} (L.L.elec_busbar_main) ! {if} 0 (S.L.cp_dummy_func04_active) {endif} (C.L.dashboard_antrieb) (S.L.dashboard_antrieb) {end} {macro:electric_hatches} ' position transition ' front '(L.L.cp_dachluke_1_rot_target) (L.L.cp_dachluke_1_rot) > '{if} ' (L.L.cp_dachluke_1_rot) (F.L.cp_dachluke_1_rot_pos) s6 ' (L.L.cp_dachluke_1_rot) l6 + (S.L.cp_dachluke_1_rot) '{else} ' (L.L.cp_dachluke_1_rot) (F.L.cp_dachluke_1_rot_pos_dn) s6 ' (L.L.cp_dachluke_1_rot) l6 - (S.L.cp_dachluke_1_rot) '{endif} '(L.L.cp_dachluke_1_pos_target) (L.L.cp_dachluke_1_pos) 0.0001 + > '{if} ' (L.L.cp_dachluke_1_pos) 0.00135 + (S.L.cp_dachluke_1_pos) '{else} ' (L.L.cp_dachluke_1_pos) 0.00115 - (S.L.cp_dachluke_1_pos) '{endif} '(L.L.cp_dachluke_1_bone1_target) (L.L.cp_dachluke_1_bone1) 0.0001 + > '{if} ' (L.L.cp_dachluke_1_bone1) 0.00135 + (S.L.cp_dachluke_1_bone1) '{else} ' (L.L.cp_dachluke_1_bone1) 0.00115 - (S.L.cp_dachluke_1_bone1) '{endif} '(L.L.cp_dachluke_1_bone2_target) (L.L.cp_dachluke_1_bone2) 0.0001 + > '{if} ' (L.L.cp_dachluke_1_bone2) 0.00135 + (S.L.cp_dachluke_1_bone2) '{else} ' (L.L.cp_dachluke_1_bone2) 0.00115 - (S.L.cp_dachluke_1_bone2) '{endif} ' rear hatch '(L.L.cp_dachluke_2_rot_target) (L.L.cp_dachluke_2_rot) > '{if} ' (L.L.cp_dachluke_2_rot) (F.L.cp_dachluke_1_rot_pos) s6 ' (L.L.cp_dachluke_2_rot) l6 + (S.L.cp_dachluke_2_rot) '{else} ' (L.L.cp_dachluke_2_rot) (F.L.cp_dachluke_1_rot_pos_dn) s6 ' (L.L.cp_dachluke_2_rot) l6 - (S.L.cp_dachluke_2_rot) '{endif} '(L.L.cp_dachluke_2_pos_target) (L.L.cp_dachluke_2_pos) 0.0001 + > '{if} ' (L.L.cp_dachluke_2_pos) 0.00135 + (S.L.cp_dachluke_2_pos) '{else} ' (L.L.cp_dachluke_2_pos) 0.00115 - (S.L.cp_dachluke_2_pos) '{endif} '(L.L.cp_dachluke_2_bone1_target) (L.L.cp_dachluke_2_bone1) 0.0001 + > '{if} ' (L.L.cp_dachluke_2_bone1) 0.00135 + (S.L.cp_dachluke_2_bone1) '{else} ' (L.L.cp_dachluke_2_bone1) 0.00115 - (S.L.cp_dachluke_2_bone1) '{endif} '(L.L.cp_dachluke_2_bone2_target) (L.L.cp_dachluke_2_bone2) 0.0001 + > '{if} ' (L.L.cp_dachluke_2_bone2) 0.00135 + (S.L.cp_dachluke_2_bone2) '{else} ' (L.L.cp_dachluke_2_bone2) 0.00115 - (S.L.cp_dachluke_2_bone2) '{endif} (L.L.cp_dachluke_1_rot_target) (S.L.cp_dachluke_1_rot) (L.L.cp_dachluke_1_pos_target) (S.L.cp_dachluke_1_pos) (L.L.cp_dachluke_1_bone1_target) (S.L.cp_dachluke_1_bone1) (L.L.cp_dachluke_1_bone2_target) (S.L.cp_dachluke_1_bone2) ' rear hatch (L.L.cp_dachluke_2_rot_target) (S.L.cp_dachluke_2_rot) (L.L.cp_dachluke_2_pos_target) (S.L.cp_dachluke_2_pos) (L.L.cp_dachluke_2_bone1_target) (S.L.cp_dachluke_2_bone1) (L.L.cp_dachluke_2_bone2_target) (S.L.cp_dachluke_2_bone2) ' end position transition (L.L.cp_hatch_fr_front_mode) (L.L.cp_hatch_fr_back_mode) || (L.L.elec_busbar_main) && (S.L.cp_hatch_fr_status) (L.L.cp_hatch_rr_front_mode) (L.L.cp_hatch_rr_back_mode) || (L.L.elec_busbar_main) && (S.L.cp_hatch_rr_status) ' front ' l1 pos l2 rot (L.L.cp_hatch_fr_front_mode) (L.L.cp_hatch_fr_back_mode) && {if} 0.92 (S.L.cp_dachluke_1_pos_target) 0 (S.L.cp_dachluke_1_rot_target) {else} (L.L.cp_hatch_fr_front_mode) {if} 0.65 (S.L.cp_dachluke_1_pos_target) 0.8 (S.L.cp_dachluke_1_rot_target) {else} (L.L.cp_hatch_fr_back_mode) {if} 0.65 (S.L.cp_dachluke_1_pos_target) -0.8 (S.L.cp_dachluke_1_rot_target) {else} 0 (S.L.cp_dachluke_1_pos_target) 0 (S.L.cp_dachluke_1_rot_target) {endif} {endif} {endif} ' non facelift front hatch (L.L.cp_hatch_fr_front_mode) (L.L.cp_hatch_fr_back_mode) && {if} 2 (S.L.cp_dachluke_1_old) {else} (L.L.cp_hatch_fr_front_mode) {if} 1 (S.L.cp_dachluke_1_old) {else} (L.L.cp_hatch_fr_back_mode) {if} 3 (S.L.cp_dachluke_1_old) {else} 0 (S.L.cp_dachluke_1_old) {endif} {endif} {endif} ' bones (L.L.cp_hatch_fr_front_mode) (L.L.cp_hatch_fr_back_mode) && {if} ' l6 front l7 back l2 rot 1 (S.L.cp_dachluke_1_bone1_target) 1 (S.L.cp_dachluke_1_bone2_target) {else} (L.L.cp_hatch_fr_front_mode) {if} 1 (S.L.cp_dachluke_1_bone1_target) 0 (S.L.cp_dachluke_1_bone2_target) {else} (L.L.cp_hatch_fr_back_mode) {if} 0 (S.L.cp_dachluke_1_bone1_target) 1 (S.L.cp_dachluke_1_bone2_target) {else} 0 (S.L.cp_dachluke_1_bone1_target) (S.L.cp_dachluke_1_bone2_target) {endif} {endif} {endif} ' ------- rear ------- ' front ' l1 pos l2 rot (L.L.cp_hatch_rr_front_mode) (L.L.cp_hatch_rr_back_mode) && {if} 0.92 (S.L.cp_dachluke_2_pos_target) 0 (S.L.cp_dachluke_2_rot_target) {else} (L.L.cp_hatch_rr_front_mode) {if} 0.65 (S.L.cp_dachluke_2_pos_target) 0.8 (S.L.cp_dachluke_2_rot_target) {else} (L.L.cp_hatch_rr_back_mode) {if} 0.65 (S.L.cp_dachluke_2_pos_target) -0.8 (S.L.cp_dachluke_2_rot_target) {else} 0 (S.L.cp_dachluke_2_pos_target) 0 (S.L.cp_dachluke_2_rot_target) {endif} {endif} {endif} ' bones (L.L.cp_hatch_rr_front_mode) (L.L.cp_hatch_rr_back_mode) && {if} ' l6 front l7 back l2 rot 1 (S.L.cp_dachluke_2_bone1_target) 1 (S.L.cp_dachluke_2_bone2_target) {else} (L.L.cp_hatch_rr_front_mode) {if} 1 (S.L.cp_dachluke_2_bone1_target) 0 (S.L.cp_dachluke_2_bone2_target) {else} (L.L.cp_hatch_rr_back_mode) {if} 0 (S.L.cp_dachluke_2_bone1_target) 1 (S.L.cp_dachluke_2_bone2_target) {else} 0 (S.L.cp_dachluke_2_bone1_target) (S.L.cp_dachluke_2_bone2_target) {endif} {endif} {endif} {end} {macro:schluessel_frame} (L.L.engine_n) 500 > {if} (L.L.engine_start_timer) (L.S.Timegap) + (S.L.engine_start_timer) {endif} (C.L.vehicle_euro) 5 = {if} (L.L.key_mode) 1 > (L.L.elec_timer) 2 > && (L.L.elec_on) 0 = && {if} 1 (S.L.elec_busbar_main_sw) 1 (S.L.elec_on) (T.L.ev_elec_on) {endif} (L.L.key_mode) 2 < (L.L.elec_timer) 2 > && (L.L.elec_on) 1 = && {if} 0 (S.L.elec_busbar_main_sw) 0 (S.L.elec_on) (T.L.ev_elec_off) 1 (S.L.elec_on_engine) {endif} {else} (L.L.key_mode) 1 > (L.L.elec_timer) 0.75 > && (L.L.elec_on) 0 = && {if} 1 (S.L.elec_busbar_main_sw) 1 (S.L.elec_on) (T.L.ev_elec_on) {endif} (L.L.key_mode) 2 < (L.L.elec_timer) 0.75 > && (L.L.elec_on) 1 = && {if} 0 (S.L.elec_busbar_main_sw) 0 (S.L.elec_on) (T.L.ev_elec_off) 1 (S.L.elec_on_engine) {endif} {endif} (L.L.cp_schluessel_rot_lastmode) (L.L.cp_schluessel_rot_mode) = ! {if} (L.L.cp_schluessel_rot_mode) 0 = {if} (T.L.ev_lightswitch_swreset) {endif} (L.L.cp_schluessel_rot_mode) 1 = {if} (T.L.ev_lightswitch_sw1) {endif} (L.L.cp_schluessel_rot_mode) 2 = {if} (T.L.ev_lightswitch_sw2) {endif} {endif} (L.L.cp_schluessel_rot_mode) (S.L.cp_schluessel_rot_lastmode) {end} {macro:tacho_frame} (L.L.elec_runtime) 1 < {if} 3 (S.L.cockpit_tachowinkel) {else} (L.L.Velocity) (F.L.cockpit_tacholinie) (L.L.elec_busbar_main) * (S.L.cockpit_tachowinkel) {endif} {end} {macro:dtco_frame} (L.L.elec_busbar_main) {if} (L.L.dash_dtco_time_timer) (L.S.Timegap) + (S.L.dash_dtco_time_timer) (L.L.dash_dtco_time_timer) 2 > {if} 0 (S.L.dash_dtco_time_timer) {endif} (L.L.dash_dtco_time_timer) 1 > {if} ' Time (L.S.Time) 3600 / s0 trunc s1 "02" $IntToStrEnh " x " $+ ' Minute l0 l1 - 60 * trunc "02" $IntToStrEnh $+ (S.$.dash_dtco_time) {else} ' Time (L.S.Time) 3600 / s0 trunc s1 "02" $IntToStrEnh " : " $+ ' Minute l0 l1 - 60 * trunc "02" $IntToStrEnh $+ (S.$.dash_dtco_time) {endif} ' Velocity (L.L.Velocity) s0 trunc " 3" $IntToStrEnh "km/h" $+ l0 abs l0 abs trunc - 10 * trunc " 0" $IntToStrEnh $+ (S.$.dash_dtco_kmh) ' Odometer (L.L.kmcounter_km) (L.L.kmcounter_m) 1000 / + (S.L.km_counter_km) (L.L.km_counter_km) 10 * trunc 10 / (S.L.km_counter_km) (L.L.kmcounter_m) "04" $IntToStrEnh 3 $SetLengthR (S.$.km_counter_m) (L.$.km_counter_m) 1 $SetLengthL $StrToFloat trunc (S.L.km_counter_m) (L.L.km_counter_km) trunc $IntToStr "." $+ (L.$.km_counter_m) 1 $SetLengthL $+ "km" $+ (S.$.dash_dtco_km) (S.$.dash_dtco_km) ' (L.L.kmcounter_km) s0 trunc $IntToStr "." $+ ' l0 abs l0 abs trunc - 10 * trunc " 1" $IntToStrEnh $+ "km" $+ (S.$.dash_dtco_km) {endif} ' Digital odometer (L.L.elec_busbar_main) {if} (L.S.Time) 3600 / s0 trunc s1 "02" $IntToStrEnh ":" $+ l0 l1 - 60 * trunc "02" $IntToStrEnh $+ (S.$.dash_time) (L.L.onboard_trip_reset_mode) 0 = {if} (L.L.kmcounter_km) (L.L.dash_kmcount_trip) - $IntToStr (S.$.dash_kmcounttrip) {else} (L.L.dash_dtco_time_timer) 1 > {if} (L.S.Time) 3600 / s0 trunc s1 "02" $IntToStrEnh ":" $+ l0 l1 - 60 * trunc "02" $IntToStrEnh $+ (S.$.dash_kmcounttrip) {else} (L.S.Time) 3600 / s0 trunc s1 "02" $IntToStrEnh ":" $+ l0 l1 - 60 * trunc "02" $IntToStrEnh $+ (S.$.dash_kmcounttrip) {endif} {endif} (L.L.kmcounter_km) (L.L.kmcounter_m) 1000 / + (S.L.km_counter_km) (L.L.km_counter_km) 10 * trunc 10 / (S.L.km_counter_km) (L.L.kmcounter_m) "04" $IntToStrEnh 3 $SetLengthR (S.$.km_counter_m) (L.$.km_counter_m) 1 $SetLengthL $StrToFloat trunc (S.L.km_counter_m) (L.L.km_counter_km) trunc $IntToStr "." $+ (L.$.km_counter_m) 1 $SetLengthL $+ (S.$.dash_kmcount) ' (L.L.kmcounter_km) s0 trunc $IntToStr "." $+ ' l0 abs l0 abs trunc - 10 * trunc " 1" $IntToStrEnh $+ ' (S.$.dash_kmcount) {endif} {end} {macro:uhr_frame} (L.S.Time) s0 60 / (S.L.cockpit_uhr_min) 12 / (S.L.cockpit_uhr_std) l0 trunc (S.L.cockpit_uhr_sek) {end} {macro:cockpit_failure_frame} ' Feststell ERROR... (C.L.vehicle_euro) 6 = {if} (L.L.velocity) abs 1 > (L.L.elec_busbar_main) 0 = || (L.L.bremse_feststell) 0 = && (L.L.engine_n) 10 < && {if} (L.L.cockpit_feststell_alert) (L.S.Timegap) + (S.L.cockpit_feststell_alert) {else} 0 (S.L.cockpit_feststell_alert) {endif} {endif} (L.L.elec_busbar_main) {if} (L.L.cockpit_warning_timer) (L.S.Timegap) + (S.L.cockpit_warning_timer) 1 > {if} 0 (S.L.cockpit_warning_timer) (L.L.bremse_p_tank01) 700000 < (L.L.bremse_p_tank02) 700000 < || (L.L.elec_busbar_main) && {if} 1 (S.L.cockpit_warning) {else} 0 (S.L.cockpit_warning) {endif} {endif} {else} 0 (S.L.cockpit_warning) {endif} (C.L.vehicle_euro) 5 = {if} (L.L.elec_runtime) 0 > (L.L.elec_runtime) 3 < && {if} 1 (S.L.elec_cluster_selftest) 1 (S.L.bremse_ABS_selftest) 0.6 (S.L.bremse_ABS_eingriff_timer) {else} 0 (S.L.elec_cluster_selftest) 0 (S.L.bremse_ABS_selftest) {endif} {else} (L.L.elec_runtime) 0 > (L.L.elec_runtime) 2 < && {if} 0.6 (S.L.bremse_ABS_eingriff_timer) 1 (S.L.elec_cluster_selftest) 1 (S.L.bremse_ABS_selftest) {else} 0 (S.L.elec_cluster_selftest) 0 (S.L.bremse_ABS_selftest) {endif} {endif} (L.L.cockpit_warning) (S.L.cockpit_failure) (L.L.cockpit_warning) {if} (L.L.cockpit_warning_timer_blink) (L.S.Timegap) + (S.L.cockpit_warning_timer_blink) 0.5 > {if} (L.L.cockpit_failure_light) ! (S.L.cockpit_failure_light) 0 (S.L.cockpit_warning_timer_blink) {endif} 1 (S.L.cockpit_has_warning_alert) {else} (L.L.ready_to_depart) (L.L.velocity) 5 > && {if} (L.L.cockpit_warning_timer_blink) (L.S.Timegap) + (S.L.cockpit_warning_timer_blink) 0.5 > {if} (L.L.cockpit_failure_light) ! (S.L.cockpit_failure_light) 0 (S.L.cockpit_warning_timer_blink) {endif} {else} (L.L.door0_failure) (L.L.doorEntriegelung_01) || {if} (L.L.cockpit_warning_timer_blink) (L.S.Timegap) + (S.L.cockpit_warning_timer_blink) 0.5 > {if} (L.L.cockpit_failure_light) ! (S.L.cockpit_failure_light) 0 (S.L.cockpit_warning_timer_blink) {endif} {else} (L.L.door1_failure) (L.L.doorEntriegelung_11) || {if} (L.L.cockpit_warning_timer_blink) (L.S.Timegap) + (S.L.cockpit_warning_timer_blink) 0.5 > {if} (L.L.cockpit_failure_light) ! (S.L.cockpit_failure_light) 0 (S.L.cockpit_warning_timer_blink) {endif} {else} 0 (S.L.cockpit_failure_light) (S.L.cockpit_warning_timer_blink) {endif} {endif} {endif} (L.L.cp_20h_halte_sw) {if} 1 (S.L.cockpit_has_warning_alert) {else} (L.L.haltewunsch) (C.L.vehicle_euro) 5 = && {if} (L.L.cockpit_has_warning_alert_blink) (L.S.Timegap) + (S.L.cockpit_has_warning_alert_blink) 0.25 > (L.L.cockpit_warnblink_count) 5 < && {if} (L.L.cockpit_has_warning_alert) ! (S.L.cockpit_has_warning_alert) 0 (S.L.cockpit_has_warning_alert_blink) (L.L.cockpit_warnblink_count) 1 + (S.L.cockpit_warnblink_count) {endif} (L.L.cockpit_warnblink_count) 5 > {if} 1 (S.L.cockpit_has_warning_alert) {endif} {else} 0 (S.L.cockpit_has_warning_alert) 0 (S.L.cockpit_warnblink_count) {endif} {endif} {endif} {end} {macro:drehzahlmesser_frame} (L.L.elec_runtime) 1 < {if} (C.L.engine_OM470) ! {if} -10 (S.L.cockpit_drehzahlwinkel) {else} -6 (S.L.cockpit_drehzahlwinkel) {endif} {else} (L.L.engine_n) (F.L.cockpit_drehzahllinie) (L.L.elec_busbar_main) * (S.L.cockpit_drehzahlwinkel) {endif} {end} {macro:hupe_frame} (L.L.elec_busbar_main) {if} (L.L.cp_horntype_sw) {if} 1 (S.L.cp_horntype_sw_active) {else} 0 (S.L.cp_horntype_sw_active) {endif} (L.L.cockpit_hupe) 1 = {if} (L.L.cockpit_hupe_volume) 1 < {if} (L.L.cockpit_hupe_volume) (L.S.Timegap) 14 * + (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) 14 * - (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) 14 * - (S.L.cockpit_hupe_volume) {else} 0 (S.L.cockpit_hupe_volume) {endif} 0 (S.L.cp_horntype_sw_active) {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} ' 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.cp_schluessel_rot) 0.8 > {if} -1 (S.L.cockpit_fernlichthebel) {endif} {else} 0 (S.L.cockpit_fernlichthebel) {endif} {end} {macro:wischerhebel_frame} (L.L.cockpit_wischerhebel_lastmode) (L.L.cockpit_wischerhebel_mode) = ! {if} (T.L.ev_wischerhebel) {endif} (L.L.cockpit_wischerhebel_mode) (S.L.cockpit_wischerhebel_lastmode) {end} {macro:wischer_drehschalter_frame} (L.L.cockpit_wischer_drehschalter_lastmode) (L.L.cockpit_wischer_drehschalter_mode) = ! {if} (T.L.ev_wischerhebel) {endif} (L.L.cockpit_wischer_drehschalter_mode) (S.L.cockpit_wischer_drehschalter_lastmode) {end} {macro:cockpitlights_frame} (L.L.cp_alarm_sw) (L.L.elec_busbar_main) && (S.L.cp_alarm_sw_active) (L.L.cp_disabled_service_sw) (L.L.elec_busbar_main) && (S.L.cp_disabled_service_active) (L.L.cp_dummy_sw01_sw) (L.L.elec_busbar_main) && (S.L.cp_dummy_sw01_active) (L.L.elec_cluster_selftest) (L.L.elec_busbar_main) && (S.L.cockpit_lights_misc) (L.L.cp_regenerate_up_active) 1 = (L.L.elec_busbar_main) && (L.L.elec_cluster_selftest) 1 = || (S.L.cockpit_lights_dpf_active) (L.L.lights_blinker_l) 1 = (L.L.elec_cluster_selftest) 1 = || (S.L.cockpit_light_licht_blinker_l) (L.L.lights_blinker_r) 1 = (L.L.elec_cluster_selftest) 1 = || (S.L.cockpit_light_licht_blinker_r) (L.L.lights_abbl) 1 = (L.L.elec_busbar_main) && (L.L.elec_cluster_selftest) 1 = || (S.L.cockpit_light_licht_abbl) (L.L.lights_fern) 1 = (L.L.elec_busbar_main) && (L.L.elec_cluster_selftest) 1 = || (S.L.cockpit_light_licht_fern) (L.L.lights_nebel) 0 > (L.L.elec_busbar_main) && (L.L.elec_cluster_selftest) 1 = || (S.L.cockpit_light_licht_nebel_front) (L.L.bremse_feststell) 1 = (L.L.elec_busbar_main) && (L.L.cockpit_warning) 1 = || (L.L.elec_cluster_selftest) 1 = || (S.L.cockpit_light_parking_brake) (L.L.cockpit_failure_light) 1 = (L.L.elec_busbar_main) && (L.L.elec_cluster_selftest) 1 = || (S.L.cockpit_light_emergency_alert) (L.L.cockpit_has_warning_alert) 1 = (L.L.elec_busbar_main) && (L.L.elec_cluster_selftest) 1 = || (S.L.cockpit_light_warning_alert) (L.L.engine_n) 100 < (L.L.elec_busbar_main) && (L.L.engine_status) && (L.L.elec_cluster_selftest) 1 = || (S.L.cockpit_light_engine_status) (L.L.engine_status_timer) (L.S.Timegap) + (S.L.engine_status_timer) (L.L.engine_status_timer) 5 > {if} 1 (S.L.engine_status) (L.L.engine_status_timer) 5.5 > {if} 0 (S.L.engine_status) (S.L.engine_status_timer) {endif} {endif} (L.L.dash_ASR_off_intern) 1 = (L.L.elec_busbar_main) && (L.L.elec_cluster_selftest) 1 = || (S.L.cockpit_light_asr) {end} {macro:tankuhr_frame} (L.L.engine_tank_content) (F.L.cockpit_tankuhr) (L.L.elec_busbar_main) * s0 (L.L.elec_runtime) 3.5 > {if} (L.L.cockpit_tankuhr) s1 5 s2 5 s3 (M.L.traegheit) l1 (S.L.cockpit_tankuhr) {else} 0 (S.L.cockpit_tankuhr) {endif} {end} {macro:spiegel_frame} (L.L.elec_busbar_main) {if} (L.L.spiegel_pos_sw) 1 = {if} (L.L.spiegel_mode) ! {if} (L.L.cp_spiegel_l_x) 0.0005 + -0.02 max 0.02 min (S.L.cp_spiegel_l_x) (L.L.cp_spiegel_l_x) 50 * (S.L.spiegel_l_pos) {else} (L.L.cp_spiegel_r_x) 0.0005 + -0.02 max 0.02 min (S.L.cp_spiegel_r_x) (L.L.cp_spiegel_r_x) 50 * (S.L.spiegel_r_pos) {endif} {endif} (L.L.spiegel_pos_sw) -1 = {if} (L.L.spiegel_mode) ! {if} (L.L.cp_spiegel_l_x) 0.0005 - -0.02 max 0.02 min (S.L.cp_spiegel_l_x) (L.L.cp_spiegel_l_x) 50 * (S.L.spiegel_l_pos) {else} (L.L.cp_spiegel_r_x) 0.0005 - -0.02 max 0.02 min (S.L.cp_spiegel_r_x) (L.L.cp_spiegel_r_x) 50 * (S.L.spiegel_r_pos) {endif} {endif} {endif} {end} {macro:engine_thermometer_frame} (L.L.engine_temperature) (F.L.cockpit_engine_temperature) (L.L.elec_busbar_main) * s0 (L.L.elec_runtime) 3.5 > {if} (L.L.cockpit_motortemperaturwinkel) s1 5 s2 5 s3 (M.L.traegheit) l1 (S.L.cockpit_motortemperaturwinkel) {else} 0 (S.L.cockpit_motortemperaturwinkel) {endif} {end} {macro:dachluke_pos_rot} l0 0.5 <= {if} 0 s1 s2 s3 s4 s5 s6 s7 (T.L.ev_dachluke_close) {else} l0 1.5 <= {if} 0.65 s1 1 s2 0.80 s3 0.10 s4 1 s5 1 s6 0 s7 (T.L.ev_dachluke_open) {else} l0 2.5 <= {if} 1.02 s1 0 s2 1 s3 1 s4 1 s5 1 s6 1 s7 (T.L.ev_dachluke_change) {else} 0.65 s1 -1 s2 0.10 s3 0.80 s4 1 s5 0 s6 1 s7 (T.L.ev_dachluke_change) {endif} {endif} {endif} {end} {macro:dachluke_pos_rot_old} l0 0.5 <= {if} 0 s1 s2 s3 s4 s5 s6 s7 (T.L.ev_dachluke_close) {else} l0 1.5 <= {if} 0.65 s1 1 s2 0.80 s3 0.10 s4 1 s5 1 s6 0 s7 (T.L.ev_dachluke_open) {else} l0 2.5 <= {if} 1.02 s1 0 s2 1 s3 1 s4 1 s5 1 s6 1 s7 (T.L.ev_dachluke_change) {else} 0.65 s1 -1 s2 0.10 s3 0.80 s4 1 s5 0 s6 1 s7 (T.L.ev_dachluke_change) {endif} {endif} {endif} {end} {macro:kippschaltersound} l1 {if} (T.L.ev_switch_on) {else} (T.L.ev_switch_off) {endif} {end} {macro:kippschaltersound_push} l1 {if} (T.L.ev_switch_push_on) {else} (T.L.ev_switch_push_off) {endif} {end} {macro:klappfenstersound} l1 {if} (T.L.ev_klappfenster_opn) {else} (T.L.ev_klappfenster_cls) {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: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) {endif} (L.L.cp_fahrertuer_pos) 140 * 27 + 3.14 * 180 / sin (S.L.cp_fahrertuer_globalangle) {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_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} (L.L.cp_rollo_pos) 0.99 > {if} 1 (S.L.cp_rollo1_visible) (S.L.cp_rollo2_visible) (S.L.cp_rollo3_visible) (S.L.cp_rollo4_visible) (S.L.cp_rollo5_visible) (S.L.cp_rollo6_visible) (S.L.cp_rollo7_visible) (S.L.cp_rollo8_visible) (S.L.cp_rollo9_visible) (S.L.cp_rollo10_visible) (S.L.cp_rollo11_visible) {else} (L.L.cp_rollo_pos) 0.938 > {if} 0 (S.L.cp_rollo11_visible) 1 (S.L.cp_rollo1_visible) (S.L.cp_rollo2_visible) (S.L.cp_rollo3_visible) (S.L.cp_rollo4_visible) (S.L.cp_rollo5_visible) (S.L.cp_rollo6_visible) (S.L.cp_rollo7_visible) (S.L.cp_rollo8_visible) (S.L.cp_rollo9_visible) (S.L.cp_rollo10_visible) {else} (L.L.cp_rollo_pos) 0.865 > {if} 0 (S.L.cp_rollo10_visible) (S.L.cp_rollo11_visible) 1 (S.L.cp_rollo1_visible) (S.L.cp_rollo2_visible) (S.L.cp_rollo3_visible) (S.L.cp_rollo4_visible) (S.L.cp_rollo5_visible) (S.L.cp_rollo6_visible) (S.L.cp_rollo7_visible) (S.L.cp_rollo8_visible) (S.L.cp_rollo9_visible) {else} (L.L.cp_rollo_pos) 0.76 > {if} 0 (S.L.cp_rollo9_visible) (S.L.cp_rollo10_visible) (S.L.cp_rollo11_visible) 1 (S.L.cp_rollo1_visible) (S.L.cp_rollo2_visible) (S.L.cp_rollo3_visible) (S.L.cp_rollo4_visible) (S.L.cp_rollo5_visible) (S.L.cp_rollo6_visible) (S.L.cp_rollo7_visible) (S.L.cp_rollo8_visible) {else} (L.L.cp_rollo_pos) 0.672 > {if} 0 (S.L.cp_rollo8_visible) (S.L.cp_rollo9_visible) (S.L.cp_rollo10_visible) (S.L.cp_rollo11_visible) 1 (S.L.cp_rollo1_visible) (S.L.cp_rollo2_visible) (S.L.cp_rollo3_visible) (S.L.cp_rollo4_visible) (S.L.cp_rollo5_visible) (S.L.cp_rollo6_visible) (S.L.cp_rollo7_visible) {else} (L.L.cp_rollo_pos) 0.577 > {if} 0 (S.L.cp_rollo7_visible) (S.L.cp_rollo8_visible) (S.L.cp_rollo9_visible) (S.L.cp_rollo10_visible) (S.L.cp_rollo11_visible) 1 (S.L.cp_rollo1_visible) (S.L.cp_rollo2_visible) (S.L.cp_rollo3_visible) (S.L.cp_rollo4_visible) (S.L.cp_rollo5_visible) (S.L.cp_rollo6_visible) {else} (L.L.cp_rollo_pos) 0.486 > {if} 0 (S.L.cp_rollo6_visible) (S.L.cp_rollo7_visible) (S.L.cp_rollo8_visible) (S.L.cp_rollo9_visible) (S.L.cp_rollo10_visible) (S.L.cp_rollo11_visible) 1 (S.L.cp_rollo1_visible) (S.L.cp_rollo2_visible) (S.L.cp_rollo3_visible) (S.L.cp_rollo4_visible) (S.L.cp_rollo5_visible) {else} (L.L.cp_rollo_pos) 0.396 > {if} 0 (S.L.cp_rollo5_visible) (S.L.cp_rollo6_visible) (S.L.cp_rollo7_visible) (S.L.cp_rollo8_visible) (S.L.cp_rollo9_visible) (S.L.cp_rollo10_visible) (S.L.cp_rollo11_visible) 1 (S.L.cp_rollo1_visible) (S.L.cp_rollo2_visible) (S.L.cp_rollo3_visible) (S.L.cp_rollo4_visible) {else} (L.L.cp_rollo_pos) 0.292 > {if} 0 (S.L.cp_rollo4_visible) (S.L.cp_rollo5_visible) (S.L.cp_rollo6_visible) (S.L.cp_rollo7_visible) (S.L.cp_rollo8_visible) (S.L.cp_rollo9_visible) (S.L.cp_rollo10_visible) (S.L.cp_rollo11_visible) 1 (S.L.cp_rollo1_visible) (S.L.cp_rollo2_visible) (S.L.cp_rollo3_visible) {else} (L.L.cp_rollo_pos) 0.185 > {if} 0 (S.L.cp_rollo3_visible) (S.L.cp_rollo4_visible) (S.L.cp_rollo5_visible) (S.L.cp_rollo6_visible) (S.L.cp_rollo7_visible) (S.L.cp_rollo8_visible) (S.L.cp_rollo9_visible) (S.L.cp_rollo10_visible) (S.L.cp_rollo11_visible) 1 (S.L.cp_rollo1_visible) (S.L.cp_rollo2_visible) {else} (L.L.cp_rollo_pos) 0.095 > {if} 0 (S.L.cp_rollo2_visible) (S.L.cp_rollo3_visible) (S.L.cp_rollo4_visible) (S.L.cp_rollo5_visible) (S.L.cp_rollo6_visible) (S.L.cp_rollo7_visible) (S.L.cp_rollo8_visible) (S.L.cp_rollo9_visible) (S.L.cp_rollo10_visible) (S.L.cp_rollo11_visible) 1 (S.L.cp_rollo1_visible) {else} 0 (S.L.cp_rollo1_visible) (S.L.cp_rollo2_visible) (S.L.cp_rollo3_visible) (S.L.cp_rollo4_visible) (S.L.cp_rollo5_visible) (S.L.cp_rollo6_visible) (S.L.cp_rollo7_visible) (S.L.cp_rollo8_visible) (S.L.cp_rollo9_visible) (S.L.cp_rollo10_visible) (S.L.cp_rollo11_visible) {endif} {endif} {endif} {endif} {endif} {endif} {endif} {endif} {endif} {endif} {endif} ' ------------------ (L.L.cp_rollo_fenster_pos) (L.L.cp_rollo_fenster_rastpos) max (S.L.cp_rollo_fenster_rastpos) (L.L.cp_rollo_fenster_dragged) ! {if} (L.L.cp_rollo_fenster_retract) {if} (L.L.cp_rollo_fenster_speed) (L.S.Timegap) (L.L.cp_rollo_fenster_pos) 45 * * - (S.L.cp_rollo_fenster_speed) {else} (L.L.cp_rollo_fenster_pos) (L.L.cp_rollo_fenster_rastpos) < {if} (L.L.cp_rollo_fenster_speed) (L.S.Timegap) 14 * + (S.L.cp_rollo_fenster_speed) {else} 0 (S.L.cp_rollo_fenster_speed) {endif} {endif} (L.L.cp_rollo_fenster_pos) 1 > {if} 1 (S.L.cp_rollo_fenster_rastpos) {else} (L.L.cp_rollo_fenster_pos) 0 < {if} 0 (S.L.cp_rollo_fenster_retract) (S.L.cp_rollo_fenster_rastpos) {endif} {endif} {endif} (L.L.cp_rollo_fenster_pos) 0.99 > {if} 0 (S.L.cp_rollo_fenster12_visible) (S.L.cp_rollo_fenster13_visible) 1 (S.L.cp_rollo_fenster1_visible) (S.L.cp_rollo_fenster2_visible) (S.L.cp_rollo_fenster3_visible) (S.L.cp_rollo_fenster4_visible) (S.L.cp_rollo_fenster5_visible) (S.L.cp_rollo_fenster6_visible) (S.L.cp_rollo_fenster7_visible) (S.L.cp_rollo_fenster8_visible) (S.L.cp_rollo_fenster9_visible) (S.L.cp_rollo_fenster10_visible) (S.L.cp_rollo_fenster11_visible) {else} (L.L.cp_rollo_fenster_pos) 0.9 > {if} 0 (S.L.cp_rollo_fenster11_visible) (S.L.cp_rollo_fenster12_visible) (S.L.cp_rollo_fenster13_visible) 1 (S.L.cp_rollo_fenster1_visible) (S.L.cp_rollo_fenster2_visible) (S.L.cp_rollo_fenster3_visible) (S.L.cp_rollo_fenster4_visible) (S.L.cp_rollo_fenster5_visible) (S.L.cp_rollo_fenster6_visible) (S.L.cp_rollo_fenster7_visible) (S.L.cp_rollo_fenster8_visible) (S.L.cp_rollo_fenster9_visible) (S.L.cp_rollo_fenster10_visible) {else} (L.L.cp_rollo_fenster_pos) 0.86 > {if} 0 (S.L.cp_rollo_fenster10_visible) (S.L.cp_rollo_fenster11_visible) (S.L.cp_rollo_fenster12_visible) (S.L.cp_rollo_fenster13_visible) 1 (S.L.cp_rollo_fenster1_visible) (S.L.cp_rollo_fenster2_visible) (S.L.cp_rollo_fenster3_visible) (S.L.cp_rollo_fenster4_visible) (S.L.cp_rollo_fenster5_visible) (S.L.cp_rollo_fenster6_visible) (S.L.cp_rollo_fenster7_visible) (S.L.cp_rollo_fenster8_visible) (S.L.cp_rollo_fenster9_visible) {else} (L.L.cp_rollo_fenster_pos) 0.75 > {if} 0 (S.L.cp_rollo_fenster9_visible) (S.L.cp_rollo_fenster10_visible) (S.L.cp_rollo_fenster11_visible) (S.L.cp_rollo_fenster12_visible) (S.L.cp_rollo_fenster13_visible) 1 (S.L.cp_rollo_fenster1_visible) (S.L.cp_rollo_fenster2_visible) (S.L.cp_rollo_fenster3_visible) (S.L.cp_rollo_fenster4_visible) (S.L.cp_rollo_fenster5_visible) (S.L.cp_rollo_fenster6_visible) (S.L.cp_rollo_fenster7_visible) (S.L.cp_rollo_fenster8_visible) {else} (L.L.cp_rollo_fenster_pos) 0.63 > {if} 0 (S.L.cp_rollo_fenster8_visible) (S.L.cp_rollo_fenster9_visible) (S.L.cp_rollo_fenster10_visible) (S.L.cp_rollo_fenster11_visible) (S.L.cp_rollo_fenster12_visible) (S.L.cp_rollo_fenster13_visible) 1 (S.L.cp_rollo_fenster1_visible) (S.L.cp_rollo_fenster2_visible) (S.L.cp_rollo_fenster3_visible) (S.L.cp_rollo_fenster4_visible) (S.L.cp_rollo_fenster5_visible) (S.L.cp_rollo_fenster6_visible) (S.L.cp_rollo_fenster7_visible) {else} (L.L.cp_rollo_fenster_pos) 0.545 > {if} 0 (S.L.cp_rollo_fenster7_visible) (S.L.cp_rollo_fenster8_visible) (S.L.cp_rollo_fenster9_visible) (S.L.cp_rollo_fenster10_visible) (S.L.cp_rollo_fenster11_visible) (S.L.cp_rollo_fenster12_visible) (S.L.cp_rollo_fenster13_visible) 1 (S.L.cp_rollo_fenster1_visible) (S.L.cp_rollo_fenster2_visible) (S.L.cp_rollo_fenster3_visible) (S.L.cp_rollo_fenster4_visible) (S.L.cp_rollo_fenster5_visible) (S.L.cp_rollo_fenster6_visible) {else} (L.L.cp_rollo_fenster_pos) 0.45 > {if} 0 (S.L.cp_rollo_fenster6_visible) (S.L.cp_rollo_fenster7_visible) (S.L.cp_rollo_fenster8_visible) (S.L.cp_rollo_fenster9_visible) (S.L.cp_rollo_fenster10_visible) (S.L.cp_rollo_fenster11_visible) (S.L.cp_rollo_fenster12_visible) (S.L.cp_rollo_fenster13_visible) 1 (S.L.cp_rollo_fenster1_visible) (S.L.cp_rollo_fenster2_visible) (S.L.cp_rollo_fenster3_visible) (S.L.cp_rollo_fenster4_visible) (S.L.cp_rollo_fenster5_visible) {else} (L.L.cp_rollo_fenster_pos) 0.365 > {if} 0 (S.L.cp_rollo_fenster5_visible) (S.L.cp_rollo_fenster6_visible) (S.L.cp_rollo_fenster7_visible) (S.L.cp_rollo_fenster8_visible) (S.L.cp_rollo_fenster9_visible) (S.L.cp_rollo_fenster10_visible) (S.L.cp_rollo_fenster11_visible) (S.L.cp_rollo_fenster12_visible) (S.L.cp_rollo_fenster13_visible) 1 (S.L.cp_rollo_fenster1_visible) (S.L.cp_rollo_fenster2_visible) (S.L.cp_rollo_fenster3_visible) (S.L.cp_rollo_fenster4_visible) {else} (L.L.cp_rollo_fenster_pos) 0.258 > {if} 0 (S.L.cp_rollo_fenster4_visible) (S.L.cp_rollo_fenster5_visible) (S.L.cp_rollo_fenster6_visible) (S.L.cp_rollo_fenster7_visible) (S.L.cp_rollo_fenster8_visible) (S.L.cp_rollo_fenster9_visible) (S.L.cp_rollo_fenster10_visible) (S.L.cp_rollo_fenster11_visible) (S.L.cp_rollo_fenster12_visible) (S.L.cp_rollo_fenster13_visible) 1 (S.L.cp_rollo_fenster1_visible) (S.L.cp_rollo_fenster2_visible) (S.L.cp_rollo_fenster3_visible) {else} (L.L.cp_rollo_fenster_pos) 0.14 > {if} 0 (S.L.cp_rollo_fenster3_visible) (S.L.cp_rollo_fenster4_visible) (S.L.cp_rollo_fenster5_visible) (S.L.cp_rollo_fenster6_visible) (S.L.cp_rollo_fenster7_visible) (S.L.cp_rollo_fenster8_visible) (S.L.cp_rollo_fenster9_visible) (S.L.cp_rollo_fenster10_visible) (S.L.cp_rollo_fenster11_visible) (S.L.cp_rollo_fenster12_visible) (S.L.cp_rollo_fenster13_visible) 1 (S.L.cp_rollo_fenster1_visible) (S.L.cp_rollo_fenster2_visible) {else} (L.L.cp_rollo_fenster_pos) 0.05 > {if} 0 (S.L.cp_rollo_fenster2_visible) (S.L.cp_rollo_fenster3_visible) (S.L.cp_rollo_fenster4_visible) (S.L.cp_rollo_fenster5_visible) (S.L.cp_rollo_fenster6_visible) (S.L.cp_rollo_fenster7_visible) (S.L.cp_rollo_fenster8_visible) (S.L.cp_rollo_fenster9_visible) (S.L.cp_rollo_fenster10_visible) (S.L.cp_rollo_fenster11_visible) (S.L.cp_rollo_fenster12_visible) (S.L.cp_rollo_fenster13_visible) 1 (S.L.cp_rollo_fenster1_visible) {else} 0 (S.L.cp_rollo_fenster1_visible) (S.L.cp_rollo_fenster2_visible) (S.L.cp_rollo_fenster3_visible) (S.L.cp_rollo_fenster4_visible) (S.L.cp_rollo_fenster5_visible) (S.L.cp_rollo_fenster6_visible) (S.L.cp_rollo_fenster7_visible) (S.L.cp_rollo_fenster8_visible) (S.L.cp_rollo_fenster9_visible) (S.L.cp_rollo_fenster10_visible) (S.L.cp_rollo_fenster11_visible) (S.L.cp_rollo_fenster12_visible) (S.L.cp_rollo_fenster13_visible) {endif} {endif} {endif} {endif} {endif} {endif} {endif} {endif} {endif} {endif} {endif} {end}