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

Tr_SMS (

	ScalabiltyGroup( 5
		Activation (
			PassengerCam()
		)
		Deactivation (
			ExternalCam ()
			CabCam ()
		)
		Volume( 1.0 )

		Streams ( 13
			Stream (
				Skip ( hamulce-szum )
				Priority ( 8 )
				Volume ( 1 )
				Triggers ( 4
					Discrete_Trigger ( 14	SetStreamVolume ( 1 )	)
					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.00    0.00
						1		.2
						3		.4
						34		1
					)
                   Granularity  ( 0.01 )
				)
			)
			Stream (
				Skip ( silniki )
				Priority ( 8 )
				Volume ( 1 )
				Triggers ( 2
					Variable_Trigger ( Speed_Inc_Past .1
						StartLoopRelease ( 1
							File ( "motor.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Variable_Trigger ( Speed_Dec_Past .2 ReleaseLoopRelease () )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 7
						-31		44100
						-20		24000
						-12		10000
						0		0
						12		10000
						20		24000
						31		44100
					)
					Granularity ( .01 )
				)
				VolumeCurve (
					Variable2Controlled
					CurvePoints ( 4
						0		.3
						15		.6
						60		.75
						100		1
					)
				Granularity ( .05 )
				)
			)
			Stream (
				Skip ( przetwornica - jeśli prąd włączony )
				Priority ( 8 )
				Volume ( 0.2 )
				Triggers ( 4
					Discrete_Trigger ( 23	SetStreamVolume ( 0.2 ) )
					Discrete_Trigger ( 23
						StartLoopRelease ( 1
							File ( "1przetwornica.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 24	SetStreamVolume ( 0 ) )
					Discrete_Trigger ( 24	ReleaseLoopRelease () )
				)
			)

			Stream (
				Skip ( przetwornica -wyłączanie )
				Priority ( 8 )
				Volume ( 0.2 )
				Triggers ( 1
					Discrete_Trigger ( 24
						PlayOneShot ( 1
							File ( "1przetw-stop.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( drzwi otw )
				Priority ( 8 )
				Volume ( 0.2 )
				Triggers ( 1
					Discrete_Trigger ( 105
					PlayOneShot ( 1
						File ( "drzwio.wav" -1 )
						SelectionMethod ( SequentialSelection  )
						)
					)
				)
			)

			Stream (
				Skip ( drzwi zam )
				Priority ( 8 )
				Volume ( 0.2 )
				Triggers ( 1
					Discrete_Trigger ( 106
					PlayOneShot ( 1
						File ( "drzwiz.wav" -1 )
						SelectionMethod ( SequentialSelection  )
						)
					)
				)
			)

			Stream (
				Skip ( brzęczyk )
				Priority ( 8 )
				Volume ( 0.3 )
				Triggers ( 4
					Discrete_Trigger ( 4	SetStreamVolume ( 0.3 )	)
					Discrete_Trigger ( 4
						StartLoopRelease ( 1
							File ( "1brzeczyk.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 5	SetStreamVolume ( 0 )	)
					Discrete_Trigger (5	ReleaseLoopReleaseWithJump ()	)
				)
			)

			Stream (
				Skip ( brzęczyk -stop )
				Priority ( 8 )
				Volume ( 0.3 )
				Triggers ( 4
					Discrete_Trigger ( 5
						PlayOneShot ( 1
							File ( "1brz-stop-zewn.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)

			Stream (
				Skip ( startowy wstrząs )
				Priority ( 8 )
				Volume ( 0.5 )
				Triggers ( 1
					Variable_Trigger ( Speed_Inc_Past 0.01
						PlayOneShot ( 1
							File ( "starten.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)

			Stream (
				Skip ( Pisk hamulców - PKP Osobowe )
				Priority ( 8 )
				Volume ( 0.6 )
				Triggers ( 1
					Variable_Trigger ( Speed_Dec_Past  2.70
						PlayOneShot ( 1
							File ( "bremse_lang.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
                 )
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						0.00    0.00
						0.28    0.90
						0.84    0.70
						1.67    0.50
						2.50    0.30
					)
                   Granularity  ( 0.01 )
				)
			)
			Stream (
		       Skip ( stukot jazdy na niskich prędkościach )
				Priority ( 8 )
				Volume ( 0.5 )
				Triggers ( 1
					Variable_Trigger ( Speed_Inc_Past  0.1
						StartLoop ( 1
							File ( "jazda1.wav" -1 )	SelectionMethod ( SequentialSelection )
						)
					)
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
						-18			0.1
						-9			1.0
						-4			0.7
						0			0
						4			0.7
						9			1.0
						18			0.1  
					)
					Granularity ( 0.05 )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-9		44100
						0		5000
						9		44100
					)
					Granularity ( 0.1 )
				)
			)
			Stream (
		       Skip ( stukot jazdy na średnich prędkościach )
				Priority ( 8 )
				Volume ( 0.6 )
				Triggers ( 1
					Variable_Trigger ( Speed_Inc_Past  2
						StartLoop ( 1
							File ( "jazda2.wav" -1 )	SelectionMethod ( SequentialSelection )
						)
					)
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
						-28			0.1
						-22			1.0
						-10			0.7
						0			0
						10			0.7
						22			1.0
						28			0.1  
					)
					Granularity ( 0.05 )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-25		44100
						0		5000
						25		44100
					)
					Granularity ( 0.1 )
				)
			)
			Stream (
		       Skip ( stukot jazdy na wysokich prędkościach /jak dla kibla :D/ )
				Priority ( 8 )
				Volume ( 0.7 )
				Triggers ( 1
					Variable_Trigger ( Speed_Inc_Past  6
						StartLoop ( 1
							File ( "jazda3.wav" -1 )	SelectionMethod ( SequentialSelection )
						)
					)
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						-31			1.0
						-18			0.1
						0			0
						18			0.1
						31			1.0
					)
					Granularity ( 0.05 )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-31		44100
						0		5000
						31		44100
					)
					Granularity ( 0.1 )
				)
			)
		)
	)
)
