;PRVNÍ CUTSCÉNA (WP - ÚKRYT), SETKÁNÍ A PŘÍJEZD RUSKÉ HLÍDKY
;===========================================================
SetAccTime 1 

;Pro jistotu
Bloom00 setcaptive false

;Presun hrace z pole aktivacniho spinace - OPRAVENO
Bloom00 setpos [10611.49,3828.69,1.24]

;===Vyrovnavaci pole===
;[] Exec "Music.sqs"
;0 setfog 1
;======================
@kef
PlayMusic "Track5"

Bloom01 SetPos [10608.37,3816.37,1.72]
Bloom01 setbehaviour "Combat"
Bloom01 dotarget Dava00
Bloom01 switchMove "Crouch"
Bloom01 setunitpos "Up"

_camera = "camera" camcreate [0,0,0]
_camera cameraEffect ["internal","back"] 
;setacctime 1
titleCut ["","BLACK In",3]

_camera camSetTarget [-81098.03,-32446.20,-16445.43]
_camera camSetPos [10607.31,3818.68,10.54]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
_camera camSetTarget [-52394.86,-72048.80,-16447.56]
_camera camSetPos [10607.31,3818.68,1.47]
_camera camSetFOV 0.700
_camera camCommit 18
@camCommitted _camera
Dava00 playmove "FXToHand"
~2

5 Fademusic 0.2

_camera camSetTarget [-54803.05,-70527.41,-13803.08]
_camera camSetPos [10608.77,3817.73,0.62]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
~3
_camera camSetTarget [-41537.95,-80295.28,-14218.88]
_camera camSetPos [10608.12,3816.87,1.55]
_camera camSetFOV 0.700
_camera camCommit 6
@camCommitted _camera
~2

Bloom01 say "Ed_Say11"
titletext [Localize "STR_veta_14","PLAIN DOWN",0.2]

Dava00 SetMimic "Surprised"
Dava00 switchmove "FXDismay"
Bloom01 SetMimic "Smile"
~2
Dava00 DoWatch [(GetPos Bloom01 select 0),(GetPos Bloom01 select 1),1.7]
_camera camSetTarget [105952.38,33809.16,-2918.01]
_camera camSetPos [10605.27,3815.39,1.48]
_camera camSetFOV 0.211
_camera camCommit 0
@camCommitted _camera
_camera camSetTarget [97046.23,52136.93,-13775.58]
_camera camSetPos [10607.37,3815.91,1.49]
_camera camSetFOV 0.700
_camera camCommit 5
@camCommitted _camera
Dava00 dowatch Bloom01

Bloom01 say "Ed_Say12"
titletext [Localize "STR_veta_15","PLAIN DOWN",0.3]

~5
Dava00 DoWatch [(GetPos Bloom01 select 0),(GetPos Bloom01 select 1),1.7]
_camera camSetTarget [-89102.43,-1770.83,-5042.25]
_camera camSetPos [10607.46,3815.43,1.61]
_camera camSetFOV 0.464
_camera camCommit 0
@camCommitted _camera

Dava00 say "Dv_Say1"
titletext [Localize "STR_veta_16","PLAIN DOWN",0.3]

Dava00 setdir 46.645
~3.5

Bloom01 say "Ed_Say13"
titletext [Localize "STR_veta_17","PLAIN DOWN",0.5]

_camera camSetTarget [107984.16,-18598.21,-3689.29]
_camera camSetPos [10603.43,3815.96,1.26]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
_camera camSetTarget [81595.88,-66470.52,4569.24]
_camera camSetPos [10604.64,3818.48,1.29]
_camera camSetFOV 0.429
_camera camCommit 29
~2.8

Dava00 say "Dv_Say2"
titletext [Localize "STR_veta_18","PLAIN DOWN",0.9]

~6.5

Dava00 say "Dv_Say3"
titletext [Localize "STR_veta_19","PLAIN DOWN",0.3]
~1.7

;Zpozdeni textu - OPRAVENO

Bloom01 say "Ed_Say14"
titletext [Localize "STR_veta_20","PLAIN DOWN",0.4]

~6
3 FadeMusic 0
titleCut ["","BLACK Out",1]
~3
titleCut ["","BLACK In",8]
_camera camSetTarget [-38793.33,-66976.42,50592.95]
_camera camSetPos [10613.74,3829.93,11.54]
_camera camSetFOV 0.700
_camera camCommit 0
~1

;Hudba zmenena - OPRAVENO
1 FadeMusic 0.2
PlayMusic "Track15"
~3

Bloom01 Setbehaviour "Aware"

Playsound "Ed_Say15"
titletext [Localize "STR_veta_21","PLAIN DOWN",0.9]

_camera camSetTarget [-25303.80,-72220.27,-53954.86]
_camera camSetPos [10613.74,3829.93,9.84]
_camera camSetFOV 0.700
_camera camCommit 20
@camCommitted _camera

Playsound "Ed_Say16"
titletext [Localize "STR_veta_22","PLAIN DOWN",0.9]

_camera camSetTarget [-27686.20,-84123.64,-28101.59]
_camera camSetPos [10613.55,3829.61,4.13]
_camera camSetFOV 0.689
_camera camCommit 25

;Postoj pilota - OPRAVENO
Bloom01 Setbehaviour "Safe"
Bloom01 Setunitpos "Auto"
Bloom01 DoWatch [(GetPos Dava00 select 0),(GetPos Dava00 select 1),1.7]

~1
removeallweapons Bloom01
~13
titleCut ["","BLACK In",3]
_camera camSetTarget [104625.34,-26325.11,-15737.21]
_camera camSetPos [10605.77,3815.29,3.40]
_camera camSetFOV 0.700
_camera camCommit 0
_camera camSetTarget [109217.17,8707.94,-15738.71]
_camera camSetPos [10605.77,3815.29,1.67]
_camera camSetFOV 0.700
_camera camCommit 3
~4
3 FadeMusic 0

Dava00 say "Dv_Say4"
titletext [Localize "STR_veta_23","PLAIN DOWN",0.3]
~2.1
1 FadeMusic 0.2
PlayMusic "Track12"
Dava00 switchmove "FXDismay"
Dava00 DoWatch [(GetPos tod select 0),(GetPos tod select 1),1.7]
~2
_camera camSetTarget [106065.69,28956.81,16120.84]
_camera camSetPos [10607.39,3816.15,1.34]
_camera camSetFOV 0.700
_camera camCommit 0

Bloom01 say "Ed_Say17"
titletext [Localize "STR_veta_24","PLAIN DOWN",0.1]

~2
Dava00 setdir -136.129
_camera camSetTarget [57831.64,91174.31,-11610.75]
_camera camSetPos [10605.77,3813.94,1.61]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
Dava00 playmove "FXShow3"

Dava00 say "Dv_Say5"
titletext [Localize "STR_veta_25","PLAIN DOWN",0.3]

~1.5
Uaz01 setpos [10656.34,3432.08,1]
Uaz01 move [10582.70,3752.77]
Uaz01 setspeedmode "normal"
~2.5
Ural01 setpos [10656.34,3432.08,1]
Ural01 setspeedmode "normal"
Ural01 move [10588.37,3741.18]
_camera camSetTarget [10624.98,3619.44,0.00]
_camera camSetPos [10646.82,3492.96,13.34]
_camera camSetFOV 0.160
_camera camCommit 0
_camera camSetTarget [-28444.07,95204.13,-7612.29]
_camera camSetPos [10678.60,3502.79,11.88]
_camera camSetFOV 0.067
_camera camCommit 22
~16.5
Ural01 setspeedmode "limited"
Uaz01 setspeedmode "limited"
~3.5
Dava01 setpos [10593.20,3809.33,2]
Dava00 DoWatch [(GetPos Ural01 select 0),(GetPos Ural01 select 1),1.7]

Dava01 setunitpos "up"
;Zaber z dalky
_camera camSetTarget [26823.86,-94804.96,3967.63]
_camera camSetPos [10586.44,3793.34,0.65]
_camera camSetFOV 0.103
_camera camCommit 0
_camera camSetTarget [29348.52,-94355.55,3967.85]
_camera camSetPos [10575.21,3791.49,0.52]
_camera camSetFOV 0.103
_camera camCommit 7
~6.5
Ural01 setpos [10590.48,3732.96]
;Zaber z blizka, vystupuji
_camera camSetTarget [154.26,103172.09,-837.60]
_camera camSetPos [10586.39,3722.45,0.69]
_camera camSetFOV 0.213
_camera camCommit 0
_camera camSetTarget [20697.27,103179.03,2613.70]
_camera camSetPos [10586.39,3722.45,0.69]
_camera camSetFOV 0.213
_camera camCommit 15
~1.5
UnassignVehicle Hlidka02 
Hlidka02 move [10585.19,3741.13]
~2
Hlidka02 DoWatch [(GetPos B02 select 0),(GetPos B02 select 1),1.7]
UnassignVehicle B02 
B02 move [10586.06,3740.18,14.37]
B02 DoWatch [(GetPos Hlidka02 select 0),(GetPos Hlidka02 select 1),1.7]
@UnitReady Hlidka02
@UnitReady B02

;Zada Davida
_camera camSetTarget [1443.70,-95750.33,2038.74]
_camera camSetPos [10593.27,3811.96,1.55]
_camera camSetFOV 0.102
_camera camCommit 0
~1.5
_camera camSetTarget [-25.29,-95615.51,1325.48]
_camera camSetPos [10593.27,3811.96,1.55]
_camera camSetFOV 0.05
_camera camCommit 5

Hlidka02 switchMove "FXShow1"
~3
B02 switchMove "FXShow4"
~2
Hlidka02 switchMove "FXCivilLookBack"
~1
B02 switchMove "FXCivilHandMouth"
~2
Hlidka02 DoWatch [(GetPos Dava00 select 0),(GetPos Dava00 select 1),1.7]
~3
Hlidka02 switchMove "FXShow3"
~3
Hlidka02 DoWatch [(GetPos B02 select 0),(GetPos B02 select 1),1.7]
~2
B02 PlayMove "EffectStandSalute"
~0.5
Hlidka02 PlayMove "EffectStandSalute"
~0.5
Hlidka02 PlayMove "EffectStandSaluteEnd"
~0.8

PlayMusic "Rtrack4"

B02 PlayMove "EffectStandSaluteEnd"

Hlidka02 assignasdriver Uaz01
[Hlidka02] OrderGetIn true
~0.4
B02 assignascargo Ural01
[B02] OrderGetIn true
~2
_camera camSetTarget [10422.46,103603.46,-4780.17]
_camera camSetPos [10585.97,3724.36,1.53]
_camera camSetFOV 0.200
_camera camCommit 0
~2
_camera camSetTarget [20610.17,103202.24,-1782.18]
_camera camSetPos [10585.97,3724.36,1.53]
_camera camSetFOV 0.032
_camera camCommit 2
~2
Dava00 setunitpos "up"
Bloom01 setpos [10607.29,3824.54]
Bloom01 DoWatch [(GetPos Dava00 select 0),(GetPos Dava00 select 1),1.7]
Bloom01 setunitpos "up"
Bloom01 setbehaviour "safe"
Dava00 setpos [10607.78,3822.91]

Dava00 DoWatch [(GetPos Bloom01 select 0),(GetPos Bloom01 select 1),1.7]
Dava00 setdir 331.734 
Dava01 DoWatch [(GetPos skoda select 0),(GetPos skoda select 1),1.7]
Dava01 setspeedmode "full"
~0.5
_camera camSetTarget [40681.19,-91347.35,1470.86]
_camera camSetPos [10511.99,3980.73,5.84]
_camera camSetFOV 0.023
_camera camCommit 0
Hlidka02 move [10591.80,3803.64]
Ural01 move [10472.84,4076.13]
Ural01 setspeedmode "normal"
~9

3.5 Fademusic 0.2

_camera camSetTarget [-13619.60,-93194.51,-271.36]
_camera camSetPos [10607.92,3825.41,1.51]
_camera camSetFOV 0.482
_camera camCommit 0
_camera camSetTarget [70283.64,-76414.76,-271.62]
_camera camSetPos [10606.39,3825.28,1.49]
_camera camSetFOV 0.482
_camera camCommit 18
~2

Dava00 say "Dv_Say6"
titletext [Localize "STR_veta_26","PLAIN DOWN",0.3]

~3

Dava00 say "Dv_Say7"
titletext [Localize "STR_veta_27","PLAIN DOWN",0.3]

~4

Bloom01 say "Ed_Say18"
titletext [Localize "STR_veta_28","PLAIN DOWN",0.2]
~2

Dava00 say "Dv_Say8"
titletext [Localize "STR_veta_29","PLAIN DOWN",0.4]

~3
setacctime 1
titleCut ["","BLACK Out",3]
~3
titleCut ["","BLACK In",2]
player cameraEffect ["terminate","back"]
camDestroy _camera 
titleCut ["","BLACK In",1.5]

Deletevehicle Dava01
Deletevehicle Bloom01

~0.1

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

Bloom00 setdir 65
Bloom00 setpos [10607.29,3824.54]


;Update
Hint Localize "STR_hint_1"

;-----------------------------------------------------------------------
SaveGame
~0.1
;Skript smerujici na smycku, zjistuje zda smrt hlidky nastala pred HINT napovedou
[] exec "Cutsc2.sqs"

vypoved=true
;Update 2, doplneni o "Sarge" skript
[] exec "Presun.sqs"

EXIT