goto _this
titleText ["!!!  E R R O R  !!!  SCRIPT ENDS  !!!  E R R O R  !!!","Plain"]
exit


#SETUP
;*******************
ECP_lod_enable = false
setAccTime 1; 0 fadeMusic 0.5; 0 fadeSound 0.5
_scenes = ["01","02","03","04","05","06","07","08","09","10","11","12"]
_sccount = (count _scenes)
_rand = (random _sccount)
_rand = _rand - (_rand mod 1)
_first = (_scenes select _rand)
_last = _first
_camera = "Camera" camCreate [0,0,0]
_camera cameraEffect ["Internal","Back"]
{MUSIC} exec "intro.sqs"
goto _first
;-------------------


#00
;MAINTENANCE
;*******************
_rand = (random _sccount)
_rand = _rand - (_rand mod 1)
_next = (_scenes select _rand)
~0.1
? ((_next == _last) || (_next == _before)) : goto "00"
goto _next
;-------------------


#01
;GODERICK
;*******************
_ts = [[100660.51,8767.49,-4593.89],[13482.62,97209.13,-32118.36]]
_ps = [[914.03,3360.81,4.82],[914.03,3360.81,14.70]]
_s1 = 0; _s2 = 1
? (random 1 > 0.5) : _s1 = 1; _s2 = 0
_t1 = _ts select _s1; _p1 = _ps select _s1
_t2 = _ts select _s2; _p2 = _ps select _s2
_camera camSetTarget _t1
_camera camSetPos _p1
_camera camSetFov 0.7
_camera camCommit 0
@camCommitted _camera
~1.5
_camera camSetTarget _t2
_camera camSetPos _p2
_camera camCommit 15
@camCommitted _camera
~1
_before = _last
~0.5
_last = "01"
goto "00"
;-------------------


#02
;LUMBERJACKS
;*******************
_ts = [[52963.24,6649.18,-85589.75],[99523.97,9391.63,19278.23]]
_ps = [[1563.33,3621.71,91.62],[1563.33,3621.71,0.40]]
_s1 = 0; _s2 = 1; _w1 = 1.5; _w2 = 4
? (random 1 > 0.5) : _s1 = 1; _s2 = 0; _w1 = 4; _w2 = 1
_t1 = _ts select _s1; _p1 = _ps select _s1
_t2 = _ts select _s2; _p2 = _ps select _s2
_camera camSetTarget _t1
_camera camSetPos _p1
_camera camSetFov 0.7
_camera camCommit 0
@camCommitted _camera
~_w1
_camera camSetTarget _t2
_camera camSetPos _p2
_camera camCommit 30
@camCommitted _camera
~_w2
_before = _last
~0.5
_last = "02"
goto "00"
;-------------------


#03
;WANTED
;*******************
_ts = [[1775.44,102894.78,1335.23],[1775.44,102894.78,1335.53]]
_ps = [[1573.94,2903.28,1.5],[1577.92,2903.28,1.5]]
_s1 = 0; _s2 = 1
? (random 1 > 0.5) : _s1 = 1; _s2 = 0
_t1 = _ts select _s1; _p1 = _ps select _s1
_t2 = _ts select _s2; _p2 = _ps select _s2
_camera camSetTarget _t1
_camera camSetPos _p1
_camera camSetFov 0.75
_camera camCommit 0
@camCommitted _camera
0 setFog 1
~2.5
_camera camSetTarget _t2
_camera camSetPos _p2
_camera camCommit 10
@camCommitted _camera
0 setFog 0
~2
_before = _last
~0.5
_last = "03"
goto "00"
;-------------------


#04
;BRACKNELL
;*******************
aP_1 setFormDir 110
aP_1 switchMove "FXInKneel"
? (random 1 > 0.5) : goto "04A"
_camera camSetTarget [90817.31,-35674.22,-23635.82]
_camera camSetPos [2697.10,5117.80,0.65]
_camera camSetFov 0.741
_camera camCommit 0
@camCommitted _camera
~2.5
_camera camSetTarget [90817.31,-35674.22,-23635.57]
_camera camSetFov 0.010
_camera camCommit 15
@camCommitted _camera
Civ1 playMove "FXCivilLookAround"
goto "04B"
#04A
Civ1 playMove "FXCivilLookAround"
_camera camSetTarget [90817.31,-35674.22,-23635.57]
_camera camSetPos [2697.10,5117.80,0.65]
_camera camSetFov 0.010
_camera camCommit 0
@camCommitted _camera
~2.5
_camera camSetTarget [90817.31,-35674.22,-23635.82]
_camera camSetFov 0.741
_camera camCommit 15
@camCommitted _camera
#04B
~2
_before = _last
~0.5
_last = "04"
goto "00"
;-------------------


#05
;RUINS
;*******************
_ts = [[-91710.45,238.31,-24294.97],[-93479.53,5528.11,-16570.71]]
_ps = [[5131.34,5729.77,16.93],[5066.90,5729.73,8.15]]
_s1 = 0; _s2 = 1
? (random 1 > 0.5) : _s1 = 1; _s2 = 0
_t1 = _ts select _s1; _p1 = _ps select _s1
_t2 = _ts select _s2; _p2 = _ps select _s2
_camera camSetTarget _t1
_camera camSetPos _p1
_camera camSetFov 0.7
_camera camCommit 0
@camCommitted _camera
~1.5
_camera camSetTarget _t2
_camera camSetPos _p2
_camera camCommit 15
@camCommitted _camera
~1
_before = _last
~0.5
_last = "05"
goto "00"
;-------------------


#06
;LIENA
;*******************
_ps = [[5488.28,3669.80,1.99],[5527.39,3636.34,3.82]]
_s1 = 0; _s2 = 1
? (random 1 > 0.5) : _s1 = 1; _s2 = 0
_p1 = _ps select _s1
_p2 = _ps select _s2
_camera camSetTarget [-59513.72,-72312.66,-1287.13]
_camera camSetPos _p1
_camera camSetFov 0.7
_camera camCommit 0
@camCommitted _camera
~1.5
_camera camSetPos _p2
_camera camCommit 15
@camCommitted _camera
~1
_before = _last
~0.5
_last = "06"
goto "00"
;-------------------


#07
;WESTBURY
;*******************
? (random 1 > 0.5) : goto "07A"
_camera camSetTarget [101908.92,3769.74,498.58]
_camera camSetPos [2194.08,4473.81,0.73]
_camera camSetFov 0.7
_camera camCommit 0
@camCommitted _camera
~1.5
_camera camSetPos [1914.01,4475.93,0.73]
_camera camCommit 50
@camCommitted _camera
~1.5
_camera camSetTarget [3620.10,104460.35,498.47]
_camera camCommit 10
@camCommitted _camera
goto "07B"
#07A
_camera camSetTarget [3620.10,104460.35,498.47]
_camera camSetPos [1914.01,4475.93,0.73]
_camera camSetFov 0.7
_camera camCommit 0
@camCommitted _camera
~1.5
_camera camSetTarget [101908.92,3769.74,498.58]
_camera camCommit 10
@camCommitted _camera
~1.5
_camera camSetPos [2194.08,4473.81,0.73]
_camera camCommit 50
@camCommitted _camera
#07B
~1
_before = _last
~0.5
_last = "07"
goto "00"
;-------------------


#08
;ISLANDS
;*******************
? (random 1 > 0.5) : goto "08A"
_camera camSetTarget [-53591.29,86355.34,-20259.41]
_camera camSetPos [1027.39,5090.39,58.25]
_camera camSetFov 0.71
_camera camCommit 0
@camCommitted _camera
goto "08B"
#08A
_camera camSetTarget [-85127.69,50183.29,-1306.58]
_camera camSetPos [1940.76,1016.89,17.42]
_camera camSetFov 1.1
_camera camCommit 0
@camCommitted _camera
#08B
~4.5
_before = _last
~0.5
_last = "08"
goto "00"
;-------------------


#09
;KIMBERLEY
;*******************
_ts = [[-57290.64,83352.37,-5628.84],[-56632.28,82490.91,-15397.49]]
_ps = [[3324.05,4020.31,1.81],[3363.06,4000.43,23.24]]
_s1 = 0; _s2 = 1
? (random 1 > 0.5) : _s1 = 1; _s2 = 0
_t1 = _ts select _s1; _p1 = _ps select _s1
_t2 = _ts select _s2; _p2 = _ps select _s2
_camera camSetTarget _t1
_camera camSetPos _p1
_camera camSetFov 0.7
_camera camCommit 0
@camCommitted _camera
~1.5
_camera camSetTarget _t2
_camera camSetPos _p2
_camera camCommit 20
@camCommitted _camera
~1
_before = _last
~0.5
_last = "09"
goto "00"
;-------------------


#10
;ALVESTON
;*******************
_ts = [[17192.00,-97378.66,16.62],[15401.84,-83195.41,-51411.89]]
_ps = [[4669.15,1838.08,3.54],[4669.15,1838.08,93.61]]
_s1 = 0; _s2 = 1
? (random 1 > 0.5) : _s1 = 1; _s2 = 0
_t1 = _ts select _s1; _p1 = _ps select _s1
_t2 = _ts select _s2; _p2 = _ps select _s2
_camera camSetTarget _t1
_camera camSetPos _p1
_camera camSetFov 0.7
_camera camCommit 0
@camCommitted _camera
~1.5
_camera camSetTarget _t2
_camera camSetPos _p2
_camera camCommit 15
@camCommitted _camera
~1
_before = _last
~0.5
_last = "10"
goto "00"
;-------------------


#11
;BASE
;*******************
_ts = [[55224.17,-77300.77,-27912.13],[-41338.56,-83601.09,-18000.10]]
_ps = [[3735.04,3727.15,17.21],[3654.99,3858.49,15.46]]
_s1 = 0; _s2 = 1
? (random 1 > 0.5) : _s1 = 1; _s2 = 0
_t1 = _ts select _s1; _p1 = _ps select _s1
_t2 = _ts select _s2; _p2 = _ps select _s2
_camera camSetTarget _t1
_camera camSetPos _p1
_camera camSetFov 0.656
_camera camCommit 0
@camCommitted _camera
~2.5
_camera camSetTarget _t2
_camera camSetPos _p2
_camera camCommit 20
@camCommitted _camera
~2
_before = _last
~0.5
_last = "11"
goto "00"
;-------------------


#12
;CHUDLEIGH
;*******************
_ts = [[-42070.98,-85462.43,-6952.16],[-47610.02,-81718.57,-12023.40]]
_ps = [[4695.05,2649.83,1.18],[4695.05,2649.83,7.04]]
_s1 = 0; _s2 = 1
? (random 1 > 0.5) : _s1 = 1; _s2 = 0
_t1 = _ts select _s1; _p1 = _ps select _s1
_t2 = _ts select _s2; _p2 = _ps select _s2
_camera camSetTarget _t1
_camera camSetPos _p1
_camera camSetFov 0.7
_camera camCommit 0
@camCommitted _camera
~1.5
_camera camSetTarget _t2
_camera camSetPos _p2
_camera camCommit 10
@camCommitted _camera
~1
_before = _last
~0.5
_last = "12"
goto "00"
;-------------------


#MUSIC
;*******************
~(random 5)
_skip = (random 1)
? _skip < 0.33 : goto "MUSIC_SKIP1"
? _skip < 0.66 : goto "MUSIC_SKIP2"
#MUSIC_LOOP
playMusic "MERCS_Night"
~121
#MUSIC_SKIP1
playMusic "MERCS_Stealth"
~170
#MUSIC_SKIP2
playMusic "MERCS_Tenement"
~176
goto "MUSIC_LOOP"
;-------------------
