'######################################## '# # '# MAIN SCRIPT # '# # '# MAN Standarddoppeldecker SD200 # '# # '# Bauart SD85 # '# # '######################################## '(c) 10.08.2009 Marcel Kuhnt, R diger H lsmann 'Script Version: 1.0 'Omsi release: 1.0 'Revision History: '- Marcel Kuhnt 10.08.2009 Added Revision History '- Marcel Kuhnt 30.11.2010 Bugfix: press [D] in AI mode if motor running but neutral '------------------------------------------------------------------------------------------ '###################### ' Hauptteil '###################### {init} (M.L.engine_Init) (M.L.Antrieb_Init) (M.L.Elec_Init) (M.L.Door_Init) (M.L.wiper_init) (M.L.lights_init) (M.L.bremse_init) (M.L.cockpit_init) (M.L.heizung_init) (M.L.Matrix_init) (M.L.IBIS_init) (M.L.VDV_init) (M.L.articulation_init) (M.L.EVENDPC2_init) (M.L.IBISPlus_init) 1 (S.L.Daueranimation) {end} {frame} (M.L.Engine_Frame) (M.L.Antrieb_Frame) (M.L.Elec_Frame) (M.L.Door_frame) (M.L.cockpit_frame) (M.L.lights_frame) (M.L.wiper_frame) (M.L.bremse_frame) (M.L.klappern_frame) (M.L.FF_frame) (M.L.rain_frame) (M.L.sound_volume_frame) (M.L.heizung_frame) (M.L.IBIS_frame) (M.L.Matrix_frame) (M.L.cashdesk_frame) (M.L.VDV_Frame) (M.L.articulation_frame) (M.L.SIP_Frame) (M.L.Radio_Frame) (M.L.EVENDPC2_frame) (M.L.IBISPlus_frame) 1 (S.L.Daueranimation) 0 (M.V.GetDepotStringGlobal) "HB_Bremen_2016" $= 0 (M.V.GetDepotStringGlobal) "HB_Bremen_2010" $= || 1 (S.L.Refresh_Strings) (L.L.vis_cab_door) 10 = {if} 0 (S.L.visvar_cab_glass_door) (S.L.visvar_cab_glass_door3) {else} (L.L.vis_cab_door) 9 = {if} (L.L.vis_cab_glass_door) 10 + (S.L.visvar_cab_glass_door) (L.L.vis_cab_glass_door) 2 >= {if} 11 (S.L.visvar_cab_glass_door3) {else} 0 (S.L.visvar_cab_glass_door3) {endif} {else} (L.L.vis_cab_glass_door) (S.L.visvar_cab_glass_door) (L.L.vis_cab_glass_door) 2 >= {if} 1 (S.L.visvar_cab_glass_door3) {else} 0 (S.L.visvar_cab_glass_door3) {endif} {endif} {endif} (L.L.vis_cab_door) 5 = (L.L.vis_cab_door) 6 = || (L.L.vis_cab_door) 7 = || {if} 1 (S.L.visvar_cab_door_zahl) {else} 0 (S.L.visvar_cab_door_zahl) {endif} (L.L.vis_cab_door) 2 = (L.L.vis_cab_door) 3 = || (L.L.vis_cab_glass_door) 4 >= && {if} 1 (S.L.visvar_cab_glass_door2) {else} 0 (S.L.visvar_cab_glass_door2) {endif} (L.L.vis_cab_glass_static) 0 > {if} 1 (S.L.visvar_cab_glass_static) {else} 0 (S.L.visvar_cab_glass_static) {endif} 'setvar logic: ' visvar_interior_klapa_type_front ' 0 std ' 1 std dbl ' 2 new ' 3 new dbl (L.L.vis_mirror_type) 1 < {if} (L.L.vis_mirror_type_additional) (S.L.visvar_mirror_type_additional) {else} 0 (S.L.visvar_mirror_type_additional) {endif} (L.L.vis_interior_klapa_type) 0 > {if} (L.L.vis_cab_door) 10 = {if} 3 (S.L.visvar_interior_klapa_type_front) (L.L.nothahn_cover_0) 0 = {if} 4 (S.L.nothahn_cover_0_model) {else} 0 (S.L.nothahn_cover_0_model) {endif} (L.L.nothahn_cover_1) 0 = {if} 4 (S.L.nothahn_cover_1_model) {else} 0 (S.L.nothahn_cover_1_model) {endif} {else} 2 (S.L.visvar_interior_klapa_type_front) (L.L.nothahn_cover_1) 0 = {if} 3 (S.L.nothahn_cover_1_model) {else} 0 (S.L.nothahn_cover_1_model) {endif} 0 (S.L.nothahn_cover_0_model) {endif} (L.L.nothahn_cover_2) 0 = {if} 2 (S.L.nothahn_cover_2_model) {else} 0 (S.L.nothahn_cover_2_model) {endif} (L.L.nothahn_cover_3) 0 = {if} 2 (S.L.nothahn_cover_3_model) {else} 0 (S.L.nothahn_cover_3_model) {endif} (L.L.nothahn_cover_4) 0 = {if} 2 (S.L.nothahn_cover_4_model) {else} 0 (S.L.nothahn_cover_4_model) {endif} {else} (L.L.vis_cab_door) 10 = {if} 1 (S.L.visvar_interior_klapa_type_front) (L.L.nothahn_cover_0) 0 = {if} 2 (S.L.nothahn_cover_0_model) {else} 0 (S.L.nothahn_cover_0_model) {endif} (L.L.nothahn_cover_1) 0 = {if} 2 (S.L.nothahn_cover_1_model) {else} 0 (S.L.nothahn_cover_1_model) {endif} {else} 0 (S.L.visvar_interior_klapa_type_front) (L.L.nothahn_cover_1) 0 = {if} 1 (S.L.nothahn_cover_1_model) {else} 0 (S.L.nothahn_cover_1_model) {endif} 0 (S.L.nothahn_cover_0_model) {endif} (L.L.nothahn_cover_2) 0 = {if} 1 (S.L.nothahn_cover_2_model) {else} 0 (S.L.nothahn_cover_2_model) {endif} (L.L.nothahn_cover_3) 0 = {if} 1 (S.L.nothahn_cover_3_model) {else} 0 (S.L.nothahn_cover_3_model) {endif} (L.L.nothahn_cover_4) 0 = {if} 1 (S.L.nothahn_cover_4_model) {else} 0 (S.L.nothahn_cover_4_model) {endif} {endif} (L.L.vis_interior_ceiling_type) 1 > {if} (L.L.vis_AC_type_driver) 0 > {if} 2 (S.L.visvar_AC_type_driver) {endif} {else} (L.L.vis_AC_type_driver) 0 > {if} 1 (S.L.visvar_AC_type_driver) {else} 0 (S.L.visvar_AC_type_driver) {endif} {endif} (L.L.vis_CNG_TankTyp) 0 > {if} 1 (S.L.visvar_u18_gelenktyp) {else} 0 (S.L.visvar_u18_gelenktyp) {endif} (L.L.lights_fern) 0 > {if} (L.L.vis_lights_front_type) 0 = {if} 1 (S.L.lights_fern_06) {else} 0 (S.L.lights_fern_06) {endif} (L.L.vis_lights_front_type) 1 = {if} 1 (S.L.lights_fern_09) {else} 0 (S.L.lights_fern_09) {endif} (L.L.vis_lights_front_type) 2 = {if} 1 (S.L.lights_fern_13) {else} 0 (S.L.lights_fern_13) {endif} (L.L.vis_lights_front_type) 3 = {if} 1 (S.L.lights_fern_16) {else} 0 (S.L.lights_fern_16) {endif} {else} 0 (S.L.lights_fern_06) (S.L.lights_fern_09) (S.L.lights_fern_13) (S.L.lights_fern_16) {endif} (L.L.lights_nebelschluss) 0 > {if} (L.L.vis_lights_front_type) 0 = {if} 1 (S.L.lights_nebelschluss_06) {else} 0 (S.L.lights_nebelschluss_06) {endif} (L.L.vis_lights_front_type) 1 = {if} 1 (S.L.lights_nebelschluss_09) {else} 0 (S.L.lights_nebelschluss_09) {endif} (L.L.vis_lights_front_type) 2 = {if} 1 (S.L.lights_nebelschluss_13) {else} 0 (S.L.lights_nebelschluss_13) {endif} (L.L.vis_lights_front_type) 3 = {if} 1 (S.L.lights_nebelschluss_16) {else} 0 (S.L.lights_nebelschluss_16) {endif} {else} 0 (S.L.lights_nebelschluss_06) (S.L.lights_nebelschluss_09) (S.L.lights_nebelschluss_13) (S.L.lights_nebelschluss_16) {endif} (L.L.lights_abbl) 0 > {if} (L.L.vis_lights_front_type) 0 = {if} 1 (S.L.lights_abbl_06) {else} 0 (S.L.lights_abbl_06) {endif} (L.L.vis_lights_front_type) 1 = {if} 1 (S.L.lights_abbl_09) {else} 0 (S.L.lights_abbl_09) {endif} (L.L.vis_lights_front_type) 2 = {if} 1 (S.L.lights_abbl_13) {else} 0 (S.L.lights_abbl_13) {endif} (L.L.vis_lights_front_type) 3 = {if} 1 (S.L.lights_abbl_16) {else} 0 (S.L.lights_abbl_16) {endif} {else} 0 (S.L.lights_abbl_06) (S.L.lights_abbl_09) (S.L.lights_abbl_13) (S.L.lights_abbl_16) {endif} (L.L.lights_blinker_l) 0 > {if} (L.L.vis_lights_front_type) 0 = {if} 1 (S.L.lights_blinker_l_06) {else} 0 (S.L.lights_blinker_l_06) {endif} (L.L.vis_lights_front_type) 1 = {if} 1 (S.L.lights_blinker_l_09) {else} 0 (S.L.lights_blinker_l_09) {endif} (L.L.vis_lights_front_type) 2 = {if} 1 (S.L.lights_blinker_l_13) {else} 0 (S.L.lights_blinker_l_13) {endif} (L.L.vis_lights_front_type) 3 = {if} 1 (S.L.lights_blinker_l_16) {else} 0 (S.L.lights_blinker_l_16) {endif} {else} 0 (S.L.lights_blinker_l_06) (S.L.lights_blinker_l_09) (S.L.lights_blinker_l_13) (S.L.lights_blinker_l_16) {endif} (L.L.lights_blinker_r) 0 > {if} (L.L.vis_lights_front_type) 0 = {if} 1 (S.L.lights_blinker_r_06) {else} 0 (S.L.lights_blinker_r_06) {endif} (L.L.vis_lights_front_type) 1 = {if} 1 (S.L.lights_blinker_r_09) {else} 0 (S.L.lights_blinker_r_09) {endif} (L.L.vis_lights_front_type) 2 = {if} 1 (S.L.lights_blinker_r_13) {else} 0 (S.L.lights_blinker_r_13) {endif} (L.L.vis_lights_front_type) 3 = {if} 1 (S.L.lights_blinker_r_16) {else} 0 (S.L.lights_blinker_r_16) {endif} {else} 0 (S.L.lights_blinker_r_06) (S.L.lights_blinker_r_09) (S.L.lights_blinker_r_13) (S.L.lights_blinker_r_16) {endif} (L.L.drl) 0 > {if} (L.L.vis_lights_front_type) 0 = {if} 1 (S.L.drl_06) {else} 0 (S.L.drl_06) {endif} (L.L.vis_lights_front_type) 1 = {if} 1 (S.L.drl_09) {else} 0 (S.L.drl_09) {endif} (L.L.vis_lights_front_type) 2 = {if} 1 (S.L.drl_13) {else} 0 (S.L.drl_13) {endif} (L.L.vis_lights_front_type) 3 = {if} 1 (S.L.drl_16) {else} 0 (S.L.drl_16) {endif} {else} 0 (S.L.drl_06) (S.L.drl_09) (S.L.drl_13) (S.L.drl_16) {endif} (L.L.lights_stand) 0 > {if} (L.L.vis_lights_front_type) 0 = {if} 1 (S.L.lights_stand_06) {else} 0 (S.L.lights_stand_06) {endif} (L.L.vis_lights_front_type) 1 = {if} 1 (S.L.lights_stand_09) {else} 0 (S.L.lights_stand_09) {endif} (L.L.vis_lights_front_type) 2 = {if} 1 (S.L.lights_stand_13) {else} 0 (S.L.lights_stand_13) {endif} (L.L.vis_lights_front_type) 3 = {if} 1 (S.L.lights_stand_16) {else} 0 (S.L.lights_stand_16) {endif} {else} 0 (S.L.lights_stand_06) (S.L.lights_stand_09) (S.L.lights_stand_13) (S.L.lights_stand_16) {endif} (L.L.drl) 0 > (L.L.vis_lights_front_type_additional_DRL) 1 = && {if} 1 (S.L.drl_AD) {else} 0 (S.L.drl_AD) {endif} (L.L.lights_nebelschluss) 0 > (L.L.vis_lights_front_type_additional_DRL) 2 = && {if} 1 (S.L.drl_AD2) {else} 0 (S.L.drl_AD2) {endif} (L.L.vis_engine_type) 0 = (L.L.vis_engine_type) 7 = || (L.L.vis_engine_type) 9 = || (L.L.vis_engine_type) 10 = || {if} 0 (S.L.visvar_enginetype_interior) {endif} (L.L.vis_engine_type) 1 = (L.L.vis_engine_type) 2 = || {if} 1 (S.L.visvar_enginetype_interior) {endif} (L.L.vis_engine_type) 3 = {if} 2 (S.L.visvar_enginetype_interior) {endif} (L.L.vis_engine_type) 4 = (L.L.vis_engine_type) 12 = || {if} 3 (S.L.visvar_enginetype_interior) {endif} (L.L.vis_engine_type) 5 = {if} 4 (S.L.visvar_enginetype_interior) {endif} (L.L.vis_engine_type) 6 = (L.L.vis_engine_type) 8 = || (L.L.vis_engine_type) 11 = || {if} 5 (S.L.visvar_enginetype_interior) {endif} (L.L.vis_engine_type) 0 = (L.L.vis_engine_type) 1 = || (L.L.vis_engine_type) 2 = || (L.L.vis_engine_type) 3 = || (L.L.vis_engine_type) 5 = || (L.L.vis_engine_type) 7 = || (L.L.vis_engine_type) 9 = || (L.L.vis_engine_type) 10 = || {if} 0 (S.L.visvar_enginetype_wagenkasten) {endif} (L.L.vis_engine_type) 4 = (L.L.vis_engine_type) 6 = || (L.L.vis_engine_type) 8 = || (L.L.vis_engine_type) 11 = || (L.L.vis_engine_type) 12 = || {if} 1 (S.L.visvar_enginetype_wagenkasten) {endif} (L.L.visvar_enginetype_wagenkasten) 0 = {if} (L.L.vis_badge_rear) (S.L.visvar_badge_rear) {else} (L.L.vis_badge_rear) 10 + (S.L.visvar_badge_rear) {endif} (L.L.vis_engine_type) 4 = (L.L.vis_engine_type) 12 = || {if} ' siedzenia euro 6 (L.L.vis_seat_type) 10 + (S.L.visvar_seat_type_back) {else} ' siedzenia euro 5 (L.L.vis_seat_type) (S.L.visvar_seat_type_back) {endif} ' 0 - hubner IST ' 1 - bode old ' 2 - bode new ' 3 - rawag ' 4 - isaf ' 5 - ventura ist ' 6 - hubner sst ' 7 - ventura sst ' 8 - hubner ast ' 9 - ventura ast (L.L.vis_doortype_1) 0 = (L.L.vis_doortype_1) 1 = || {if} 0 (S.L.visvar_doortype_1) {endif} (L.L.vis_doortype_1) 2 = (L.L.vis_doortype_1) 3 = || (L.L.vis_doortype_1) 4 = || {if} 1 (S.L.visvar_doortype_1) {endif} (L.L.vis_doortype_1) 5 = {if} 2 (S.L.visvar_doortype_1) {endif} (L.L.vis_doortype_1) 6 = (L.L.vis_doortype_1) 7 = || (L.L.vis_doortype_1) 8 = || (L.L.vis_doortype_1) 9 = || (L.L.vis_doortype_1) 10 = || {if} 3 (S.L.visvar_doortype_1) {endif} (L.L.vis_doortype_1) 11 = (L.L.vis_doortype_1) 12 = || (L.L.vis_doortype_1) 20 = || {if} 5 (S.L.visvar_doortype_1) {endif} (L.L.vis_doortype_1) 13 = {if} 6 (S.L.visvar_doortype_1) {endif} (L.L.vis_doortype_1) 14 = (L.L.vis_doortype_1) 15 = || (L.L.vis_doortype_1) 16 = || (L.L.vis_doortype_1) 21 = || {if} 7 (S.L.visvar_doortype_1) {endif} (L.L.vis_doortype_1) 17 = {if} 8 (S.L.visvar_doortype_1) {endif} (L.L.vis_doortype_1) 18 = {if} 9 (S.L.visvar_doortype_1) {endif} (L.L.vis_doortype_2) 0 = (L.L.vis_doortype_2) 1 = || {if} 0 (S.L.visvar_doortype_2) {endif} (L.L.vis_doortype_2) 2 = (L.L.vis_doortype_2) 3 = || (L.L.vis_doortype_2) 4 = || {if} 1 (S.L.visvar_doortype_2) {endif} (L.L.vis_doortype_2) 5 = {if} 2 (S.L.visvar_doortype_2) {endif} (L.L.vis_doortype_2) 6 = (L.L.vis_doortype_2) 7 = || (L.L.vis_doortype_2) 8 = || (L.L.vis_doortype_2) 9 = || (L.L.vis_doortype_2) 10 = || {if} 3 (S.L.visvar_doortype_2) {endif} (L.L.vis_doortype_2) 11 = (L.L.vis_doortype_2) 12 = || (L.L.vis_doortype_2) 20 = || {if} 5 (S.L.visvar_doortype_2) {endif} (L.L.vis_doortype_2) 13 = {if} 6 (S.L.visvar_doortype_2) {endif} (L.L.vis_doortype_2) 14 = (L.L.vis_doortype_2) 15 = || (L.L.vis_doortype_2) 16 = || (L.L.vis_doortype_2) 21 = || {if} 7 (S.L.visvar_doortype_2) {endif} (L.L.vis_doortype_2) 17 = {if} 8 (S.L.visvar_doortype_2) {endif} (L.L.vis_doortype_2) 18 = {if} 9 (S.L.visvar_doortype_2) {endif} (L.L.vis_doortype_3) 0 = (L.L.vis_doortype_3) 1 = || {if} 0 (S.L.visvar_doortype_3) {endif} (L.L.vis_doortype_3) 2 = (L.L.vis_doortype_3) 3 = || (L.L.vis_doortype_3) 4 = || {if} 1 (S.L.visvar_doortype_3) {endif} (L.L.vis_doortype_3) 5 = {if} 2 (S.L.visvar_doortype_3) {endif} (L.L.vis_doortype_3) 6 = (L.L.vis_doortype_3) 7 = || (L.L.vis_doortype_3) 8 = || (L.L.vis_doortype_3) 9 = || (L.L.vis_doortype_3) 10 = || {if} 3 (S.L.visvar_doortype_3) {endif} (L.L.vis_doortype_3) 11 = (L.L.vis_doortype_3) 12 = || (L.L.vis_doortype_3) 20 = || {if} 5 (S.L.visvar_doortype_3) {endif} (L.L.vis_doortype_3) 13 = {if} 6 (S.L.visvar_doortype_3) {endif} (L.L.vis_doortype_3) 14 = (L.L.vis_doortype_3) 15 = || (L.L.vis_doortype_3) 16 = || (L.L.vis_doortype_3) 21 = || {if} 7 (S.L.visvar_doortype_3) {endif} (L.L.vis_doortype_3) 17 = {if} 8 (S.L.visvar_doortype_3) {endif} (L.L.vis_doortype_3) 18 = {if} 9 (S.L.visvar_doortype_3) {endif} (L.L.vis_doortype_4) 0 = (L.L.vis_doortype_4) 1 = || {if} 0 (S.L.visvar_doortype_4) {endif} (L.L.vis_doortype_4) 2 = (L.L.vis_doortype_4) 3 = || (L.L.vis_doortype_4) 4 = || {if} 1 (S.L.visvar_doortype_4) {endif} (L.L.vis_doortype_4) 5 = {if} 2 (S.L.visvar_doortype_4) {endif} (L.L.vis_doortype_4) 6 = (L.L.vis_doortype_4) 7 = || (L.L.vis_doortype_4) 8 = || (L.L.vis_doortype_4) 9 = || (L.L.vis_doortype_4) 10 = || {if} 3 (S.L.visvar_doortype_4) {endif} (L.L.vis_doortype_4) 11 = (L.L.vis_doortype_4) 12 = || (L.L.vis_doortype_4) 20 = || {if} 5 (S.L.visvar_doortype_4) {endif} (L.L.vis_doortype_4) 13 = {if} 6 (S.L.visvar_doortype_4) {endif} (L.L.vis_doortype_4) 14 = (L.L.vis_doortype_4) 15 = || (L.L.vis_doortype_4) 16 = || (L.L.vis_doortype_4) 21 = || {if} 7 (S.L.visvar_doortype_4) {endif} (L.L.vis_doortype_4) 17 = {if} 8 (S.L.visvar_doortype_4) {endif} (L.L.vis_doortype_4) 18 = {if} 9 (S.L.visvar_doortype_4) {endif} (L.L.vis_doortype_1) 19 = {if} 10 (S.L.visvar_doortype_1) {endif} (L.L.vis_doortype_2) 19 = {if} 10 (S.L.visvar_doortype_2) {endif} (L.L.vis_doortype_3) 19 = {if} 10 (S.L.visvar_doortype_3) {endif} (L.L.vis_doortype_4) 19 = {if} 10 (S.L.visvar_doortype_4) {endif} (L.L.schedule_active) {if} (L.L.vis_dashboard_type_plus1) (S.L.visvar_schedule_active) {else} 0 (S.L.visvar_schedule_active) {endif} (L.L.vis_dashboard_type) 5 = {if} (L.L.vis_TD_classic_door_buttons) {if} 2 (S.L.visvar_TD_classic_door_buttons) {else} (L.L.TD_buttons_visible) (S.L.visvar_TD_classic_door_buttons) {endif} {else} 0 (S.L.visvar_TD_classic_door_buttons) {endif} {end} '---------------------------------- 'Crash: {trigger:collision} {end} '---------------------------------- 'malfunction reset: {trigger:malfunction_reset} 1.0 (S.L.elec_V_battery) 80 (S.L.engine_temperature) (S.L.antrieb_temperature) 250 (S.L.engine_tank_content) 0 (S.L.oil_pressure_sensor_failed) (S.L.pressure_sensors_failed) (S.L.Fail_EDC_AccelContr_true) 0 (S.L.Fail_Gelenk_true) (S.L.Fail_Dachluk_true) (S.L.Fail_ECAS_true) 0 (S.L.Fail_Fire_true) (S.L.Fail_BrakeFluid_true) (S.L.Fail_Coolant_true) 0 (S.L.oil_level_sensor_failed) (S.L.Fail_ABSASR_true) (S.L.Fail_Getriebe_true) 0 (S.L.Fail_BrakeLining_true) (S.L.Fail_Lubrication_true) (S.L.Fail_Alternator_true) 0 (S.L.Fail_AVSEPS_true) (S.L.Fail_EDC_AccelContr_true) (S.L.Fail_FPS_true) 0 (S.L.Fail_FSS_true) (S.L.Fail_ABScheck_true) (S.L.Fail_MTS_true) 0 (S.L.Fail_HVAC_true) (S.L.Fail_Lighting_true) (S.L.Fail_Filter_true) 0 (S.L.Fail_Hydrostat_true) (S.L.Fail_ACC_true) (S.L.Fail_Haltbrake_true) 0 (S.L.Fail_Lighting2_true) (S.L.Fail_Sensorik_true) (S.L.Fail_Parkbrake_true) 0 (S.L.Fail_MUX_true) (S.L.Fail_VelocSensor_true) (S.L.Fail_EBS_true) 0 (S.L.Fail_webasto_true) (S.L.Fail_AC_true) (S.L.tank_sensor_failed) 0 (S.L.webasto_tank_sensor_failed) (S.L.Fail_FuelFilter_true) (S.L.coolant_temperature_sensor_failed) 0 (S.L.AdBlue_sensor_failed) (S.L.Fail_ZBR_true) (S.L.Fail_TCO_true) 0 (S.L.oil_level_sensor_failed) (S.L.Engine_DPF_state) 8 (S.L.oil_level) 20 (S.L.webasto_tank_content) 40 (S.L.AdBlue_level) {end}