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

Tr_SMS (
	ScalabiltyGroup( 5
		Activation (
			Distance	( 1500 )
			ExternalCam()
		)
		Deactivation (
			CabCam()
			PassengerCam()
			Distance	( 1500 )
		)

		Streams ( 10
			Stream (
				Skip ( sprzeganie/odsprzeganie )
				Priority ( 8 )
				Volume ( .4 )
				Triggers ( 6
					Discrete_Trigger ( 58
						PlayOneShot ( 1
							File ( "sprzeg_1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 59
						PlayOneShot ( 1
							File ( "sprzeg_1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 60
						PlayOneShot ( 1
							File ( "sprzeg_1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 61
						PlayOneShot ( 1
							File ( "rozprz_1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 62
						PlayOneShot ( 1
							File ( "rozprz_1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 63
						PlayOneShot ( 1
							File ( "rozprz_1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( zatrzymanie )
				Priority ( 8 )
				Volume ( .15 )
				Triggers ( 1
					Variable_Trigger ( Speed_Dec_Past  .05
						PlayOneShot ( 1
							File ( "wag-stop.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
                 )
			)
			Stream (
				Skip ( syk powietrza hamulców )
				Priority ( 8 )
				Volume ( .03 )
				Triggers ( 3
					Discrete_Trigger ( 14
						StartLoopRelease ( 1
							File ( "hamulec-sss.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 54
						StartLoopRelease ( 1
							File ( "hamulec-sss.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 139
						ReleaseLoopRelease ()
					)
                 )
			)
			Stream (
				Skip ( Pisk hamulców )
				Priority ( 8 )
				Volume ( .5 )
				Triggers ( 2
					Variable_Trigger ( BrakeCyl_Inc_Past  3
						StartLoopRelease ( 1
							File ( "pisk-hamulcow.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Variable_Trigger ( BrakeCyl_Dec_Past  2
						ReleaseLoopRelease ()
					)
                 )
				VolumeCurve (
					SpeedControlled
					CurvePoints ( 5
						-8	.1
						-4	1
						0	0
						4	1
						8 	.1
					)
                   Granularity  ( .01 )
				)
			)
			Stream (
				Skip ( hamulce-szum )
				Priority ( 8 )
				Triggers ( 4
					Discrete_Trigger ( 14	SetStreamVolume ( .3 )	)
					Discrete_Trigger ( 14
						StartLoopRelease ( 1
							File ( "hamulec.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)

					Discrete_Trigger ( 54	ReleaseLoopRelease ()	)
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
						-34		1
						-3		.4
						-1		.2
						0		0
						1		.2
						3		.4
						34		1
					)
                   Granularity  ( .01 )
				)
			)
			Stream (
				Skip ( start )
				Priority ( 8 )
				Volume ( .2 )
				Triggers ( 1
					Variable_Trigger ( Speed_Inc_Past  .01
						PlayOneShot ( 1
							File ( "TowarowyR2.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( naciagniecie wagonow )
				Priority ( 8 )
				Volume ( .4 )
				Triggers ( 2
					Variable_Trigger ( Speed_Inc_Past  .01
						StartLoopRelease ( 1
							File ( "naciagniecie.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Variable_Trigger ( Speed_Inc_Past 7
						ReleaseLoopRelease ()
					)
                 )
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						-7		0
						-2		1
						0		0
						2		1
						7		0
					)
                   Granularity  ( .1 )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-6		25000
						-2		22050
						0		20000
						2		22050
						6		25000
					)
					Granularity ( .1 )
				)
			)
			Stream (
		       Skip ( szum jazdy na niskich prędkościach )
				Priority ( 8 )
				Volume ( .4 )
				Triggers ( 1
					Variable_Trigger ( Speed_Inc_Past  .01
						StartLoop ( 1
							File ( "zaladowany_1.wav" -1 )	SelectionMethod ( SequentialSelection )
						)
					)
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
						-18		.1
						-9		1
						-6		.7
						0		0
						6		.7
						9		1
						18		.1  
					)
					Granularity ( .05 )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-20		56000
						-10		44100
						0		30000
						10		44100
						20		56000
					)
					Granularity ( .1 )
				)
			)
			Stream (
		       Skip ( szum jazdy na średnich prędkościach )
				Priority ( 8 )
				Volume ( .4 )
				Triggers ( 1
					Variable_Trigger ( Speed_Inc_Past 4
						StartLoop ( 1
							File ( "zaladowany_2.wav" -1 )	SelectionMethod ( SequentialSelection )
						)
					)
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
						-30		.1
						-20		1
						-8		.3
						0		0
						8		.3
						20		1
						30		.1  
					)
					Granularity ( .05 )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-19		44100
						0		11025
						19		44100
					)
					Granularity ( .1 )
				)
			)
			Stream (
		       Skip ( szum jazdy na wysokich prędkościach )
				Priority ( 8 )
				Volume ( .4 )
				Triggers ( 1
					Variable_Trigger ( Speed_Inc_Past  14
						StartLoop ( 1
							File ( "zaladowany_3.wav" -1 )	SelectionMethod ( SequentialSelection )
						)
					)
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						-32			1
						-15			.1
						0			0
						15			.1
						32			1
					)
					Granularity ( .05 )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-32		44100
						0		5000
						32		44100
					)
					Granularity ( .1 )
				)
			)
		)
	)
)
