From c9bb746953a686c8a905eb3bee707895f2f9dae6 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 27 Jul 2024 01:42:57 +0100 Subject: [PATCH] Added sound switches for trams/roadvehs --- src/sounds_TRAM.pnml | 189 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 189 insertions(+) create mode 100644 src/sounds_TRAM.pnml diff --git a/src/sounds_TRAM.pnml b/src/sounds_TRAM.pnml new file mode 100644 index 00000000..63d54a9a --- /dev/null +++ b/src/sounds_TRAM.pnml @@ -0,0 +1,189 @@ +switch(FEAT_ROADVEHS,SELF,sw_TRAM_default_sound,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: SOUND_TRAIN_HORN; + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_defaultsteam_sound,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_TUNNEL: SOUND_TRAIN_THROUGH_TUNNEL; + SOUND_EVENT_START: SOUND_TRAIN; + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_dmu_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: sound("sfx/br_horn47.wav"); + SOUND_EVENT_VISUAL_EFFECT: sound("sfx/dmu_run.wav"); + SOUND_EVENT_STOPPED: sound("sfx/dmu_run_d2.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/dmu_run_d1.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_dmu_sound,param_sounds){ + 0: sw_TRAM_default_sound; + 1: sw_TRAM_dmu_sound_on; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_deltic_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: sound("sfx/br_horn1.wav"); + SOUND_EVENT_VISUAL_EFFECT: sound("sfx/deltic_run.wav"); + SOUND_EVENT_STOPPED: sound("sfx/deltic_stop.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/deltic_idle.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_deltic_sound,param_sounds){ + 0: sw_TRAM_default_sound; + 1: sw_TRAM_deltic_sound_on; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_20_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: sound("sfx/br_horn1.wav"); + SOUND_EVENT_VISUAL_EFFECT: sound("sfx/20_run.wav"); + SOUND_EVENT_STOPPED: sound("sfx/20_stop.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/20_idle.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_20_sound,param_sounds){ + 0: sw_TRAM_default_sound; + 1: sw_TRAM_20_sound_on; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_66_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: sound("sfx/br_horn66.wav"); + SOUND_EVENT_VISUAL_EFFECT: sound("sfx/66_run.wav"); + SOUND_EVENT_STOPPED: sound("sfx/66_stop.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/66_idle.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_66_sound,param_sounds){ + 0: sw_TRAM_default_sound; + 1: sw_TRAM_66_sound_on; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_steam_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_TUNNEL: sound("sfx/qr_whistle.wav"); + SOUND_EVENT_START: sound("sfx/qr_whistle.wav"); + SOUND_EVENT_VISUAL_EFFECT: sound("sfx/qr_chuff_1.wav"); + SOUND_EVENT_STOPPED: sound("sfx/steam_idle.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/steam_run.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_steam_sound,param_sounds){ + 0: sw_TRAM_defaultsteam_sound; + 1: sw_TRAM_steam_sound_on; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_ee_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: sound("sfx/br_horn1.wav"); + SOUND_EVENT_VISUAL_EFFECT: sound("sfx/ee_run.wav"); + SOUND_EVENT_STOPPED: sound("sfx/ee_stop.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/ee_idle.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_ee_sound,param_sounds){ + 0: sw_TRAM_default_sound; + 1: sw_TRAM_ee_sound_on; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_electric_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: sound("sfx/br_horn1.wav"); + SOUND_EVENT_STOPPED: sound("sfx/elen_stop.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/elen_idle.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_electric_sound,param_sounds){ + 0: sw_TRAM_default_sound; + 1: sw_TRAM_electric_sound_on; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_gronk_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: sound("sfx/gronk_whistle.wav"); + SOUND_EVENT_VISUAL_EFFECT: sound("sfx/ee_run.wav"); + SOUND_EVENT_STOPPED: sound("sfx/ee_stop.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/ee_idle.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_gronk_sound,param_sounds){ + 0: sw_TRAM_default_sound; + 1: sw_TRAM_gronk_sound_on; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_hst_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: sound("sfx/br_horn47.wav"); + SOUND_EVENT_VISUAL_EFFECT: sound("sfx/hst_run.wav"); + SOUND_EVENT_STOPPED: sound("sfx/dmu_run_d2.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/hst_idle.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_hst_sound,param_sounds){ + 0: sw_TRAM_default_sound; + 1: sw_TRAM_hst_sound_on; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_electrostar_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: sound("sfx/electrostar_depart.wav"); + SOUND_EVENT_STOPPED: sound("sfx/electrostar_moving.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/electrostar_wait.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_electrostar_sound,param_sounds){ + 0: sw_TRAM_default_sound; + 1: sw_TRAM_electrostar_sound_on; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_networker_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: sound("sfx/networker_depart.wav"); + SOUND_EVENT_STOPPED: sound("sfx/networker_wait.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/networker_moving.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_networker_sound,param_sounds){ + 0: sw_TRAM_default_sound; + 1: sw_TRAM_networker_sound_on; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_voyager_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: sound("sfx/voyager_depart.wav"); + SOUND_EVENT_VISUAL_EFFECT: sound("sfx/voyager_run.wav"); + SOUND_EVENT_STOPPED: sound("sfx/voyager_idle.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/voyager_idle.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_voyager_sound,param_sounds){ + 0: sw_TRAM_default_sound; + 1: sw_TRAM_voyager_sound_on; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_mtu_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: sound("sfx/mtu_depart.wav"); + SOUND_EVENT_VISUAL_EFFECT: sound("sfx/mtu_run.wav"); + SOUND_EVENT_STOPPED: sound("sfx/mtu_idle.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/mtu_coast.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_mtu_sound,param_sounds){ + 0: sw_TRAM_default_sound; + 1: sw_TRAM_mtu_sound_on; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_classic_emu_sound_on,getbits(extra_callback_info1, 0, 8)){ + SOUND_EVENT_START: sound("sfx/slammer_depart.wav"); + SOUND_EVENT_STOPPED: sound("sfx/slammer_idle.wav"); + SOUND_EVENT_RUNNING_16: sound("sfx/slammer_run.wav"); + SOUND_EVENT_BREAKDOWN: SOUND_TRAIN_BREAKDOWN; +} + +switch(FEAT_ROADVEHS,SELF,sw_TRAM_classic_emu_sound,param_sounds){ + 0: sw_TRAM_default_sound; + 1: sw_TRAM_classic_emu_sound_on; +}