SIMISA@@@@@@@@@@JINX0x1t______

Tr_SMS (

	ScalabiltyGroup( 5
		Activation (			ExternalCam ()		PassengerCam	()	Distance    	(1000)		)
		Deactivation (		CabCam			()						Distance    	(800)		)
		Streams ( 14
Stream (
				Skip ( **** Brake Squeal **** )				
				Priority ( 6 )			
				Triggers ( 7				
					Discrete_Trigger (  14	StartLoopRelease ( 1	File ( "..\\..\\SS4\\sound\\ss4_wu.wav" -1 )
SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Dec_Past 0.2	ReleaseLoopRelease ()	)
					Variable_Trigger ( Speed_Inc_Past 57.0	ReleaseLoopRelease ()	)
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						  -5.0		11000
						   0.0		9000
						   5.0		11000
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 9
                                                                                 -17.5                   1.0
						    -7.0                  0.8
						  -3.0		0.5
						  -0.1		0.3
						   0.0		0.0
						   0.1		0.3
						   3.0		0.5
                                            7.0                 0.8
                                                                           17.5                1.0
					)
					Granularity ( 0.05 )
				)				
			)
                       Stream (			
				Priority ( 6 )			
				Triggers ( 7				
					Discrete_Trigger (  14	StartLoopRelease ( 1	File ( "..\\..\\SS4\\sound\\ss4_6.wav" -1 )
                                SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Dec_Past 0.1	ReleaseLoopRelease ()	)
					Variable_Trigger ( Speed_Inc_Past 1.0	ReleaseLoopRelease ()	)
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
                                                                                       -7.0                    0.5
                                                                                       -4.0                    1.0
						   -1.0		 1.0
						    0.0		 0.0
						    1.0		 1.0
                                                                                        4.0                    1.0
                                                                                        7.0                    0.5
					)
					Granularity ( 0.05 )
				)				
			)			
Stream (
				Skip ( **** 2 - Dynamic brakes **** )
				Skip ( **** Frequency shift with speed, volume with negative current **** )
  				Priority ( 6 )
				Triggers ( 2
					Variable_Trigger ( Variable3_Inc_Past 0.10  StartLoopRelease   ( 1 File ( "..\\..\\SS4\\sound\\ss4_x1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable3_Dec_Past 0.10  ReleaseLoopRelease  () )					
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-60.0	 30500
						  0.0	  5000
						 60.0	 30500
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 6
						   0.0	            0.0
						   -5.0	0.1
						  -10.0	1.0
						  -25.0	1.0
						  -50.0	1.0
						 -100.0	1.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Skip ( **** This stream allows the Current to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger (  45	StartLoopRelease ( 1	File ( "..\\..\\SS4\\sound\\x_ss4_wind.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  46	ReleaseLoopReleaseWithJump () )	
				)
			)
			Stream (
				Skip ( **** This stream allows the horn to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "x_hxd3_horn.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 9	ReleaseLoopReleaseWithJump ()	)
				)
                                FrequencyCurve( Variable1Controlled CurvePoints ( 2 0.0	22050 1.0 22050 ) Granularity ( 0.01 ) )
			)
			Stream (
				Skip ( **** This stream allows the horn to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 10	StartLoopRelease ( 1	
													File ( "x_hxd3_HORN_LOW.wav" -1 )	
													SelectionMethod ( RandomSelection ) 
												)
								)

					Discrete_Trigger ( 11 	ReleaseLoopReleaseWithJump ()	)
				)
			)
			Stream (
				Skip ( **** This stream allows the Sander to be played at the same time  	**** )
				Priority ( 5 )			
				Triggers ( 2				
					Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "..\\..\\SS4\\sound\\X_ss4_sand.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)
			Stream (
				Skip ( **** This stream allows the Compressor to be played at the same time  	**** )				
				Priority ( 6 )			
				Triggers ( 2				
					Discrete_Trigger (  12	StartLoopRelease ( 1	File ( "..\\..\\SS4\\sound\\x_ss4_compressor.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  13	ReleaseLoopRelease () )	
				)
			)
			Stream (
				Skip ( **** This stream allows the Train Brake to be played at the same time  	**** )
				Priority ( 5 )
				Triggers ( 2				
					Skip ( **** Brake Normal Apply	**** )
					Discrete_Trigger (  53	
						PlayOneShot ( 3	
							File ( "..\\..\\SS4\\sound\\x_ss4_shache.wav" -1 )	
							File ( "..\\..\\SS4\\sound\\x_ss4_shache.wav" -1 )	
							File ( "..\\..\\SS4\\sound\\x_ss4_shache.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
					Skip ( **** Brake Emergency Apply	**** )
					Discrete_Trigger (  54	
						PlayOneShot ( 3	
							File ( "..\\..\\SS4\\sound\\x_ss4_shache.wav" -1 )	
							File ( "..\\..\\SS4\\sound\\x_ss4_shache.wav" -1 )	
							File ( "..\\..\\SS4\\sound\\x_ss4_shache.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
				)
			)
			
			Stream (
				Priority ( 6 )
				Triggers ( 6
					Discrete_Trigger ( 58 PlayOneShot ( 1 	File ( "..\\..\\SS4\\sound\\x_ss4_couple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 59 PlayOneShot ( 1 	File ( "..\\..\\SS4\\sound\\x_ss4_couple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 60 PlayOneShot ( 1 	File ( "..\\..\\SS4\\sound\\x_ss4_couple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 61 PlayOneShot ( 1 	File ( "..\\..\\SS4\\sound\\x_ss4_uncouple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 62 PlayOneShot ( 1 	File ( "..\\..\\SS4\\sound\\x_ss4_uncouple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 63 PlayOneShot ( 1 	File ( "..\\..\\SS4\\sound\\x_ss4_uncouple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)
			Stream (
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 45 PlayOneShot ( 1 	File ( "..\\..\\SS4\\sound\\x_SS4_strom_rauf.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 46 PlayOneShot ( 1 	File ( "..\\..\\SS4\\sound\\x_SS4_strom_runter.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)
		)
	)
	
	Skip( **** ******************************************* **** )
	Skip( **** Copy of Generic Electric SMS Used for SL 0  **** )
	Skip( **** ******************************************* **** )

	ScalabiltyGroup( 0
		Activation (	ExternalCam ()  CabCam	()	PassengerCam	()     Distance    	(500)	)
		Deactivation (				Distance    	(500)	)
		Streams ( 2
			Stream (
				Priority ( 6 )
				Triggers ( 2
					Variable_Trigger ( Distance_Dec_Past 120 PlayOneShot ( 1 File ( "x_hxd3_HORN.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past  0.05 PlayOneShot ( 1 File ( "x_hxd3_HORN.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
                                FrequencyCurve( Variable1Controlled CurvePoints ( 2 0.0	22050 1.0 22050 ) Granularity ( 0.01 ) )
			)
                        Stream (
				Priority ( 6 )
				Triggers ( 1
					Initial_Trigger ( StartLoopRelease   ( 1 File ( "..\\..\\SS4\\sound\\x_ss4_wind.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )	
				)				
			)
		)
	)
)


