Skip to content

Commit

Permalink
Added sound switches for trams/roadvehs
Browse files Browse the repository at this point in the history
  • Loading branch information
audigex committed Jul 27, 2024
1 parent 0408fa4 commit c9bb746
Showing 1 changed file with 189 additions and 0 deletions.
189 changes: 189 additions & 0 deletions src/sounds_TRAM.pnml
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit c9bb746

Please sign in to comment.