_camera = "camera" camcreate [1,10,100]
_camera cameraEffect ["internal","back"]

End = 		False
EndSmoke = 	False
EndFire =	False
EndSpark =	False
KonecPalbyBVP = False

[Efekt1] exec "\effectpack\aireffect\init.sqs"
[Efekt2] exec "\effectpack\aireffect\init.sqs"
[Flak1] exec "\effectpack\aireffect\init.sqs"
[Flak2] exec "\effectpack\aireffect\init.sqs"
[Flak3] exec "\effectpack\aireffect\init.sqs"
[Flak4] exec "\effectpack\aireffect\init.sqs"
[Flak5] exec "\effectpack\aireffect\init.sqs"
[Flak8] exec "\effectpack\aireffect\init.sqs"
[Flak6] exec "\effectpack\aireffect\init.sqs"

Blue2 setspeedmode "Limited"
Blue3 setspeedmode "Limited"
Blue4 setspeedmode "Limited"

;goto "bloom"


;~
;titlecut ["","BLACK Out",4]
;titletext ["","PLAIN DOWN",0.5]
;titlersc ["","plain"]

;=============================================
;DOKONCENI SKRIPTU ONE========================
;=============================================
_camera say "Rb_Say5"
titletext [Localize "STR_veta_10","PLAIN DOWN",0.4]

BlueH setdir 0
BlueH setvelocity [0,52,0]
BlueH setpos [(getpos BlueL3 select 0),(getpos BlueL3 select 1),+85]
BlueH flyinheight 85

@camCommitted _camera

setacctime 0.5
;Zaber zespod na RB
_camera camSetTarget [61976.87,-65697.17,47179.93]
_camera camSetPos [8154.27,4168.94,43.36]
_camera camSetFOV 0.700
_camera camCommit 0
_camera camSetTarget BLueH
_camera camSetPos [8249.27,4395.98,19.84]
_camera camSetFOV 0.599
_camera camCommit 4.5
@camCommitted _camera

4 Fademusic 1

MostD=true

BlueH setdir 0
BlueH setvelocity [0,52,0]
BlueH setpos [(getpos BlueL2 select 0),(getpos BlueL2 select 1),+90]
BlueH flyinheight 90

setacctime 0.2

_camera camSetTarget BlueH
_camera camSetPos [8208.23,4061.61,150.84]
_camera camSetFOV 0.224
_camera camCommit 0
_camera camSetTarget BlueH
_camera camSetPos [8091.71,4077.13,160.12]
_camera camSetFOV 0.224
_camera camCommit 4.2
~1.4
BlueH fire "RKTRockeyeRail"
~0.4
BlueH fire "RKTRockeyeRail"
~0.4
BlueH fire "RKTRockeyeRail"
~0.4
BlueH fire "RKTRockeyeRail"
BlueH move getpos Vulcan1
~1.6
setacctime 0.5
_camera camSetTarget [39108.13,-88620.45,-17999.37]
_camera camSetPos [8066.19,4701.46,95.36]
_camera camSetFOV 0.300
_camera camCommit 0
_camera camSetTarget BlueH
_camera camSetPos [8179.21,4652.49,86.84]
_camera camSetFOV 0.350
_camera camCommit 10
~9
titlecut ["","BLACK Out",1]
~1.05

BlueH flyinheight 80

;=============================================
;DOKONCENI SKRIPTU ONE========================
;=============================================

0 fadesound 1
setacctime 0.35

setviewdistance 1100

Blue2 setpos [(getpos Modry1_4 select 0),(getpos Modry1_4 select 1),+80]
Blue3 setpos [(getpos Modry2_4 select 0),(getpos Modry2_4 select 1),+85]
Blue4 setpos [(getpos Modry3_4 select 0),(getpos Modry3_4 select 1),+90]
Blue2 setvelocity [55,0,0]
Blue3 setvelocity [55,0,0]
Blue4 setvelocity [55,0,0]
Blue2 setdir 90
Blue3 setdir 90
Blue4 setdir 90
Blue2 flyinheight 80
Blue3 flyinheight 85
Blue4 flyinheight 90

titlecut ["","BLACK In",4]

_camera camSetTarget [-80983.13,50818.73,-5252.78]
_camera camSetPos [7403.62,4350.90,20.71]
_camera camSetFOV 0.479
_camera camCommit 0
_camera camSetTarget [106265.66,18515.41,-5079.25]
_camera camSetPos [7406.15,4362.66,1.72]
_camera camSetFOV 0.382
_camera camCommit 6
~7.5

BlueH move getpos Pilot

_bomba = "LaserGuidedBomb" camCreate [(getPos Efekt1 select 0)-0, (getPos Efekt1 select 1)+0, (getPos Efekt1 select 2)-0]
Efekt1 setdamage 1
~0.7
_bomba = "LaserGuidedBomb" camCreate [(getPos Efekt2 select 0)-0, (getPos Efekt2 select 1)+0, (getPos Efekt2 select 2)-0]
Efekt2 setdamage 1
~0.7
_bomba = "LaserGuidedBomb" camCreate [(getPos Flak1 select 0)-0, (getPos Flak1 select 1)+0, (getPos Flak1 select 2)-0]
Flak1 setdamage 1
~0.7
_bomba = "LaserGuidedBomb" camCreate [(getPos Flak2 select 0)-0, (getPos Flak2 select 1)+0, (getPos Flak2 select 2)-0]
Flak2 setdamage 1
~0.7
_bomba = "LaserGuidedBomb" camCreate [(getPos Flak3 select 0)-0, (getPos Flak3 select 1)+0, (getPos Flak3 select 2)-0]
Flak3 setdamage 1
~0.7

_camera camSetTarget [58383.63,-80433.77,14263.25]
_camera camSetPos [7587.33,4520.62,3.38]
_camera camSetFOV 0.706
_camera camCommit 0
_camera camSetTarget [100839.64,-28660.25,14262.83]
_camera camSetPos [7580.35,4508.51,1.36]
_camera camSetFOV 0.706
_camera camCommit 4

_bomba = "LaserGuidedBomb" camCreate [(getPos Flak4 select 0)-0, (getPos Flak4 select 1)+0, (getPos Flak4 select 2)-0]
Flak4 setdamage 1

7 Fademusic 0

~0.7
_bomba = "LaserGuidedBomb" camCreate [(getPos Flak8 select 0)-0, (getPos Flak8 select 1)+0, (getPos Flak8 select 2)-0]
Flak8 setdamage 1
~1
_camera camSetTarget [-87191.09,30117.64,16722.89]
_camera camSetPos [7981.04,4373.52,3.34]
_camera camSetFOV 0.700
_camera camCommit 0
_camera camSetTarget [-77942.40,52574.66,17138.67]
_camera camSetPos [7976.48,4359.68,13.75]
_camera camSetFOV 0.700
_camera camCommit 3

~0.7
_bomba = "LaserGuidedBomb" camCreate [(getPos Flak5 select 0)-0, (getPos Flak5 select 1)+0, (getPos Flak5 select 2)-0]
Flak5 setdamage 1

~2
_camera camSetTarget [103695.43,-20606.14,-13854.17]
_camera camSetPos [7874.73,4406.18,27.57]
_camera camSetFOV 0.620
_camera camCommit 0
_camera camSetTarget [100111.95,36924.54,-21517.06]
_camera camSetPos [8048.80,4371.64,39.51]
_camera camSetFOV 0.550
_camera camCommit 10
~0.6
_bomba = "LaserGuidedBomb" camCreate [7997.42,4395.03,16.5]
~0.3
Flak6 setdamage 1
~0.3

titlecut ["","BLACK Out",3.0]

_bomba = "LaserGuidedBomb" camCreate [8028.03,4388.23,16.5]
~0.6
_bomba = "LaserGuidedBomb" camCreate [8079.37,4393.07,16.5]
~0.6
_bomba = "LaserGuidedBomb" camCreate [8134.48,4388.46,16.5]
~2
Blue2 setpos [(getpos Modry1_4 select 0),(getpos Modry1_4 select 1),+80]
Blue3 setpos [(getpos Modry2_4 select 0),(getpos Modry2_4 select 1),+85]
Blue4 setpos [(getpos Modry3_4 select 0),(getpos Modry3_4 select 1),+90]

0 Fadesound 0.05

;SESTRELENI EDWARDA

titlecut ["","BLACK In",8.0]
;setacctime 0.25

Playmusic "7thOverdose"
0 Fademusic 1
15.5 Fademusic 0

Pepa playmove "StandWalkF"
Pepa playmove "StandWalkF"
Pepa playmove "StandWalkF"
Pepa playmove "StandWalkF"
Pepa playmove "StandWalkF"
Pepa playmove "StandWalkF"
Pepa playmove "StandWalkF"
Pepa playmove "StandWalkF"
Pepa playmove "StandWalkF"

_camera camSetTarget [104938.66,25666.71,19556.17]
_camera camSetPos [9139.76,4544.45,1.11]
_camera camSetFOV 0.364
_camera camCommit 0
_camera camSetTarget [-51996.22,83387.69,6877.28]
_camera camSetPos [9143.32,4541.21,1.28]
_camera camSetFOV 0.484
_camera camCommit 10
~3
_camera camSetTarget [77950.05,-62977.59,26712.11]
_camera camSetPos [9138.28,4547.27,0.05]
_camera camSetFOV 0.700
_camera camCommit 0
_camera camSetTarget [-26429.05,-87642.47,-15202.69]
_camera camSetPos [9138.28,4547.27,6.61]
_camera camSetFOV 0.530
_camera camCommit 6
~5

Blue2 RemoveMagazines "RKTRockeyeRail"
Blue3 RemoveMagazines "RKTRockeyeRail"
Blue4 RemoveMagazines "RKTRockeyeRail"
0 Fademusic 0
PlayMusic ["7thOverdose", 49]
4.5 Fademusic 1

#Here

setviewdistance 1100

Setacctime 0.5

;HI/1
Blue2 setpos [(getpos Modry1_5 select 0),(getpos Modry1_5 select 1),+90]
;HI/2
Blue3 setpos [(getpos Modry2_5 select 0),(getpos Modry2_5 select 1),+95]
;HI/3
Blue4 setpos [(getpos Modry3_5 select 0),(getpos Modry3_5 select 1),+100]

Blue2 setvelocity [55,0,0]
Blue3 setvelocity [55,0,0]
Blue4 setvelocity [55,0,0]
Blue2 setdir 90
Blue3 setdir 90
Blue4 setdir 90
Blue2 flyinheight 90
Blue3 flyinheight 95
Blue4 flyinheight 100

RemoveAllWeapons Strelec

;HI/3,1,2
;Edward Blue3

;Leti kolem BMP2
_camera camSetTarget [99055.31,46496.36,1965.09]
_camera camSetPos [8373.40,4369.61,91.58]
_camera camSetFOV 0.5
_camera camCommit 0
_camera camSetTarget Blue3
_camera camSetPos [8859.68,4619.11,66.99]
_camera camSetFOV 0.3
_camera camCommit 9
~0.5
One1 moveincommander Strelec
One2 moveingunner Strelec

Strelec Reveal Blue3
Strelec AddWeapon "Cannon30AA_wp"
Strelec SelectWeapon "Cannon30AA"
Strelec AddMagazine "Cannon30AA"

Strelec2 Reveal Blue3
Strelec2 AddWeapon "Cannon30AA_wp"
Strelec2 SelectWeapon "Cannon30AA"
Strelec2 AddMagazine "Cannon30AA"

Blue4 move getpos Modry3_6
~0.5
Blue2 move getpos Modry2_6
~0.5
Blue3 move getpos Modry1_6
~5.3

Blue2 setpos [(getpos Modry1_5 select 0),(getpos Modry1_5 select 1),+140]
Blue3 setpos [(getpos Modry2_5 select 0),(getpos Modry2_5 select 1),+145]
Blue4 setpos [(getpos Modry3_5 select 0),(getpos Modry3_5 select 1),+150]

Blue2 setvelocity [50,0,0]
Blue3 setvelocity [50,0,0]
Blue4 setvelocity [50,0,0]
Blue2 setdir 90
Blue3 setdir 90
Blue4 setdir 90
Blue2 flyinheight 140
Blue3 flyinheight 145
Blue4 flyinheight 150

setacctime 0.75

Strelec2 Dofire Blue3
Strelec Dofire Blue3
Strelec setbehaviour "Combat"

[Kamera1] Exec "Air_Zapalovac.sqs"

_camera camSetTarget [-90501.05,3923.75,8672.07]
_camera camSetPos [9133.67,4517.46,1.80]
_camera camSetFOV 0.454
_camera camCommit 0
_camera camSetTarget Blue3
_camera camSetPos [9129.39,4513.97,2.60]
_camera camSetFOV 0.536
_camera camCommit 20
~5
[Strelec,Blue3] Exec "BvpFire.sqs"
~1
[Strelec2,Blue3] Exec "BvpFire.sqs"
~3
2 Fademusic 0.2
~2
_camera say "Ed_Say4"
titletext [Localize "STR_veta_11","PLAIN DOWN",0.3]

[Blue3] Exec "Air_fire.sqs"
~2.5
2 Fademusic 0.75
~3

#Bloom

0 fadesound 0

Deletevehicle Blue1
Deletevehicle Blue2
Deletevehicle Blue3
Deletevehicle Blue4

Deletevehicle RobP
Deletevehicle BloomP
Deletevehicle WillP
Deletevehicle JohnP

Kamera1 setpos [(getpos Ca2 select 0),(getpos Ca2 select 1),+500]
Kamera2 setpos [(getpos Ca1 select 0),(getpos Ca1 select 1),+492]

setacctime 0.75
[] exec "Otocka.sqs"

setviewdistance 850

_camera = "camera" camcreate [1,10,100]
_camera cameraEffect ["internal","back"]
_who = Kamera2
_dx = -20;
_dy = -0;
_dz = -13;
#znovu10
_camera camSetTarget [(getpos Kamera1 select 0)+0,(getpos Kamera1 select 1)-2.5,(getpos Kamera1 select 2)+0]
_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.35
_camera camCommit 0
@camCommitted _camera
~0.01
? interend10: goto "opakuj10"
goto "znovu10"
#opakuj10

setviewdistance 1100
_camera camSetTarget [-60095.21,74645.61,6416.37]
_camera camSetPos [9966.70,3563.46,1.27]
_camera camSetFOV 0.485
_camera camCommit 0
_camera camSetTarget BloomV
_camera camSetPos [9966.70,3563.46,3.79]
_camera camSetFOV 0.485
_camera camCommit 8.7
~8.7

setacctime 1

_camera camSetTarget [-74686.48,-36974.50,32228.03]
_camera camSetPos [10723.96,3950.62,0.89]
_camera camSetFOV 0.45
_camera camCommit 0
_camera camSetTarget BloomV
_camera camSetPos [10723.96,3950.62,8.07]
_camera camSetFOV 0.35
_camera camCommit 9
~4

11 Fademusic 0

BloomV Flyinheight 100
~4
[BloomV] exec "Down.sqs"

@not alive BloomV
Detonace setdamage 1
Deletevehicle BloomV

0 fadesound 1
Playsound "fx_Wind"
setacctime 0.1

NazovPadaku setdir 340
NazovPadaku setvelocity [0,0,0]
NazovPadaku setpos [(getpos Kvetak_down select 0),(getpos Kvetak_down select 1),+50]

_camera camSetTarget [61131.60,71339.90,-53628.93]
_camera camSetPos [10823.45,3739.27,83.58]
_camera camSetFOV 0.571
_camera camCommit 0
_camera camSetTarget [98227.70,-44001.46,8593.56]
_camera camSetPos [10794.41,3795.53,44.91]
_camera camSetFOV 0.571
_camera camCommit 1.3

~1.3
Nazovpadaku setpos [10848.52,3753.60,3.2]

_camera camSetTarget [22156.95,39942.94,-92358.04]
_camera camSetPos [10842.85,3762.78,49.54]
_camera camSetFOV 0.816
_camera camCommit 0
_camera camSetTarget [11618.30,10628.96,-99692.99]
_camera camSetPos [10847.12,3777.96,7.29]
_camera camSetFOV 0.816
_camera camCommit 0.6
~0.35
Playsound "fx_Para"
~0.17
Nazovpadaku setdir 25
setacctime 1
_camera camSetTarget [83298.80,-45510.29,-48061.40]
_camera camSetPos [10845.99,3756.08,10.27]
_camera camSetFOV 0.700
_camera camCommit 0
_camera camSetTarget [3952.99,-76194.45,59796.94]
_camera camSetPos [10848.79,3757.88,1.5]
_camera camSetFOV 0.676
_camera camCommit 2.2
~3

Nazovpadaku Stop true

_camera camSetTarget [9275.08,58311.10,83921.44]
_camera camSetPos [10848.80,3752.19,0.37]
_camera camSetFOV 0.738
_camera camCommit 0
_camera camSetTarget [49102.63,-35177.90,83924.65]
_camera camSetPos [10848.05,3755.73,4.58]
_camera camSetFOV 0.738
_camera camCommit 10
~3

Nazovpadaku say "Ed_SAy6"
titletext [Localize "STR_veta_12","PLAIN DOWN",0.2]
~4
titlecut ["","BLACK Out",3]
~4
Nazovpadaku setdir 25
titlecut ["","BLACK In",3]
_camera camSetTarget [-55120.54,78031.65,11526.96]
_camera camSetPos [10852.26,3750.22,0.54]
_camera camSetFOV 0.700
_camera camCommit 0
_camera camSetTarget [-68065.59,-57054.50,-8457.87]
_camera camSetPos [10853.01,3757.29,1.32]
_camera camSetFOV 0.700
_camera camCommit 10
~5
Playsound "fx_Ground"
Vovzduchu=true
~0.2
Edward Stop true
Edward Switchmove "CombatDyingVer3"

#Bloom2

titlecut ["","BLACK Out",3]
~5
setacctime 1
Playsound "sn_Lark1"
~0.6
Playsound "sn_Lark2"
~1

Deletevehicle Edward

Edward2 setpos [10845.71,3767.86]
Edward2 DoWatch [(GetPos Skoda select 0),(GetPos Skoda select 1),3]
Edward2 Playmove "FXInKneel"

Playsound "sn_Skylark"
~3.2
Playsound "sn_Lark1"
~0.8
Playsound "sn_Lark2"
~1.2
titlecut ["","BLACK In",8]

_camera camSetTarget [93547.77,57154.63,17731.24]
_camera camSetPos [10844.10,3766.25,0.22]
_camera camSetFOV 0.505
_camera camCommit 0
_camera camSetTarget [76191.20,-62263.61,37136.93]
_camera camSetPos [10844.57,3769.23,1]
_camera camSetFOV 0.505
_camera camCommit 15

~0.2
Playsound "sn_Skylark"
~3.2
Playsound "sn_Lark1"
~0.8
Playsound "sn_Lark2"
~0.8
Playsound "sn_Skylark"
~3.2
Playsound "sn_Lark1"
~0.8

Edward2 Switchmove "FXFromKneel"

Playsound "sn_Skylark"
~2
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"
Edward2 Playmove "CivilRunF"

_camera camSetTarget [-29737.52,95071.35,3862.94]
_camera camSetPos [10842.22,3751.52,0.71]
_camera camSetFOV 0.558
_camera camCommit 0
_camera camSetTarget [-56177.04,77971.23,-938.10]
_camera camSetPos [10820.93,3741.04,2.53]
_camera camSetFOV 0.500
_camera camCommit 20

Playsound "sn_Lark1"
~0.8
Edward2 Playmove "CivilRunF"
Playsound "sn_Lark2"
~0.8
Edward2 Playmove "CivilRunF"
Playsound "sn_Skylark"
~3.2
Edward2 Playmove "CivilRunF"
Playsound "sn_Lark1"
~0.8
Edward2 Playmove "CivilRunF"
Playsound "sn_Lark2"
~0.5
Playsound "sn_Skylark"
~3.2
Playsound "sn_Lark1"
~0.8
Playsound "sn_Lark2"
~0.8

titlecut ["","BLACK Out",6]

Playsound "sn_Skylark"
~3.2
Playsound "sn_Lark1"
~3.2

konec=true
player cameraEffect ["terminate","back"]
camDestroy _camera

;Kua uz nikdy vic tocit takovou sracku jako tady toto!
;Porad editujes a hovno hovno
;Letadla jsou to nejhorsi co Vase kamera muze zachytit do OFP objektivu
;Kam se hrabe na VNJ, kdeeee...  Holy SHIT!?

EXIT