setaccTime 1

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

aP allowdammage false
aP setPos getMarkerPos "tam"
kancl = true

titleCut ["","BLACK IN", 1]
playmusic ["Rtrack6",0]

sekret setPos [10861.010,3118.925,5.766];
sekret setDir 280;
sekret stop true

daber setspeedmode "limited"
daber setPos getMarkerPos "nam"
daber stop true
daber setDir 180;
daber stop false

;na radnici se shora
_camera camSetTarget [98481.55,2476.33,48287.56]
_camera camSetPos [10843.89,3125.10,2.28]
_camera camSetFOV 0.729
_camera camCommit 0
@camCommitted _camera



;na dvere
_camera camSetTarget [110840.92,2036.91,-43.03]
_camera camSetPos [10847.00,3126.07,4.57]
_camera camSetFOV 0.710
_camera camCommit 10
~3
daber move [10858.500,3118.89,5.766]
~9
titleCut ["","BLACK OUT", 1]
@camCommitted _camera


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

;na schodech
_camera camSetTarget [87961.70,-56279.67,23026.35]
_camera camSetPos [10848.53,3127.48,0.61]
_camera camSetFOV 1.074
_camera camCommit 0
@camCommitted _camera
~5


;od dveri do baraku
_camera camSetTarget [96610.79,53603.79,-9776.25]
_camera camSetPos [10857.31,3124.78,3.57]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera


daber stop true
daber setDir 90
daber setpos [10858.500,3118.89,5.766]
daber dowatch sekret

daber stop true

;=== 11:17:55
_camera camSetTarget [107569.96,15459.84,22389.05]
_camera camSetPos [10861.83,3127.87,4.20]
_camera camSetFOV 0.700
_camera camCommit 7

~6
10 fademusic 0
titleCut ["","BLACK OUT", 0.5]
@camCommitted _camera

;*-*-*-*-*-*-*-*-*-*-Ve vnitr v radnici*-*-*-*-*-*-*-*-*-*-*

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

sekret reveal daber
sekret dowatch daber


;uvnitr kanclu
_camera camSetTarget [60946.70,-65117.21,-53107.11]
_camera camSetPos [10858.28,3121.09,8.36]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

~1

daber say "M01v04"
~3.5
sekret say "M01v05"
~2.5
daber say "M01v06"
~3.5

playmusic ["Rtrack1a",0]
0 fademusic 0.5

;primo na nej se stolem
_camera camSetTarget [109847.47,5449.85,-13823.50]
_camera camSetPos [10853.91,3117.64,7.81]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
~0.2


;zaber na hodiny
_camera camSetTarget [110654.74,5950.37,-5522.03]
_camera camSetPos [10853.08,3125.39,14.74]
_camera camSetFOV 0.700
_camera camCommit 12

daber stop false
~3

goto "Skoc"
@camCommitted _camera

#Skoc
;zaber na hodiny
_camera camSetTarget [110654.74,5950.37,-5522.03]
_camera camSetPos [10853.08,3125.39,14.74]
_camera camSetFOV 0.700
_camera camCommit 0

daber stop true
daber setPos [10861.700,3116.985,5.766]
daber setDir 0
daber addweapon "phone"
daber switchmove "FXStandToTelHand"
sekret setPos getMarkerPos "nam"
sekret setunitPos "up"
sekret move getmarkerPos "w6"
tel1 setPos getMarkerPos "tam"
tel2_1 setPos [10860.050,3117.725,6.75000]
tel2_1 setDir 240

titleText [localize "STRD_D01n50", "Plain Down"]

_i = 0

#hod

~0.03
skipTime 0.018
_i = _i + 1 

? _i < 90 : goto "hod"

@camCommitted _camera

~1
daber stop true
;primo na nej se stolem
_camera camSetTarget [109847.47,5449.85,-13823.50]
_camera camSetPos [10853.91,3117.64,7.81]
_camera camSetFOV 0.700
_camera camCommit 10
~9
@camCommitted _camera


;*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Rozhovor s Liz*-*--*-*-*-*-*-*-*-*-*

2 fademusic 0.15

;od dveri
_camera camSetTarget [11802.27,-95463.07,-16590.05]
_camera camSetPos [10859.35,3122.16,7.17]
_camera camSetFOV 0.672
_camera camCommit 0
@camCommitted _camera



;primo stul
_camera camSetTarget [-4696.35,-94236.03,-16590.60]
_camera camSetPos [10860.06,3120.41,7.17]
_camera camSetFOV 0.700
_camera camCommit 10

~2
daber say "d01v33"

~5
daber say "d01v34"

~4
playSound "M01x02"

~4
daber say "d01v35"

@camCommitted _camera


;datail na Trosku za stolem
_camera camSetTarget [83822.31,-60823.75,-24109.42]
_camera camSetPos [10859.03,3118.36,7.57]
_camera camSetFOV 0.340
_camera camCommit 0
@camCommitted _camera



;=== 13:31:09
_camera camSetTarget [60878.32,-79403.73,-26099.04]
_camera camSetPos [10859.95,3118.94,7.57]
_camera camSetFOV 0.300
_camera camCommit 10
~6
daber say "d01v36"
5 fademusic 0

titleCut ["","BLACK OUT", 3]
~4
@camCommitted _camera


;*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**INVASION*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

setaccTime 1


daber stop true
daber setPos [10861.000,3116.905,5.766]
daber switchmove "FXSitHandsOnTable"
daber setDir 0
removeallweapons daber
tel2_1 setPos getMarkerPos "tam"
tel1 setPos [10860.050,3117.725,6.75000]
tel1 setDir 240
policie setBehaviour "CARELESS"

~1
;*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-Jeste v Kanclu*-*-*-*-*-*-*-*-*

pl1 setunitPos "up"
pl2 setunitPos "up"
pl3 setunitPos "up"
pl4 setunitPos "up"

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

;na mapu
_camera camSetTarget [94093.41,-50863.00,-12437.30]
_camera camSetPos [10860.54,3120.67,7.49]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera


~0.1
radio3 say ["D01v37",0]
~0.5

;na radio i viktora
_camera camSetTarget [94093.41,-50863.00,-12437.30]
_camera camSetPos [10859.58,3119.20,7.49]
_camera camSetFOV 0.700
_camera camCommit 6
@camCommitted _camera


policie setPos getMarkerPos "j1"
policie setdir 270
policajt setPos getMarkerPos "p1"
policajt setDir 80

titleCut ["","BLACK OUT", 1]

t72 setCombatMode "BLUE"
bmp1 setCombatMode "BLUE"
bmp2 setCombatMode "BLUE"
bmp3 setCombatMode "BLUE"

~1

Attack=true;
playsound "D01v38"
tuda = "v1"
"_x setPos getMarkerPos tuda" forEach units Of4group

policajt switchmove "FXInKneel"

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

playmusic ["Rtrack10",37]
0 fademusic 0.4

;na jeep i civila
_camera camSetTarget [101280.24,45885.71,-4187.86]
_camera camSetPos [11177.12,2721.73,2.95]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

;jen na civila
_camera camSetTarget [107963.73,27512.86,-4187.93]
_camera camSetPos [11190.62,2725.47,2.84]
_camera camSetFOV 0.431
_camera camCommit 8
@camCommitted _camera

2 fademusic 0

;zaber na civila na skale
_camera camSetTarget [-48756.87,82372.05,-7387.96]
_camera camSetPos [11251.51,2731.60,1.80]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
~2
playmusic ["track1",2]
0 fademusic 0.4
~2

;ze zadu na toho civila v pozadi invaze
_camera camSetTarget [74778.79,76109.41,-23955.54]
_camera camSetPos [11246.47,2732.14,1.94]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
~4
;*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Na Pobrezi*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-


;ne uplnej detail na bmp
_camera camSetTarget BMP3
_camera camSetRelPos [-42.21,30.24,4.27]
_camera camSetFOV 0.404
_camera camCommit 0
@camCommitted _camera


;vidim skoro celou lini tanku
_camera camSetTarget BMP3
_camera camSetRelPos [-43.21,28.76,4.60]
_camera camSetFOV 0.700
_camera camCommit 8

~3
@camCommitted _camera

cutrsc ["binocular","plain down",0.1]
showcinemaborder false
;pohled dalekohledem
_camera camSetTarget bmp2
_camera camSetPos [11249.68,2736.64,1.24]
_camera camSetFOV 0.231
_camera camCommit 0
@camCommitted _camera


t72 reveal trak 
bmp1 reveal pl1 
bmp2 reveal pl2 
bmp3 reveal pl3

~6
showcinemaborder true
titleCut ["","BLACK IN", 1]

policajt switchmove "Fxstand"
policajt setDir 180
policajt dowatch policie

;*-*-*-*-*-*-*-*-*-*-*-*Zabijeji civili - leka se*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

pl1 domove getMarkerPos "mesto"
pl2 domove getMarkerPos "mesto"
pl3 domove getMarkerPos "mesto"
pl4 domove getMarkerPos "mesto"

;na beziciho civila
_camera camSetTarget pl2
_camera camSetRelPos [-13.05,25.58,8.46]
_camera camSetFOV 0.281
_camera camCommit 0
@camCommitted _camera

~3

pl1 addRating -50000
pl2 addRating -50000
pl3 addRating -50000
pl4 addRating -50000
trak addRating -50000
~2

t72 setCombatMode "RED"
bmp1 setCombatMode "RED"
bmp2 setCombatMode "RED"
bmp3 setCombatMode "RED"

~2
;na strilejici tanky
_camera camSetTarget [-81007.53,38420.04,-12883.48]
_camera camSetPos [11568.96,2893.70,43.53]
_camera camSetFOV 0.531
_camera camCommit 0
@camCommitted _camera

~6



;znova na civila
_camera camSetTarget [-23088.90,96134.81,-9667.49]
_camera camSetPos [11252.67,2727.37,3.37]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

policajt stop true
policajt switchmove "FXdismay"
~0.5

_b = "bomb" createvehicle getmarkerpos "bomba"
_b setdammage 1
~1

trakd setdamage 1
trak setdamage 1
pl2 setdammage 1

~0.5

;na mrtveho civila
_camera camSetTarget pl2
_camera camSetRelPos [-3.11,5.76,5.00]
_camera camSetFOV 0.190
_camera camCommit 0
@camCommitted _camera

policajt moveInCargo policie

~5


;*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-Odjezd*-*-*-*-*-*-*-*-*-*-*-*-*-*


;na chalupu s cestou
_camera camSetTarget [-86146.20,18169.47,-16649.04]
_camera camSetPos [11220.87,2730.71,4.80]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

;na cestu s chalupou
_camera camSetTarget [-87285.84,-1170.89,-16649.52]
_camera camSetPos [11220.87,2730.71,4.80]
_camera camSetFOV 0.700
_camera camCommit 5

~2
policie domove getmarkerpos "p2"
@camCommitted _camera

;spoza chalupy
_camera camSetTarget [91143.71,51962.23,-34310.09]
_camera camSetPos [11201.50,2731.71,6.46]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

;ze vzduchu
_camera camSetTarget [68903.11,76841.30,-34324.83]
_camera camSetPos [11240.21,2757.69,9.94]
_camera camSetFOV 0.700
_camera camCommit 10

~8
policie setPos getMarkerPOs "p2"
@camCommitted _camera


;na cestu - pojede jeep
_camera camSetTarget [-63944.27,63737.86,-25453.13]
_camera camSetPos [11063.09,2751.83,13.36]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
policajt stop true

~1
policie domove getmarkerpos "mesto2"

~15


;otoceni se k tankum
_camera camSetTarget [37367.36,95780.22,-25453.79]
_camera camSetPos [11063.11,2756.28,13.56]
_camera camSetFOV 0.700
_camera camCommit 8
@camCommitted _camera


;tanky popojizdi
_camera camSetTarget [94645.07,-45625.36,-25351.40]
_camera camSetPos [11046.62,2967.91,25.84]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera


;prejezd kolem nich
_camera camSetTarget [107629.10,7640.30,-25351.39]
_camera camSetPos [11046.62,2967.91,25.84]
_camera camSetFOV 0.700
_camera camCommit 8
@camCommitted _camera

~4

@camCommitted _camera
~14
policie addrating -10000





		;na nejakej tank
		tank = true
		_who = bmp2;

		_dx = -4;
		_dy = 0;
		_dz = 3.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

		? tankkonec : goto "Pryc"
		goto "LOOP2"
		#Pryc

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


;na mesto z dalky
_camera camSetTarget [-53879.16,77389.62,-14393.60]
_camera camSetPos [11145.12,2817.77,18.05]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera


daber stop false
daber setUnitPos "UP"
daber switchmove "fxStand"
daber setpos [10859.000,3116.705,5.766]
daber setDir 180
daber stop true

;priblizeni se k mestu
_camera camSetTarget [-59077.93,67158.15,-30687.35]
_camera camSetPos [11057.25,2901.27,64.76]
_camera camSetFOV 0.700
_camera camCommit 13
@camCommitted _camera

;u okna
_camera camSetTarget [-42323.01,79212.46,-37011.59]
_camera camSetPos [10861.07,3110.65,9.25]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

"_x setPos getMarkerPos vojaci" forEach units Of4group

;datail na okno
_camera camSetTarget [-28883.09,87019.47,-37012.26]
_camera camSetPos [10860.23,3112.98,8.41]
_camera camSetFOV 0.700
_camera camCommit 4
@camCommitted _camera


daber say "d01v45"
~4
daber setmimic "angry"

~2
bmp1 setPos getMarkerPos "vystup1"
bmp2 setPos getMarkerPos "vystup2"
bmp3 setPos getMarkerPos "vystup3"
~1

;*-*-*-*-*-*-*-*-*-*-*-*Hlasime a vystupujem z BMP*-*-*-*-*-*-*-*

;vystupuji
_camera camSetTarget BMP3
_camera camSetRelPos [14.09,15.36,2.94]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

;z bmpcka
_camera camSetTarget BMP3
_camera camSetRelPos [20.42,2.59,3.06]
_camera camSetFOV 0.461
_camera camCommit 9
@camCommitted _camera


;zaber do mesta
_camera camSetTarget [9489.58,-96439.91,-9071.23]
_camera camSetPos [10788.70,3126.54,12.74]
_camera camSetFOV 0.577
_camera camCommit 0
@camCommitted _camera


(object 14121) say ["D01v47",0]

;detail na amplion
_camera camSetTarget [-68621.64,-57640.05,1312.46]
_camera camSetPos [10788.99,3126.34,4.73]
_camera camSetFOV 0.345
_camera camCommit 15
@camCommitted _camera
~5

;za amplionem
_camera camSetTarget [110631.83,2890.29,-5415.44]
_camera camSetPos [10786.10,3125.27,5.00]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

;k radnici
_camera camSetTarget [109980.66,-9815.70,17.20]
_camera camSetPos [10821.34,3123.25,7.17]
_camera camSetFOV 0.170
_camera camCommit 10
@camCommitted _camera



aP allowdammage true
GoHome=true;

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

20 fademusic 0

aP setpos [10859.000,3116.705,5.766]
daber setPos getMarkerPos "tam"
policajt stop false

_pole = [cm1, cm2, cm3, cm4, cm5, cm6, cm7, cm8, cm9, cm10, cm11, civ8];
"_x setunitpos ""up""" forEach _pole
(_pole select random (count _pole)) addRating -50000;
(_pole select random (count _pole)) addRating -50000;
(_pole select random (count _pole)) addRating -50000;
(_pole select random (count _pole)) addRating -50000;
(_pole select random (count _pole)) addRating -50000;