setaccTime 1
_camera = "camera" camCreate [8388.39,4348.80,0.74] 
_camera cameraEffect ["internal","back"]

zast = 1
bus lock true
; Nastup

playmusic ["Rtrack7",0]

;Nastupuje
_camera camSetTarget Bus
_camera camSetRelPos [-6.81,17.27,4.31]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera



~8
? Zast == 1 : goto "PoDruhe"
? Zast == 3 : goto "Konec"
; Zadna kamera - uz tam skoro je...

? Zast == 2 : goto "PoDruhe"



; Nastoupil na prvni  zastavce...

Bus setpos GetMarkerpos "W1"
Bus setdir 100

;=== 10:59:08
_camera camSetTarget Bus
_camera camSetPos [6203.99,4593.73,8.19]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
~30

titleCut ["","BLACK IN", 1]

;=== 23:07:53
_camera camSetTarget [105686.33,-9487.64,-14037.52]
_camera camSetPos [7664.06,4426.57,6.64]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera


~1

Bus setpos GetMarkerpos "W2"
Bus setdir 80

@Zast==2

~15

#PoDruhe


Bus setpos GetMarkerpos "W3"
Bus setdir 45



;*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Zpravy v radiu*-*-*-*-*-*-**-*-*-*-


;silnice 
_camera camSetTarget [-85157.67,-23554.93,-18890.43]
_camera camSetPos [8695.30,5276.23,3.81]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

;posunuli jsme se nad silnici
_camera camSetTarget [-66135.64,-54620.83,-28405.57]
_camera camSetPos [8688.42,5289.29,2.25]
_camera camSetFOV 0.700
_camera camCommit 8
~6
3.5 fademusic 0
@camCommitted _camera

~1.5
titleCut ["","BLACK IN", 1]

? pump1 or pump2 : goto "Ende"

playmusic ["Rtrack9",8]
0 fademusic 0.6
;*-*-*-*-*-*-*-*-*-*-*-*-*-*-KAMERA SENSOR 1 *-*-*-*-*-*-*-*-*-*-*-*


	;na Trosku a na spolujezdce
	prvni = true
	_who = bus;

	_dx = 1.57;
	_dy = -1.05;
	_dz = 2.5;


	#LOOP

	;=== 17:26:18
	_camera camSetTarget _who
	_camera camSetPos [(getpos _who select 0) + _dx * sin (getdir _who) - _dy * cos (getdir _who), (getpos _who select 1) + _dx * cos (getdir _who) + _dy * sin (getdir _who), (getpos _who select 2)+_dz]
	_camera camSetFOV 0.700
	_camera camCommit 0
	@camCommitted _camera

	? prvnikonec : goto "Pryc"
	goto "LOOP"
	#Pryc

;*-*-*-*-*-*-*-*-*-*-*-*-*-*-KAMERA SENSOR 2 *-*-*-*-*-*-*-*-*-*-*-*


		;zaber v busu na ridice
		druha = true
		_who = bus;

		_dx = 5.25;
		_dy = 0;
		_dz = 2.15;

		#LOOP2

		;=== 17:26:18
		_camera camSetTarget _who
		_camera camSetPos [(getpos _who select 0) + _dx * sin (getdir _who) - _dy * cos (getdir _who), (getpos _who select 1) + _dx * cos (getdir _who) + _dy * sin (getdir _who), (getpos _who select 2)+_dz]
		_camera camSetFOV 0.700
		_camera camCommit 0
		@camCommitted _camera

		? druhakonec : goto "Ven"
		goto "LOOP2"
		#Ven

;*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-KAMERA SENSOR 3 *-*-*-*-*-*-*-*-*-*-*-*
3 fademusic 0.2


			;troska mluvi
			treti = true
			_who = bus;

			_dx = 0;
			_dy = -2;
			_dz = 2.2;

			#LOOP3

			;=== 17:26:18
			_camera camSetTarget _who
			_camera camSetPos [(getpos _who select 0) + _dx * sin (getdir _who) - _dy * cos (getdir _who), (getpos _who select 1) + _dx * cos (getdir _who) + _dy * sin (getdir _who), (getpos _who select 2)+_dz]
			_camera camSetFOV 0.700
			_camera camCommit 0
			@camCommitted _camera

			? tretikonec : goto "Away"
			goto "LOOP3"
			#Away

;*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-KAMERA SENSOR 4 *-*-*-*-*-*-*-*-*-*-*-*	
	
				;na vsechny v buse - zacinaji zpravy
				ctvrta = true
				_who = bus;

				_dx = 0;
				_dy = 1.85;
				_dz = 2.3;


				#LOOP4


				;=== 17:26:18
				_camera camSetTarget _who
				_camera camSetPos [(getpos _who select 0) + _dx * sin (getdir _who) - _dy * cos (getdir _who), (getpos _who select 1) + _dx * cos (getdir _who) + _dy * sin (getdir _who), (getpos _who select 2)+_dz]
				_camera camSetFOV 0.700
				_camera camCommit 0
				@camCommitted _camera

				? ctvrtakonec : goto "Run"
				goto "LOOP4"
				#Run


;*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-KAMERA SENSOR 5 *-*-*-*-*-*-*-*-*-*-*-*

playmusic ["Rtrack5",6]
0 fademusic 0.3

;na vsechny v buse - po zpravach
pata = true
_who = bus;

_dx = 1.57;
_dy = -1.05;
_dz = 2.5;

#LOOP5

;=== 17:26:18
_camera camSetTarget _who
_camera camSetPos [(getpos _who select 0) + _dx * sin (getdir _who) - _dy * cos (getdir _who), (getpos _who select 1) + _dx * cos (getdir _who) + _dy * sin (getdir _who), (getpos _who select 2)+_dz]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

? patakonec : goto "Fun"
goto "LOOP5"
#Fun

;*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-KAMERA SENSOR 6 *-*-*-*-*-*-*-*-*-*-*-*


	;na ridice - po zpravach
	sesta = true
	_who = bus;

	_dx = 5.25;
	_dy = 0;
	_dz = 2.15;

	#LOOP6	


	;=== 17:26:18
	_camera camSetTarget _who
	_camera camSetPos [(getpos _who select 0) + _dx * sin (getdir _who) - _dy * cos (getdir _who), (getpos _who select 1) + _dx * cos (getdir _who) + _dy * sin (getdir _who), (getpos _who select 2)+_dz]
	_camera camSetFOV 0.700
	_camera camCommit 0
	@camCommitted _camera

	? sestakonec : goto "Dun"
	goto "LOOP6"
	#Dun


;*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-KAMERA SENSOR 7 *-*-*-*-*-*-*-*-*-*-*-*


		;na Viktora - po zpravach
		sedma = true
		_who = bus;

		_dx = -0.9;
		_dy = 0;
		_dz = 1.65;

		#LOOP7


		;=== 17:26:18
		_camera camSetTarget _who
		_camera camSetPos [(getpos _who select 0) + _dx * sin (getdir _who) - _dy * cos (getdir _who), (getpos _who select 1) + _dx * cos (getdir _who) + _dy * sin (getdir _who), (getpos _who select 2)+_dz]
		_camera camSetFOV 0.700
		_camera camCommit 0
		@camCommitted _camera

		? sedmakonec : goto "Gun"
		goto "LOOP7"
		#Gun



;-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-VYSTUPOVAT*-*-*-*-*-*-*-*-*-*-*-*-*-*

#Ende

;=== 12:13:38
_camera camSetTarget [65734.49,-79636.02,2262.09]
_camera camSetPos [10524.31,3714.64,4.35]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera


Hopla=true;
Bus setpos GetMarkerpos "W4"
Bus setdir 175

;=== 12:13:58
_camera camSetTarget [65619.57,-79462.53,-6621.80]
_camera camSetPos [10524.31,3714.64,32.84]
_camera camSetFOV 0.700
_camera camCommit 20

~10

@camCommitted _camera

"Konec"

player cameraEffect ["terminate","back"]
camDestroy _camera
