; USMC_Gaia Intro movie by Phaeden, 2003
; 
t1 exec "init.sqs"

_camera = "camera" camCreate [500,500,5]
_camera cameraEffect ["internal","back"]

#start

;-----------------------cutscene-------------------------------

setacctime 0.5

;0.5 fadesound 0.5

_camera = "camera" camCreate [0,0,0]
_camera cameraEffect ["internal","back"]

_camera camsettarget t5
_camera camsetrelpos [0,120,0.75]
_camera camcommit 0


_camera camsettarget t4
_camera camsetrelpos [40,50,5]
_camera camcommit 16

~1
titletext ["\n\n\nU S M C _ G A I A                                                                                                    \n\n\nPhaeden [USMC]                                                                                                    \n2003                                                                                                    ","PLAIN",1]
~6.75

titletext ["","PLAIN",1]
~2
titletext ["\n\n\n\n\n\nDedicated to my loving wife                                                                                                    \nEllie                                                                                                    ","PLAIN",1]
~5.5

titletext ["","Black IN",0.25]
_camera camsettarget r2
_camera camsetrelpos [3,-20,4]
_camera camcommit 0


~2
titletext ["","Black IN",0.25]
_camera camsettarget r3
_camera camsetrelpos [5,-10,0.5]
_camera camcommit 0
~0.3
titletext ["\n\n\n\n\n\nMarines at the Ready...                                                                                                    ","PLAIN",1]
~3.7
titletext ["","PLAIN",1]

titletext ["","Black IN",0.25]
_camera camsettarget r1
_camera camsetrelpos [1,-12,2]
_camera camcommit 0

~4

titletext ["","Black IN",0.25]
_camera camsettarget r5
_camera camsetrelpos [-3,-15,5]
_camera camcommit 0

~4

titletext ["","Black IN",0.25]
_camera camsettarget r7
_camera camsetrelpos [1,-5,1]
_camera camcommit 0

~4
;engagement


setacctime 0.6

_camera camsettarget t2
_camera camcommit 5

~5

setacctime 0.5

_camera camsettarget m1
_camera camcommit 4

~3

[] exec "clock.sqs"

~1

;time is in slow motion

setacctime 0.05

_camera camsettarget r2
_camera camsetrelpos [-0.5,-2,0.75]
_camera camcommit 0

~1

_camera camsettarget m2
_camera camsetrelpos [-5,-1,1]
_camera camcommit 0

~0.5
_camera camsetFOV 1.75
_camera camsettarget t6
_camera camsetrelpos [-29,32,2.5]
_camera camcommit 0


~1.5

_camera camsetFOV 1.0
_camera camsettarget r6
_camera camsetrelpos [0.75,-2,1.95]
_camera camcommit 0

~1

_camera camsettarget t2
_camera camsetrelpos [-12.5,15,0.75]
_camera camcommit 0

~1

_camera camsettarget r2
_camera camsetrelpos [0.5,-1,0.75]
_camera camcommit 0

~1

_camera camsettarget t6
_camera camsetrelpos [-1.5,-22,3.75]
_camera camcommit 0

~1

_camera camsettarget r9
_camera camsetrelpos [0.5,-4,0.75]
_camera camcommit 0

~1

_camera camsettarget t1
_camera camsetrelpos [-1.5,-14.5,0.75]
_camera camcommit 0

~1

_camera camsettarget r4
_camera camsetrelpos [-1.5,-2.5,0.75]
_camera camcommit 0

~1

_camera camsettarget t1
_camera camsetrelpos [-35,-2,0.75]
_camera camcommit 0

~1

_camera camsettarget m3
_camera camsetrelpos [-10,-7,5]
_camera camcommit 0

~1

_camera camsettarget r3
_camera camsetrelpos [-15,-5,3]
_camera camcommit 0

~1

_camera camsettarget m4
_camera camsetrelpos [-1.5,-2.5,0.75]
_camera camcommit 0

~1

_camera camsettarget t4
_camera camsetrelpos [-15,20,3]
_camera camcommit 0

~1

_camera camsettarget r1
_camera camsetrelpos [-0.5,-7,0.75]
_camera camcommit 0

~1

_camera camsettarget m3
_camera camsetrelpos [0.5,-2,0.75]
_camera camcommit 0

~1

_camera camsettarget t2
_camera camsetrelpos [10.5,-2,5]
_camera camcommit 0

~1

_camera camsettarget m8
_camera camsetrelpos [-0.5,-3,0.75]
_camera camcommit 0

~1

_camera camsettarget m5
_camera camsetrelpos [0.5,-5,0.75]
_camera camcommit 0

~1

_camera camsettarget t4
_camera camsetrelpos [-11.5,-15.5,6.5]
_camera camcommit 0

~1

_camera camsettarget t1
_camera camsetrelpos [-25,30,1]
_camera camcommit 5

~4.75

_camera camsettarget m1
_camera camsetrelpos [-17,-20,70]
_camera camcommit 9

~1
setacctime 0.2
~1
setAccTime 0.3
~1
setAccTime 0.4
~1
setAccTime 0.5
~1
setAccTime 0.6
~1
setAccTime 0.7
~1
setAccTime 0.8
~1
setacctime 0.9
~1
setacctime 1.0

_camera camsettarget t5
_camera camsetrelpos [50,-60,110]
_camera camcommit 15

~15

0 setovercast 0.05

titletext ["","Black IN",3]

goto "last"

---------------------------------------------
#last

_timewarp = random 24

skiptime _timewarp

_camera = "camera" camCreate [500,500,5]
_camera cameraEffect ["internal","back"]

0 setFog 0

0 fadesound 0.25

_camera camsettarget endmovie1
_camera camsetrelpos [1+random 200 -random 400,50+random 200 -random 400,0 +random 50-random 100]
_camera camcommit 0

~0

_camera camsettarget endmovie1
_camera camsetrelpos [2+random 200-random 400,2+random 200 -random 200,-90 +random 40]
_camera camcommit 15+random 60

~5+random 10

goto "last"

