source: nikanabo/current/bsl/orig_mac/IGMD/tctf_ii/tctf_ii_cutscene.bsl @ 185

Last change on this file since 185 was 185, checked in by geyser, 14 years ago
File size: 11.1 KB
Line 
1#
2# tctf_cutscene.bsl
3#
4
5func void
6Intro(
7        void)
8{
9        fade_out 0 0 0 0
10        cm_interpolate IntroCam01 0
11        sleep f14
12        begin_cutscene weapon
13        marketing_line_off=1
14        letterbox 1
15        sleep f60
16        invincible=1
17        obj_create 401 402
18        obj_create 404 407
19        fade_in 90
20        #Outside shot of TCTF
21        cm_interpolate IntroCam01 0
22        playback 0 IntroKonokoSet
23        sleep f300
24        #Griffin and Guy talking
25        chr_create 1201 start
26        chr_create 1202 start
27        playback 1202 IntroTCTF01
28        #make this box animation last as long as conversation
29        chr_envanim 1201 IntroGriffinBox01
30        chr_animate 1201 COMGUYsit_idle1 1800
31        #Conversation between the two
32        cm_interpolate IntroCam02 0
33        sound_dialog_play c14_50_01scigoon1
34        cinematic_start (COPtalking, 180, 180, 15, 1, 20, false)
35        sound_dialog_play_block pause
36        cm_interpolate IntroCamGriffin 0
37        sound_dialog_play c14_50_02griffin
38        cinematic_start (GRIFtalking, 180, 180, 16, 3, 20, true)
39        sound_dialog_play_block pause
40        #TCTF walks out
41        sound_music_start atm_low_perc2 0.8
42        cm_interpolate IntroCam02 0
43        playback 1202 IntroTCTF02
44        sound_dialog_play c14_50_03scigoon1
45        sleep f240
46        cinematic_stop (COPtalking, 15, 20)
47        cinematic_stop (GRIFtalking, 15, 20)
48        sleep f60
49        door_open 70
50        door_jam 70
51        sleep f100
52        #KONOKO on roof
53        playback 0 IntroKonoko01
54        cm_interpolate IntroCamInside01 0
55        cm_interpolate_block IntroCamInside02 400
56        sleep f400
57        cm_anim both IntroCamRoof
58        sleep f210
59        #Konoko falls into view
60        cm_anim both IntroCamFall01
61        chr_envanim 0 IntroKonBox01 norotation
62        chr_animate 0 KONOKOlev18_IntroFall01 140
63        #Griffin gets surprised
64        chr_delete 1202
65        cm_anim_block both IntroCamStand01
66        chr_envanim 1201 IntroGriffinBox02 norotation
67        chr_animate 1201 GRIFINlev18_IntroStand 110
68        env_anim 401 401
69        sleep f88
70        #Konoko enters office
71        playback 0 IntroKonoko02
72        cm_interpolate_block IntroCamKonAim01 0
73        cm_interpolate_block IntroCamKonAim02 350
74        sleep f140
75        cinematic_start(KONangryfront, 180, 180, 18, 6, 30, true)
76        sound_dialog_play c14_50_04konoko
77        sound_dialog_play_block pause
78        cinematic_stop (KONangryfront, 18, 30)
79        #Conversation with Griffin
80        playback 1201 IntroGriffin
81        cm_interpolate IntroCamGriffin02 0
82        cinematic_start(GRIFtalkangry, 180,180,18,6,30, true)
83        sound_dialog_play c14_50_05griffin
84        sound_dialog_play_block pause
85        cinematic_stop (GRIFtalkangry, 18, 30)
86        #Griffin's office goes down
87        sound_music_volume atm_low_perc2 0.0 0.5
88        sound_music_stop atm_low_perc2
89        music_intro
90        env_show 403 0
91        obj_create 403 403
92        cm_anim both IntroCamEscape01
93        chr_envanim 1201 IntroGriffinBox03 norotation
94        env_setanim 401 IntroChair02
95        env_anim 402 407
96        cutscene_sync mark
97        sound_ambient_start c14_46_11grifdesk
98        sleep f16
99        playback 0 IntroKonokoAim fromhere
100        cm_anim_block both IntroCamEscape02
101        cm_wait
102        cm_reset
103        obj_kill 401 407
104        # look out Stefan is editing scripts; yo foolios need to turn back on the laser sight :O)
105        marketing_line_off=0
106        end_cutscene
107        invincible=0
108        chr_delete 1201
109        door_unjam 70
110        door_close 70
111        # who is a foolio? the foo or the foo who follows him?
112        s1
113}
114
115
116func void
117GrifSpawn(
118        void)
119{
120        ai2_spawn ZomGrif
121        chr_invincible ZomGrif 1
122        chr_unstoppable ZomGrif 1
123        ai2_makeignoreplayer ZomGrif 1
124        ai2_setmovementmode ZomGrif walk
125        playback ZomGrif ZomGrifDraw
126}
127
128func void create_zomshin(void)
129{
130        ai2_spawn ZomShin
131        ai2_passive ZomShin 1
132        chr_shadow ZomShin 0
133        chr_invincible ZomShin 1
134        chr_unstoppable ZomShin 1
135        chr_nocollision ZomShin 1
136        chr_neutral ZomShin 1
137        chr_lock_active ZomShin
138}
139
140func void
141Base(
142        void)
143{
144        begin_cutscene
145        #place Griffin here earlier
146        #chr_neutral ZomGrif 1
147        sleep f20
148        #playback ZomGrif BaseGriffin01
149        cm_interpolate BaseCam01 180
150        sleep f210
151        #place Konoko
152        playback 0 BaseKonoko01
153        cm_interpolate BaseCam02 0
154        cm_interpolate_block BaseCam04 500
155        sound_dialog_play c14_51_01konoko
156        cinematic_start(KONangryfront, 180,180,19,7,20, true)
157        sound_dialog_play_block pause
158        cinematic_stop (KONangryfront, 19, 20)
159        cm_interpolate BaseCam01 0
160        cm_interpolate_block BaseCam03 600
161        sound_dialog_play c14_51_02griffin
162        cinematic_start(GRIFtalkangry, 180,180,20,9,20, true)
163        sound_dialog_play_block pause
164        cutscene_sync mark
165        sound_ambient_start c15_04_23_effects
166        sound_dialog_play c14_51_03griffin
167        #Shinzom comes out of ground
168        create_zomshin
169        chr_envanim ZomShin ChairShinBox01
170        obj_create 171 174
171        env_anim 171 174
172        obj_shade 171 174 .5 .5 .5
173        cm_anim both ChairCamZomUp
174        #chr_create ZomShin start
175        #chr_neutral ZomShin 1
176        sleep f270
177        particle zombiespark pulse
178
179        cm_wait
180
181        particle zombient start
182        #hide Chair object, show chair gunk
183        env_show 171 1
184        env_show 172 1
185        env_show 173 1
186        env_show 174 1
187        obj_kill 171 174
188        cm_interpolate BaseCamShin01 0
189        playback ZomShin BaseShin
190        cm_interpolate_block BaseCamShin02 300
191        sound_dialog_play_block
192        cinematic_stop (GRIFtalkangry, 20, 20)
193        sound_dialog_play c14_51_04shinatama
194        cinematic_start(SHINZOMlistening, 180,180,19,7,20, false)
195        sound_dialog_play_block
196        cinematic_stop (SHINZOMlistening, 19, 20)
197        sleep f30
198        particle Forcefield do start
199        sound_ambient_start zomshin_amb_loop 0.1
200        sound_ambient_volume zomshin_amb_loop 1.0 1.0
201        cm_interpolate BaseCam02 0
202        sound_dialog_play c14_51_05konoko
203        cinematic_start(KONscared, 180,180,20,9,20, true)
204        sound_dialog_play_block
205        cinematic_stop (KONscared, 20, 20)
206        playback ZomShin BaseShin
207        cm_interpolate_block BaseCamShin02 0
208        sound_dialog_play c14_51_06shinatama
209        cinematic_start(SHINZOMlistening, 180,180,19,7,20, false)
210        particle zombiesteam start
211        sound_dialog_play_block pause
212        cinematic_stop (SHINZOMlistening, 19, 20)
213#       cm_reset
214#       trig_show 9
215#       trig_activate 9
216        end_cutscene
217        music_zom
218        ai2_passive ZomShin 1
219        ai2_makeignoreplayer ZomGrif 1
220        zombie_round_2
221#       ai2_allpassive 1
222#       remove line below after zomshin puzzle is fixed
223#       Zom
224}
225
226func void fade_out_zom_amb(void)
227{
228        sound_ambient_volume zomshin_amb_loop 0.0 1.0
229        sleep 60
230        sound_ambient_stop zomshin_amb_loop
231}
232
233func void
234Zom(
235        void)
236{
237        env_show 1010 0
238        particle Forcefield do stop
239        fork fade_out_zom_amb
240        begin_cutscene
241        marketing_line_off=1
242        #Shinatama will already be created
243        #show the destruction of the turrets and the forcefield around Griffin
244        #cm_interpolate ZomCamGrif01 0
245        ai2_setmovementmode ZomGrif walk
246        playback ZomGrif ZomGrifDrawSet
247        #sleep f120
248        #Shinatama gets up out of chair
249        chr_shadow ZomShin 1
250        chr_invincible ZomShin 0
251        chr_unstoppable ZomShin 0
252        chr_envanim ZomShin ZomShinBox01 norotation
253        chr_animate ZomShin SHINZOMlev18_Free
254        cm_anim both ZomCamFree01
255        sleep f90
256        cutscene_sync mark
257        sound_ambient_start c_shin_escape
258        cm_wait
259        #Griffin says "what are you doing?"
260        cm_interpolate ZomCamGrif01 0
261        sound_dialog_play c14_52_01griffin
262        cinematic_start(GRIFtalkangry, 180,180,19,7,20, false)
263        sound_dialog_play_block
264        cinematic_stop(GRIFtalkangry, 19,20)
265        #Shinatama approaches Griffin
266        cm_interpolate ZomCamShinStart 0
267        playback ZomShin ZomShinSet
268        chr_animate ZomShin SHINZOMwalk1 180
269        chr_nocollision ZomShin 0
270        sleep f175
271        #Griffin says GET BACK OR I'll SHOOT
272        #cm_interpolate ZomCamGrif01 0
273        #playback ZomGrif ZomGrifDrawSet
274        #sleep f120
275        #Shin keeps coming
276        #cm_interpolate ZomCamShinApproach 0
277        playback ZomShin ZomShinWalk
278        chr_animate ZomShin SHINZOMwalk1 600
279        #sleep f120
280        #Griffin draws weapon
281        cm_interpolate ZomCamGrif01 0
282        playback ZomGrif ZomGrifDrawSet
283        sleep f30
284        #sound_dialog_play c14_52_01bgriffin
285        playback ZomGrif ZomGrifDraw
286        sleep f60
287        #konoko drops weapon
288        playback 0 ZomKonokoDrop
289        #Shinatama Approaches Griffin
290        cm_interpolate ZomCamBoth 0
291        sleep f180
292        #Griffin shoots
293        cm_interpolate ZomCamGrifShoot 0
294        playback ZomGrif ZomGrifShoot
295        sleep f50
296        #Shinatama gets hit
297        cm_interpolate ZomCamShinDie 0
298        chr_animate ZomShin SHINZOMshot 126
299        sound_ambient_start c_shin_die 1.0
300        sleep f120
301        #Show Griffin over Shinatama
302        cm_interpolate ZomCamDead 0
303        playback ZomGrif ZomGriffinKilled
304        chr_animate ZomShin SHINZOMfallen_front 1000
305        sleep f10
306        cm_interpolate ZomCamKonokoBehind 270
307        playback 0 ZomKonokoBehind
308        sleep f280
309        #Griffin turns and gets thrown
310        # CB: we force omnipotent off because it breaks this cutscene (you kill
311        # griffin prematurely)
312        omnipotent = 0
313        chr_invincible ZomGrif 0
314        chr_unstoppable ZomGrif 0
315        ai2_kill ZomShin
316        chr_neutral ZomGrif 0
317        cm_interpolate ZomCamThrow 0
318        playback ZomGrif ZomGriffinTurn
319        playback 0 ZomKonokoThrow
320        sleep f140
321        #Knoko holds him down
322        cm_interpolate ZomCamKonokoAim02 0
323        chr_neutral ZomGrif 1
324        chr_envanim ZomGrif ZomGriffinBox01 norotation
325        chr_envanim 0 ZomKonokoBox01 norotation
326        chr_animate 0 KONOKOlev18_ZomAim 300
327        chr_animate ZomGrif GRIFINlev18_ZomAim 500
328        sound_dialog_play c14_52_02konoko
329        cinematic_start(KONangryfront, 180,180,19,7,20, false)
330        sound_dialog_play_block pause
331        #Looking down at griffin
332        #chr_envanim 0 ZomKonokoBox01 norotation
333        #chr_envanim ZomGrif ZomGriffinBox01 norotation
334        #chr_animate 0 KONOKOlev18_ZomAim 300
335        #chr_animate ZomGrif GRIFINlev18_ZomAim 500
336        #cm_interpolate ZomCamKonokoAim01 0
337        #KONoko gets off Griffin
338        #cm_interpolate ZomCamKonokoAim02 0
339        chr_envanim 0 ZomKonokoBox02 norotation
340        chr_envanim ZomGrif ZomGriffinBox01 norotation
341        chr_animate ZomGrif GRIFINlev18_ZomAim 500
342        chr_animate 0 KONOKOlev18_ZomUp 120
343        #sound_dialog_play c14_52_04konoko
344        #Griffin gets up put the gun down
345        sleep f100
346        cm_interpolate ZomCamGriffinUp 0
347        chr_envanim ZomGrif ZomGriffinBox02 norotation
348        chr_animate ZomGrif GRIFINlev18_ZomUp
349        sound_dialog_play c14_52_03griffin
350        cinematic_start(GRIFbeatup, 180, 180, 20, 9, 20, true)
351        sound_dialog_play_block pause
352        #Konoko I'm a rogue agent, very dangerous
353        playback 0 ZomKonokoFace
354        cm_interpolate ZomCamKonokoFace 0
355        sound_dialog_play c14_52_04konoko
356        sound_dialog_play_block pause
357        #Griffin says youre a monster
358        cm_interpolate ZomCamGriffinFace 0
359        playback ZomGrif ZomGriffinFace
360        sound_dialog_play c14_52_05griffin
361        sound_dialog_play_block pause
362        #for you, badly
363        cm_interpolate ZomCamKonokoFace 0
364        sound_dialog_play c14_52_06konoko
365        sound_dialog_play_block pause
366        #Griffin says youre a monster
367        cm_interpolate ZomCamGriffinFace 0
368        sound_dialog_play c14_52_07griffin
369        sound_dialog_play_block pause
370        cinematic_stop(GRIFbeatup, 20, 20)
371        cinematic_stop(KONangryfront, 19, 20)
372        #Give player back control
373        cm_reset
374        end_cutscene
375        ai2_allpassive 1
376        chr_set_health ZomGrif 1
377        marketing_line_off=0
378        trigvolume_enable trigger_volume_35 1
379        objective_set(5)
380}
381
382func void
383OutroKill(
384        void)
385{
386        sound_music_start mus_wls 1.0
387        begin_cutscene jello
388        sleep f40
389        sound_dialog_play c14_53_01konoko
390        cinematic_start(KONintense, 180,180,19,8,20, false)
391        sound_dialog_play_block
392        cinematic_stop (KONintense, 19, 20)
393        fade_out 0 0 0 120
394        sleep f120
395        end_cutscene
396        win
397}
398
399
400func void
401OutroNoKill(
402        void)
403{
404        begin_cutscene jello
405        cm_detach
406        ai2_takecontrol 1
407        ai2_lookatchar 0 ZomGrif
408        ai2_lookatchar ZomGrif 0
409        sound_music_start mus_sad1
410        sound_dialog_play c14_54_01konoko
411        cinematic_start(KONlistening, 180,180,19,8,20, false)
412        sleep f120
413        cm_interpolate BaseCam01 180
414        sound_dialog_play_block
415        cinematic_stop (KONlistening, 19, 20)
416        fade_out 0 0 0 120
417        sleep f120
418        end_cutscene
419        win
420}
Note: See TracBrowser for help on using the repository browser.