;==========Klikařovy poznámky==================
; 1) Snížit velikost spínače na aktivaci Cutsc3 na 85x85
; 2) Dat kdekoli na mapu "Ohniště" s názvem "Svetlo" (žádná inicializace)
; 3) Skiptime od pasáže "Par. spojka" nepřipadá v úvahu (pokud tam je)
; 4) Nechápu proč mu dáváš pryč hodinky atd.

_EdaS  = Bloom00 SaveStatus "Kalach"
_EdaL  = Bloom04 LoadStatus "Kalach"

Bloom04 setdamage 0

Bloom00 setpos [6962.68,2215.91]

Deletevehicle Chytac01
Deletevehicle Chytac02

;===vyrovnavaci pole=====
;=== nutne========================
SetAccTime 1
DeleteVehicle s1
DeleteVehicle s2

prisel=True
pokec=False
;===========================
ShowPad False;
ShowCompass False;
ShowWatch False;

Bloom04 SetSpeedMode "LIMITED"

Tom01 SetDir 38
Bloom04 SetDir 217
;====obarveni znacek====

"partyzani" SetMarkerColor "ColorGreen"
"partyzani" SetMarkerType "Flag"

"tabor" SetMarkerColor "ColorRed"
"tabor" SetMarkerType "Destroy"

"posila" SetMarkerColor "ColorGreen"
"posila" SetMarkerType "Arrow" 


;=====MOJE KAMERY=======
Tom01 SetPos [10078.32,7605.27]
Bloom04 SetPos [10078.85,7616.79]

Bloom04 removeweapon "Binocular"
Dustojnik00 removeweapon "Binocular"
Tom01 removeweapon "Binocular"

Svetlo setpos [10063.32,7606.73,8]
Svetlo inflame true

Tom01 DoWatch [(GetPos Bloom04 select 0),(GetPos Bloom04 select 1),1.7]

_camera = "camera" CamCreate [0,0,0]
_camera CameraEffect ["internal","back"]

TitleCut ["","BLACK In",2]

_camera camSetTarget [-12796.42,104855.12,-4054.85]
_camera camSetPos [10078.55,7606.20,1.19]
_camera camSetFOV 0.700
_camera camCommit 0
~2
Bloom04 SetPos [10078.85,7616.79]
_camera camSetTarget [-12816.95,104942.42,1404.09]
_camera camSetPos [10078.87,7604.83,1.18]
_camera camSetFOV 0.700
_camera camCommit 1
~1
Tom01 Say "Tm_Say1"
TitleText [Localize "STR_veta_76","PLAIN DOWN",0.2]
~2.3
_camera camSetTarget [42067.02,-87125.38,166.94]
_camera camSetPos [10077.08,7619.65,1.04]
_camera camSetFOV 0.700
_camera camCommit 0

Bloom04 Say "Ed_SAy6"
TitleText [Localize "STR_veta_77","PLAIN DOWN",0.15]
~1.5
_camera camSetTarget [58525.14,-73602.42,32845.60]
_camera camSetPos [10078.00,7606.55,0.83]
_camera camSetFOV 0.700
_camera camCommit 0

Playmusic "Track4"
0 Fademusic 0.15

Tom01 Say "Tm_Say2"
TitleText [Localize "STR_veta_78","PLAIN DOWN",0.4]
~5
_camera camSetTarget [104033.02,29698.70,26481.62]
_camera camSetPos [10076.45,7616.25,0.06]
_camera camSetFOV 0.700
_camera camCommit 0
_camera camSetTarget [49592.25,96887.57,-21337.17]
_camera camSetPos [10077.42,7614.92,0.92]
_camera camSetFOV 0.700
_camera camCommit 15

Bloom04 PlayMove "TakeFlag"
~3
TitleCut ["","BLACK Out",2]
~2.1
Bloom04 SetPos [10030.19,7536.59]
Tom01 SetPos [10033.34,7536.80]
Bloom04 SetDir 270
Tom01 SetDir 270

Deletevehicle Svetlo

Bloom04 DoWatch [(GetPos Dustojnik00 select 0),(GetPos Dustojnik00 select 1),1.7]
Dustojnik00 DoWatch [(GetPos Bloom04 select 0),(GetPos Bloom04 select 1),1.7]
Tom01 DoWatch [(GetPos Bloom04 select 0),(GetPos Bloom04 select 1),1.7]

TitleCut ["","BLACK In",5]

;===========Klikařův pokec, partyzánský boss
;= Dle předlohy: Sarge
;= Kamera      : Klikař
;= Přepis      : Klikař
;===========================================

RemoveAllWeapons Bloom04

_camera camSetTarget [-40412.83,93789.20,4307.52]
_camera camSetPos [10029.32,7535.37,1.44]
_camera camSetFOV 0.700
_camera camCommit 0
_camera camSetTarget [102905.83,42169.50,-12873.00]
_camera camSetPos [10027.68,7536.06,1.79]
_camera camSetFOV 0.700
_camera camCommit 9
~2
Dustojnik00 playmove "FXShow4"

Dustojnik00 Say "Lm_Say1"
TitleText [Localize "STR_veta_79","PLAIN DOWN",0.25]

~2.5
Tom01 SetBehaviour "SAFE"
Tom01 DoMove [10049.45,7514.26]
~4.4
_camera camSetTarget [47090.43,-83186.16,-19562.78]
_camera camSetPos [10028.50,7538.16,1.42]
_camera camSetFOV 0.700
_camera camCommit 0

Dustojnik00 Say "Lm_Say2"
TitleText [Localize "STR_veta_80","PLAIN DOWN",0.4]

~4.4
_camera camSetTarget [98269.89,54528.20,2586.75]
_camera camSetPos [10029.25,7536.12,1.54]
_camera camSetFOV 0.533
_camera camCommit 0

Bloom04 Say "Ed_Say33"
TitleText [Localize "STR_veta_81","PLAIN DOWN",0.7]

~7
_camera camSetTarget [-79230.20,-35001.26,15266.78]
_camera camSetPos [10029.20,7536.74,1.46]
_camera camSetFOV 0.739
_camera camCommit 0

Dustojnik00 Say "Lm_Say3"
TitleText [Localize "STR_veta_82","PLAIN DOWN",0.15]
~1.5

_camera camSetTarget [86867.13,-56448.68,-1000.68]
_camera camSetPos [10029.49,7536.92,1.45]
_camera camSetFOV 0.739
_camera camCommit 0

Bloom04 Say "Ed_Say34"
TitleText [Localize "STR_veta_83","PLAIN DOWN",0.15]

~1.5
_camera camSetTarget [47090.43,-83186.16,-19562.78]
_camera camSetPos [10028.50,7538.16,1.42]
_camera camSetFOV 0.7
_camera camCommit 0

Dustojnik00 Say "Lm_Say4"
TitleText [Localize "STR_veta_84","PLAIN DOWN",0.8]

~8.2

Bloom04 Say "Ed_Say35"
TitleText [Localize "STR_veta_85","PLAIN DOWN",0.2]

_camera camSetTarget [46794.30,97954.27,-21422.05]
_camera camSetPos [10029.89,7536.08,1.74]
_camera camSetFOV 0.775
_camera camCommit 0
_camera camSetTarget [-69648.52,66911.41,-10889.57]
_camera camSetPos [10030.75,7535.82,1.72]
_camera camSetFOV 0.652
_camera camCommit 5
~2

Dustojnik00 Say "Lm_Say5"
TitleText [Localize "STR_veta_86","PLAIN DOWN",1]

~4.5
_camera camSetTarget [86268.70,-55511.61,-14241.53]
_camera camSetPos [10027.90,7537.29,1.50]
_camera camSetFOV 0.700
_camera camCommit 0
_camera camSetTarget [107436.79,-9763.08,-14242.03]
_camera camSetPos [10027.71,7537.04,1.53]
_camera camSetFOV 0.700
_camera camCommit 20
~4.5

8 Fademusic 0

Dustojnik00 switchmove "FxStandRotateTable"
~3
;= Sarge-Brífing
;= Start

ForceMap True
MapAnimAdd [0, 0.1, GetMarkerPos "partyzani"]
MapAnimCommit;
ForceMap True;
@MapAnimDone;

Playsound "Lm_Say6"
TitleText [Localize "STR_veta_87","PLAIN DOWN"]

~2
MapAnimAdd [3, 0.1, GetMarkerPos "tabor"]
MapAnimCommit;
ForceMap True;
@MapAnimDone;

Playsound "Lm_Say7"
TitleText [Localize "STR_veta_88","PLAIN DOWN"]

~2
MapAnimAdd [3, 0.1, GetMarkerPos "posila"]
MapAnimCommit;
ForceMap True;
@MapAnimDone;

Playsound "Lm_Say8"
TitleText [Localize "STR_veta_89","PLAIN DOWN",0.22]
~2

PlayMusic "Rtrack10"
0 Fademusic 0.2

ForceMap False;
;= End
_camera camSetTarget [-76291.63,57207.77,-8698.43]
_camera camSetPos [10029.53,7536.46,1.62]
_camera camSetFOV 0.700
_camera camCommit 0
_camera camSetTarget [-60964.15,29469.20,67248.51]
_camera camSetPos [10029.25,7536.69,1.18]
_camera camSetFOV 0.700
_camera camCommit 16
~4

Dustojnik00 Say "Lm_Say9"
TitleText [Localize "STR_veta_90","PLAIN DOWN",0.4]

~4
_camera camSetTarget [103627.50,38778.17,16538.57]
_camera camSetPos [10027.27,7535.72,1.14]
_camera camSetFOV 0.428
_camera camCommit 0

Bloom04 Say "Ed_Say36"
TitleText [Localize "STR_veta_91","PLAIN DOWN",0.4]

~2
TitleCut ["","BLACK Out",4]
~5

skiptime 4.916

TitleText [Localize "STR_ruzne_6","PLAIN",0.4]
~5
TitleCut ["","BLACK IN",4]

_camera camSetTarget [12142.41,-91759.89,11370.75]
_camera camSetPos [10034.47,7606.93,15.24]
_camera camSetFOV 0.700
_camera camCommit 0
~6
Playsound "Ed_Say37"
TitleText [Localize "STR_veta_92","PLAIN DOWN",0.9]
_camera camSetTarget [-87715.73,24987.53,12123.46]
_camera camSetPos [10038.13,7525.92,0.33]
_camera camSetFOV 0.407
_camera camCommit 0
~6

5.8 Fademusic 0

_camera camSetTarget [67742.83,54412.42,67197.52]
_camera camSetPos [10031.48,7538.29,0.05]
_camera camSetFOV 1.035
_camera camCommit 0
~3
[] Exec "svetlice.sqs"
~4

SaveGame 

;========Uklidova pozice/Hangar/Sever==========
Dustojnik00 setpos [9012.44,12593.08]
Bloom04 setpos [9014.44,12591.08]
;==============================================
Dustojnik00 SwitchMove "null"

Zdrav00 SwitchMove "null"
Paragan00 SwitchMove "null"
Paragan01 SwitchMove "null" 

Bloom00 SetPos GetMarkerPos "sem"

;=== nutne========================
[] Exec "Presun_2.sqs"
bezte=True

{_x SetCombatMode "red"} ForEach [Paragan00,Paragan01,Paragan02,Paragan03,Paragan04,Paragan05]
{_x SetBehaviour "combat"} ForEach [Paragan00,Paragan01,Paragan02,Paragan03,Paragan04,Paragan05]
;===========================
ShowPad True;
ShowCompass True;
ShowWatch True;

Player CameraEffect ["terminate","back"]
CamDestroy _camera

Hint Localize "STR_hint_4"
Bloom00 AddMagazine "HandGrenade"
Bloom00 AddMagazine "HandGrenade"

TitleCut ["","BLACK IN",2]

;Dle hodinek z odpočtu 22:50 na hradě je teď za 12min 4hod ráno
Exit