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

Tr_SMS (
Skip (
	V63 sorozatu mozdony belso hangok - SMS script V1.0
	Hangfelvetelek + SMS scripting: JImre (jimre@para.chem.elte.hu)

	Ismert problemak, hianyossagok:
	- Gyenge minosegu a TC motorok hangmintaja.
	- A szellozo csak a menetszabalyzo kontrollerrel aktivizalhato.
	- A szellozo mukodese nem mindig kovetkezetes
	- A villamos fekkar hangja es az ebersegi pedal hangja neha raduplaz.

	Nem javithato hibak/hianyossagok:
	- Az MSTS hibaja miatt villamos fekuzem lehuzott aramszedo mellett is lehetseges.
	- Mivel az MSTS az aramszedo kapcsolo kezelese utan rogton engedelyezi a menetuzemet, ezert
          a vontatas a bekapcsolasi hangok lejatszasa elott/kozben mar lehetseges.
	- Az MSTS hibaja miatt a legsurito lehuzott aramszedo mellett is mukodik.
	- Az MSTS hibaja miatt a kiegeszito feknek csak az elso befekezeskor van hangja, sem oldaskor,
          sem pedig ujabb fekezeskor nincs!
	- Az MSTS jelenlegi verziojaban nincs a gyorsfekezeshez kulon hangminta.
	- Az MSTS hibaja miatt a mozdony fekoldo pedalja is az atmeno fek oldasi hangjaval megegyezo
          hangot valt ki. Ha a fekoldo pedallal feloldjuk a mozdonyt, akkor mar nem lesz a vonat
          feloldasahoz hang.
	- Valoszinuleg az MSTS hibaja miatt szetesik a hang esemenyek szinkronja a kulso es a belso nezetek kozott.
	- Az SL1 es SL3 hangmintak nem elethuek, a modell hasznalatahoz az SL5 beallitas javasolt:
              Options -> Sound -> Quantity of sounds -> High
)

	Skip ( ** SL 5 sounds - 1. Vontatomotor szellozo hangja                                 ** )
	Skip ( **             - 2. Tirisztorszellozo + fomegszakito + aramszedo vezerles hangja ** )
	Skip ( ** Quantity of - 3. Menetuzem motorhangja                                        ** )
	Skip ( **  sound:     - 4. Fekuzem motorhangja                                          ** )
	Skip ( **   HIGH      - 5. villamos fekkar es a fek szellozo hangja                     ** )
	Skip ( **             - 6. Fojtotekercs hangja                                          ** )
	Skip ( **             - 7. Teloc ketyeges                                               ** )
	Skip ( **             - 8. Legsurito hangja                                             ** )
	Skip ( **             - 9. Fekek levegos hangjai                                        ** )
	Skip ( **             - 10. Iranyvalto, vilagitas kapcsolo, ebersegi pedal              ** )
	Skip ( **             - 11. Homokolo hangja                                             ** )
	Skip ( **             - 12. Kurt lejatszasa                                             ** )
	Skip ( **             - 13. Sip lejatszasa                                              ** )
	Skip ( **             - 14. Ablaktorlo hangok                                           ** )
	Skip ( **             - 15. Ebersegi kurt hangja                                        ** )
	ScalabiltyGroup( 5
		Activation (
			CabCam ()
			Distance (100)
		)
		Deactivation (
			ExternalCam ()
			PassengerCam ()
			Distance (100)
		)
		Volume( 1.0 )
		Streams ( 18
			Skip ( V/1. Szellozo hangja )
			Stream (
				Volume( 0.4 )
				Priority ( 6 )
				Triggers ( 3
				Discrete_Trigger ( 23 PlayOneShot ( 1 File ( "msts_bdv_szellozo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 23 StartLoopRelease ( 1 File ( "msts_bdv_szellozo2.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )				
				Discrete_Trigger ( 24 ReleaseLoopRelease() )					
				)
			)

			Skip ( V/2. Tirisztorszellozo + fomegszakito + aramszedo vezerles hangja )
			Stream (
				Priority ( 7 )
				Triggers ( 5
					Discrete_Trigger ( 47	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 45	PlayOneShot ( 1	File ( "MSTS_V63_aramszedo_fel.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 151	PlayOneShot ( 1	File ( "MSTS_V63_fomegszakito_be.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 150	PlayOneShot ( 1	File ( "MSTS_V63_fomegszakito_ki.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 46	PlayOneShot ( 1	File ( "MSTS_V63_aramszedo_le.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
			)

			Skip ( V/3. Menetuzem motorhangja )
			Skip ( Variable1 - Menetszabalyzo kar kivezerlese 0...100 )
			Skip ( Variable2 - Motoraram a maximalis motoraram %-aban 0...100 )
			Skip ( 12. motorhang0-40 )
			Stream (
				Priority ( 4 )
				Triggers ( 15				
				Initial_Trigger ( StartLoop ( 1 File ( "..\\..\\common.snd\\V63\\H-MAVTR_V63_ujm.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Speed_Inc_Past  1.0 ReleaseLoopRelease () )
				Variable_Trigger ( Speed_Inc_Past  1.0 StartLoop ( 1 File ("..\\..\\common.snd\\V63\\H-MAVTR_V63_ujm.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Speed_Dec_Past  1.0 ReleaseLoopRelease () )
				Variable_Trigger ( Speed_Dec_Past  1.0 StartLoop ( 1 File ("..\\..\\common.snd\\V63\\H-MAVTR_V63_ujm.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )				
				Variable_Trigger ( Variable2_Inc_Past 15.00 SetStreamVolume ( 0.80 ) )
				Variable_Trigger ( Variable2_Inc_Past 10.00 SetStreamVolume ( 0.60 ) )
				Variable_Trigger ( Variable2_Inc_Past  5.00 SetStreamVolume ( 0.35 ) )
				Variable_Trigger ( Variable2_Inc_Past  1.00 SetStreamVolume ( 0.25 ) )
				Variable_Trigger ( Variable2_Inc_Past  0.01 SetStreamVolume ( 0.10 ) )
				Variable_Trigger ( Variable2_Dec_Past  0.01 SetStreamVolume ( 0.10 ) )
				Variable_Trigger ( Variable2_Dec_Past  1.00 SetStreamVolume ( 0.25 ) )
				Variable_Trigger ( Variable2_Dec_Past  5.00 SetStreamVolume ( 0.35 ) )
				Variable_Trigger ( Variable2_Dec_Past 10.00 SetStreamVolume ( 0.60 ) )
				Variable_Trigger ( Variable2_Dec_Past 15.00 SetStreamVolume ( 0.80 ) )
				)
				FrequencyCurve(
				SpeedControlled
				CurvePoints ( 5
						  -53.5		54000
						   -3.0		9000
						    0.0		3000
						    3.0		9000
						   53.5		54000
				              )
				Granularity ( 25 )
				)
				VolumeCurve(
				SpeedControlled
				CurvePoints ( 4
					 0.00	0.00
					 2.00	0.70
					10.00	0.50
					13.00	0.00
				            )
				 Granularity ( 0.01 )
				)
			)


			
Stream (
	Priority ( 6 )
	Triggers ( 2
	Discrete_Trigger ( 45 StartLoop ( 1 File ( "..\\..\\common.snd\\V63\\H-MAVTR_V63_ujm1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
	Discrete_Trigger ( 46 ReleaseLoopReleaseWithJump ( )	)
	)
	FrequencyCurve(
	SpeedControlled
	CurvePoints ( 3
	             -63.89	12000
	               0.00     100
	              63.89	12000
	              )
	Granularity ( 25 )
	)
	VolumeCurve (
	Variable2Controlled
	CurvePoints ( 5
	             0	0.00
	            10	0.40
	            20	0.60
	            25	0.75
	           100	1.00
	          )
	 Granularity ( 0.01 )
	)
)

			Skip ( V/5. tengelyhajtas hangja )
			Stream (

				Priority ( 6 )
				Triggers ( 5

					Initial_Trigger  ( StartLoop   ( 1 File ( "..\\..\\common.snd\\M41_cl\\x_menethang.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable3_Inc_Past 0.005 StartLoop   ( 1 File ( "..\\..\\common.snd\\M41_cl\\x_menethang.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable3_Inc_Past 0.050 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable3_Dec_Past 0.050 StartLoop   ( 1 File ( "..\\..\\common.snd\\M41_cl\\x_menethang.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable3_Dec_Past 0.005 ReleaseLoopRelease () )					
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-40.000	20000
						0.000		 2000
						40.000	20000
					)
					Granularity ( 100 )		
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						 
						 -50			1.0	
						 -5.0			0.5
						 0.000		0.0
						 5.0			0.5
						 50            	1.0
					)
					Granularity ( 0.05 )					
				
				)
			)

			Skip ( V/6. Fojtotekercs hangja )
			Stream (
				Priority ( 6 )
				Triggers ( 2
					Variable_Trigger ( Speed_inc_past 0.2 Startloop   ( 1 File ( "MSTS_V63_fojtotekercs.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_dec_past 0.2 ReleaseLoopReleaseWithJump () )	
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 2
						 0.0		0.0
						 100.0		2.0
					)
					Granularity ( 0.05 )
				)				
			)


			Skip ( V/7. Teloc ketyeges )
			Stream (
				Priority ( 6 )
				Triggers ( 2
					Variable_Trigger ( Speed_inc_past 1.0 Startlooprelease   ( 1 File ( "MSTS_V63_teloc.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_dec_past 1.0 ReleaseLoopRelease () )
				)			
			)

			Skip ( V/8.Legsurito hangja )
			Stream (
				Skip ( **** This stream allows the Sander to be played at the same time  	**** )
				Priority ( 5 )			
				Triggers ( 5				
					Discrete_Trigger (  12	StartLoopRelease ( 1	File ( "MSTS_BDV_legsurito.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  13	ReleaseLoopReleaseWithJump () )
					Skip ( Ha az aramszedo leereszkedik, a legsurito leall )
					Discrete_Trigger ( 150	ReleaseLoopReleaseWithJump () )	
					Discrete_Trigger ( 150	DisableTrigger ( 1 ) )	
					Skip ( Ha az aramszedo felmegy, akkor a legsurito ujra engedelyezve )
					Discrete_Trigger ( 152	EnableTrigger ( 1 ) )	
				)
			)


			Skip ( D12 kar )
			Stream (
				Priority ( 5 )
				Triggers ( 1
					Discrete_Trigger ( 17	PlayOneShot ( 1	File ( "..\\..\\common.snd\\D2\\fekezoszelep.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)
			Skip ( D12 fekezes )
			Stream (
				Priority ( 5 )
				Triggers ( 2
					Discrete_Trigger ( 142 	StartLoopRelease ( 1 File ( "..\\..\\common.snd\\D2\\szignalizator.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 143	ReleaseLoopReleaseWithJump ()	)						
				)
			)

			Skip ( D12 oldas )
			Stream (
				Priority ( 5 )
				Triggers ( 2					
					Discrete_Trigger ( 141	StartLoopRelease ( 1 File ( "..\\..\\common.snd\\D2\\szignalizator.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 143	ReleaseLoopRelease ( 1 File ( "..\\..\\common.snd\\D2\\oldas_vege.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 2
						   0.0		 13000
						  50.0		 13000
					)
					Granularity ( 100 )
				)
			)

			Skip ( Zbr )
			Stream (
				Priority ( 5 )
				Triggers ( 1
					Discrete_Trigger ( 18	PlayOneShot ( 1	File ( "..\\..\\common.snd\\Zbr\\Zbr.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )	
				)
			)

			SKip ( V/10. Iranyvalto, vilagitas kapcsolo, ebersegi pedal )
			Stream (
				Priority ( 5 )
				Triggers ( 5
					Skip ( 15 - Iranyvalto )
					Discrete_Trigger ( 15	PlayOneShot ( 1	File ( "MSTS_V63_iranyvalto.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )
					Skip ( 37 - Vilagitas kapcsolo )
					Discrete_Trigger ( 37	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Skip ( 48 - Ebersegi pedal - trukkozni kell, hogy csak a lenyomaskor legyen hang! )
					Discrete_Trigger ( 48	PlayOneShot ( 1	File ( "MSTS_V63_ebersegi_pedal.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 48	DisableTrigger ( 3 ) )
					Random_Trigger (
						Delay_Min_Max( 2 2 )
						Volume_Min_Max( 1.0 1.0 )
						EnableTrigger( 3 )
					)
				)
			)

			Skip ( V/11. Homokolo hangja )
			Stream (
				Priority ( 5 )			
				Triggers ( 2				
					Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "MSTS_V63_homokolo.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopReleaseWithJump () )	
				)
			)

			Skip ( V/12. Kurt lejatszasa )
			Stream (
				Priority ( 5 )
				Triggers ( 2
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "MSTS_BDV_KURT.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 9	ReleaseLoopReleaseWithJump ()	)
				)
			)
			Skip ( V/13. Sip lejatszasa )
			Stream (
				Priority ( 5 )
				Triggers ( 2
					Discrete_Trigger ( 10	StartLoopRelease ( 1	File ( "MSTS_V63_sip.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 11	ReleaseLoopReleaseWithJump ()	)
				)
			)

			Skip ( V/14. Ablaktorlo hangok )
			Stream(
				Priority ( 5 )
				Triggers( 4
					Discrete_Trigger ( 6	PlayOneShot ( 1 File ( "MSTS_V63_ablaktorlo_indul.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 6	StartLoopRelease ( 1 File ( "MSTS_V63_ablaktorlo_jar.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 7	ReleaseLoopRelease() ) 
					Discrete_Trigger ( 7	PlayOneShot ( 1 File ( "MSTS_V63_ablaktorlo_leall.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)				
			)

			Skip ( V/15. Ebersegi kurt hangja )
			Stream(
				Priority ( 6 )
				Triggers( 4
					Discrete_Trigger ( 56	SetStreamVolume ( 1.0 ) )
					Discrete_Trigger ( 56	StartLoopRelease ( 1 File ( "MSTS_V63_ebersegi_kurt2.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 57	SetStreamVolume ( 0.0 ) )
					Discrete_Trigger ( 57	ReleaseLoopRelease() ) 
				)				
			)

		)
	)


	Skip ( ** SL 3 sounds - 1. Vontatomotor szellozo hangja                                 ** )
	Skip ( **             - 2. Tirisztorszellozo + fomegszakito + aramszedo vezerles hangja ** )
	Skip ( ** Quantity of - 3. Menetuzem motorhangja                                        ** )
	Skip ( **  sound:     - 4. Fekek levegos hangjai                                        ** )
	Skip ( **  MEDIUM     - 5. Kurt lejatszasa                                              ** )
	Skip ( **             - 6. Sip lejatszasa                                               ** )
	Skip ( **             - 7. Homokolo hangja                                              ** )
	Skip ( **             - 8. Altalanos kapcsolo hangok                                    ** )
	Skip ( **             - 9. Ebersegi kurt hangja                                         ** )
	ScalabiltyGroup( 3
		Activation (
			CabCam ()
			Distance ( 100 )
		)
		Deactivation (
			ExternalCam ()
			PassengerCam ()
			Distance (100)
		)
		Stereo ()
		Volume( 1.0 )
		Streams ( 9
			Skip ( III/1. Szellozo hangja )
			Stream (
				Priority ( 7 )
				Triggers ( 21
					Skip ( Alaphelyzetben a szellozo leallitasi folyamat letiltva )
			Skip (	1 )	Initial_Trigger ( DisableTrigger( 16 ) )
			Skip (	2 )	Initial_Trigger ( DisableTrigger( 17 ) )
			Skip (	3 )	Initial_Trigger ( DisableTrigger( 18 ) )
					Skip ( Ha az aramszedo lemegy /46/, akkor a szellozes megall )
			Skip (	4 )	Discrete_Trigger ( 46	EnableTrigger ( 9 ) ) Skip ( Release )
			Skip (	5 )	Discrete_Trigger ( 46	DisableTrigger ( 10 ) )	Skip ( Szell hang )
			Skip (	6 )	Discrete_Trigger ( 46	ReleaseLoopRelease () )	
					Skip ( Aramszedo felmegy, szellozo engedelyezve )
			Skip (	7 )	Discrete_Trigger ( 45	EnableTrigger ( 9 ) )  Skip ( Release )
			Skip (	8 )	Discrete_Trigger ( 45	EnableTrigger ( 10 ) )  Skip ( Szell hang )
					Skip ( Kontroller kivezerlese utan indithato a szellozo )
			Skip (	9 )	Variable_Trigger ( Variable2_inc_past 1 ReleaseLoopRelease () )
			Skip (	10 )	Variable_Trigger ( Variable2_inc_past 1 StartLoopRelease ( 1 File ( "MSTS_BDV_szellozo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
			Skip (	11 )	Variable_Trigger ( Variable2_inc_past 1 DisableTrigger ( 9 ) ) Skip ( Release )
			Skip (	12 )	Variable_Trigger ( Variable2_Inc_Past 1 DisableTrigger ( 10 ) ) Skip ( Szell hang )
					Skip ( Ha mozog a gep, akkor a szellozo leallitasi folyamat letiltva )
			Skip (	13 )	Variable_Trigger ( Speed_inc_past 0.1 DisableTrigger ( 16 ) ) Skip ( 30s utan szellozo leallitas )
			Skip (	14 )	Variable_Trigger ( Speed_inc_past 0.1 DisableTrigger ( 17 ) ) Skip ( 30s utan release engedelyezes )
			Skip (	15 )	Variable_Trigger ( Speed_inc_past 0.1 DisableTrigger ( 18 ) ) Skip ( 30s utan szellozo hang engedelyezes )

					Skip ( Megallas utan 30s-mal kikapcsolja a szellozot )
			Skip (	16 )	Random_Trigger(
						Delay_Min_Max( 30  31 )
						Volume_Min_Max( 1.0 1.0 )
						ReleaseLoopRelease () Skip ( Szellozo leallitas )
					)
			Skip (	17 )	Random_Trigger(
						Delay_Min_Max( 30  31 )
						Volume_Min_Max( 1.0 1.0 )
						EnableTrigger( 9 ) Skip ( Release engedelyezes )
					)
			Skip (	18 )	Random_Trigger(
						Delay_Min_Max( 30  31 )
						Volume_Min_Max( 1.0 1.0 )
						EnableTrigger( 10 ) Skip ( Szellozo hang ujra engedelyezes )
					)
			Skip (	19 )	Variable_Trigger ( Speed_Dec_Past 0.01 EnableTrigger( 16 ) ) Skip ( 30s Leallitas engedelyezes )
			Skip (	20 )	Variable_Trigger ( Speed_Dec_Past 0.01 EnableTrigger( 17 ) ) Skip ( 30s Release engedelyezes )
			Skip (	21 )	Variable_Trigger ( Speed_Dec_Past 0.01 EnableTrigger( 18 ) ) Skip ( 30s Szellozo hang ujra engedelyezes )
				)
			)

			Skip ( III/2. Tirisztorszellozo + fomegszakito + aramszedo vezerles hangja )
			Stream (
				Priority ( 7 )
				Triggers ( 8
					Initial_Trigger  ( StartLoop   ( 1 File ( "MSTS_BDV_szellozo2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 47	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 45	PlayOneShot ( 1	File ( "MSTS_V63_aramszedo_fel.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 45	PlayOneShot ( 1	File ( "MSTS_V63_fomegszakito_be.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 45	StartLoopRelease ( 1	File ( "MSTS_BDV_szellozo2.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 46	ReleaseLoopReleaseWithJump () )	
					Discrete_Trigger ( 46	PlayOneShot ( 1	File ( "MSTS_V63_fomegszakito_ki.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 46	PlayOneShot ( 1	File ( "MSTS_V63_aramszedo_le.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
			)

			Skip ( III/3. Menetuzem motorhangja )
			Skip ( Variable1 - Menetszabalyzo kar kivezerlese 0...100 )
			Skip ( Variable2 - Motoraram a maximalis motoraram %-aban 0...100 )
			Stream (
				Priority ( 4 )
				Triggers ( 2
					Variable_Trigger ( Speed_inc_past 0.1 Startloop   ( 1 File ( "bdv_motorhang.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_dec_past 0.1 ReleaseLoopReleaseWithJump () )	
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 2
						 0.0		8500
						 40.0		15000
					)
					Granularity ( 0.05 )
				)				
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 2
						 0.0		0.0
						 100.0		1.0
					)
					Granularity ( 0.05 )
				)				
			)

			Skip ( III/4. Fekek levegos hangjai )
			Skip ( FONTOS! Az EnableTrigger/DisableTrigger RELATIV hivatkozasokkal dolgozik )
			Skip ( 17 - D15 fekkar "racsni" hangja )
			Skip ( 14 - D15 fekezes )
			Skip ( 54 - D15 oldas )
			Skip ( 18 - Kiegeszito fekkar hangja, erre definialtam a fekezes hangjat )
			Skip ( 21, 22 - Kiegeszito fek oldas es fekezes, de sosem adta be a program )
			Stream (
				Priority ( 5 )
				Triggers ( 8
					Discrete_Trigger ( 17	PlayOneShot ( 1	File ( "MSTS_bdv_fek_kattanas.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 18	PlayOneShot ( 1	File ( "MSTS_V63_kiegeszito_fek_fekez.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 14	PlayOneShot ( 1 File ( "MSTS_BDV_fek.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 14	DisableTrigger ( 3 ) )
					Discrete_Trigger ( 14	EnableTrigger ( 6 ) )
					Discrete_Trigger ( 54	PlayOneShot ( 1 File ( "MSTS_BDV_fek_old.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 54	DisableTrigger ( 6 ) )
					Discrete_Trigger ( 54	EnableTrigger ( 3 ) )
				)
			)

			Skip ( III/5. Kurt lejatszasa )
			Stream (
				Priority ( 5 )
				Triggers ( 2
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "MSTS_BDV_KURT.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 9	ReleaseLoopReleaseWithJump ()	)
				)
			)

			Skip ( III/6. Sip lejatszasa )
			Stream (
				Priority ( 5 )
				Triggers ( 2
					Discrete_Trigger ( 10	StartLoopRelease ( 1	File ( "MSTS_V63_sip.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 11	ReleaseLoopReleaseWithJump ()	)
				)
			)

			Skip ( III/7. Homokolo hangja )
			Stream (
				Priority ( 5 )			
				Triggers ( 2				
					Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "MSTS_V63_homokolo.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopReleaseWithJump () )	
				)
			)
			
			Skip ( III/8. Altalanos kapcsolo hangok )
			Stream (
				Priority ( 5 )
				Triggers ( 8
					Skip ( Ablaktorlo )
					Discrete_Trigger (  6	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  7	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Iranyvalto )
					Discrete_Trigger ( 15	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Menetszabalyzo kar )
					Discrete_Trigger ( 16	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Villamos fek kar )
					Discrete_Trigger ( 20	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Vilagitas kapcsolo )
					Discrete_Trigger ( 37	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Aramszedo kapcsolo )
					Discrete_Trigger ( 47	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Ebersegi pedal )
					Discrete_Trigger ( 48	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)

			Skip ( III/9. Ebersegi kurt hangja )
			Stream(
				Priority ( 6 )
				Triggers( 4
					Discrete_Trigger ( 56	SetStreamVolume ( 1.0 ) )
					Discrete_Trigger ( 56	StartLoopRelease ( 1 File ( "MSTS_V63_ebersegi_kurt.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 57	SetStreamVolume ( 0.0 ) )
					Discrete_Trigger ( 57	ReleaseLoopRelease() ) 
				)				
			)
		)
	)

	Skip ( ** SL 1 sounds - 1. Menetuzem motorhangja     ** )
	Skip ( ** Quantity of - 2. Kurt lejatszasa           ** )
	Skip ( **  sound:     - 3. Sip lejatszasa            ** )
	Skip ( **    LOW      - 4. Altalanos kapcsolo hangok ** )
	ScalabiltyGroup( 1
		Activation (
			CabCam ()
			Distance (100)
		)
		Deactivation (
			ExternalCam ()
			PassengerCam ()
			Distance (100)
		)
		Stereo ()
		Volume( 1.0 )
		Streams ( 4
			Skip ( I/1. Menetuzem motorhangja )
			Stream (
				Priority ( 4 )
				Triggers ( 2
					Variable_Trigger ( Speed_inc_past 0.1 Startloop   ( 1 File ( "bdv_motorhang.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_dec_past 0.1 ReleaseLoopReleaseWithJump () )	
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 2
						 0.0		8500
						 40.0		15000
					)
					Granularity ( 0.05 )
				)				
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 2
						 0.0		0.0
						 100.0		1.0
					)
					Granularity ( 0.05 )
				)				
			)

			Skip ( I/2. Kurt lejatszasa )
			Stream (
				Priority ( 5 )
				Triggers ( 2
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "MSTS_BDV_kurt.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 9	ReleaseLoopReleaseWithJump ()	)
				)
			)

			Skip ( I/3. Sip lejatszasa )
			Stream (
				Priority ( 5 )
				Triggers ( 2
					Discrete_Trigger ( 10	StartLoopRelease ( 1	File ( "MSTS_V63_sip.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 11	ReleaseLoopReleaseWithJump ()	)
				)
			)

			Skip ( I/4. Altalanos kapcsolo hangok )
			Stream (
				Priority ( 5 )
				Triggers ( 14
					Skip ( Homokolo )
					Discrete_Trigger (  4	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Ablaktorlo )
					Discrete_Trigger (  6	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  7	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Fek )
					Discrete_Trigger ( 14	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 17	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 54	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Iranyvalto )
					Discrete_Trigger ( 15	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Menetszabalyzo kar )
					Discrete_Trigger ( 16	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Kiegeszito fek kar )
					Discrete_Trigger ( 18	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Villamos fek kar )
					Discrete_Trigger ( 20	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Vilagitas kapcsolo )
					Discrete_Trigger ( 37	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Aramszedo kapcsolo )
					Discrete_Trigger ( 47	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Skip ( Ebersegi pedal )
					Discrete_Trigger ( 48	PlayOneShot ( 1	File ( "MSTS_V63_kapcsolo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)
		)
	)
)
