extern m4x3f *_TEMP_VAR;
-/* This is the development one */
-static bool _skaterift_script_test( enum escript_event ev, const char *inf )
+static bool _skaterift_script_bind_player(void)
{
- static u32 state;
+ _cutscene.player_binding =
+ _cutscene_get_first_model_instance( "models/ch_none" );
+
+ if( !_cutscene.player_binding )
+ {
+ vg_error( "Failed to find models/ch_none in scene!" );
+ return 0;
+ }
+
+ return 1;
+}
+
+struct sr_subtitle
+{
+ const char *k, *v;
+};
+
+static void _skaterift_dialogue( struct sr_subtitle *subtitles, u32 *index,
+ const char *inf )
+{
+ u32 i = *index;
+
+ if( subtitles[i].k && vg_str_eq( inf, subtitles[ i ].k ) )
+ _cutscene_subtitle( subtitles[ i ++ ].v );
+
+ else if( vg_str_eq( inf, "clear_subs" ) )
+ _cutscene_subtitle( NULL );
+
+ *index = i;
+}
+
+static bool _skaterift_script_ch1s2( enum escript_event ev, const char *inf )
+{
+ static u32 state, subtitle_id;
static struct cs_instance *override_inst;
- static m4x3f *action_cam;
- static bool action_mode;
if( ev == k_escript_event_call )
{
state = k_escript_state_loading;
override_inst = NULL;
- action_cam = NULL;
- action_mode = 0;
+ subtitle_id = 0;
vg_info( "test:state = loading\n" );
}
if( ev == k_escript_event_cutscene_marker )
{
- if( vg_str_eq( inf, "action_cam" ) )
- action_mode = 1;
+ struct sr_subtitle EN[] = {
+ { "john_1", KCOL_JOHN "Well, here we are. Home." },
+ { "john_2", KCOL_JOHN "I mean, halfway home." },
+ { "john_3", KCOL_JOHN "Obviously you've forgotten quite a bit, so we'll stop off here" },
+ { "john_4", KCOL_JOHN "and I'll teach you some stuff again" },
+ { NULL, NULL },
+ };
+ _skaterift_dialogue( EN, &subtitle_id, inf );
- if( vg_str_eq( inf, "john_line_0" ) )
- _cutscene_subtitle( KCOL_JOHN "Mike mike mike, I need you to get over here now" );
+ return 0;
+ }
- if( vg_str_eq( inf, "mike_line_0" ) )
- _cutscene_subtitle( KCOL_MIKE "What is it now JC?" );
+ /* scene
+ * --------------------------------------------------------------- */
- if( vg_str_eq( inf, "john_line_1" ) )
- _cutscene_subtitle( KCOL_JOHN "Well we were out here, shooting this massive gap right?" );
+ if( state == k_escript_state_loading )
+ {
+ if( cmd_cutscene_load( 1, (const char *[]){ "metascenes/ch1s2.ms" } ) )
+ {
+ state = k_escript_state_initializing;
+ vg_info( "test:state = initializing\n" );
+ }
+ }
+
+ if( state == k_escript_state_initializing )
+ {
+ if( _cutscene.state == k_cutscene_state_ready )
+ {
+ _skaterift_script_bind_player();
+ state = k_escript_state_playing;
+ vg_info( "test:state = playing\n" );
+ _cutscene_play();
+ }
+ }
- if( vg_str_eq( inf, "john_line_1a" ) )
- _cutscene_subtitle( KCOL_JOHN "It was gonna be the perfect shot, and it was going so good" );
+ if( state == k_escript_state_playing )
+ {
+ if( _cutscene.state == k_cutscene_state_done )
+ {
+ state = k_escript_state_end;
+ vg_info( "test:state = end\n" );
+ _cutscene_unload();
+ return 1;
+ }
+ }
- if( vg_str_eq( inf, "john_line_2" ) )
- _cutscene_subtitle( KCOL_JOHN "Intro was perfect, got the perfect frame, angles lighting. PERFECT" );
+ return 0;
+}
+static bool _skaterift_script_ch1s3( enum escript_event ev, const char *inf )
+{
+ static u32 state, subtitle_id;
+ static struct cs_instance *override_inst;
- if( vg_str_eq( inf, "mike_line_1" ) )
- _cutscene_subtitle( KCOL_MIKE "Whatever mate, what happened?" );
+ if( ev == k_escript_event_call )
+ {
+ state = k_escript_state_loading;
+ override_inst = NULL;
+ subtitle_id = 0;
+ vg_info( "test:state = loading\n" );
+ }
- if( vg_str_eq( inf, "john_line_3" ) )
- _cutscene_subtitle( KCOL_JOHN "Uh yeah yeah, we were about 10 floors up right?" );
+ if( ev == k_escript_event_cutscene_marker )
+ {
+ struct sr_subtitle EN[] = {
+ { "john_1", KCOL_JOHN "Alright so, fliptricks." },
+ { "john_2", KCOL_JOHN "We spent ages practicing these before" },
+ { "john_3", KCOL_JOHN "Shouldn't take you long to get it again" },
+ { "john_4", KCOL_JOHN "see if you can get a tre-flip down there" },
+ { NULL, NULL },
+ };
+ _skaterift_dialogue( EN, &subtitle_id, inf );
- if( vg_str_eq( inf, "john_line_3a" ) )
- _cutscene_subtitle( KCOL_JOHN "Yeah uhhh, they didn't make the gap." );
+ return 0;
+ }
- if( vg_str_eq( inf, "john_line_4" ) )
- _cutscene_subtitle( KCOL_JOHN "And im im freaking out here man, it was worst case" );
+ /* scene
+ * --------------------------------------------------------------- */
- if( vg_str_eq( inf, "john_line_4a" ) )
- _cutscene_subtitle( KCOL_JOHN "I mean.. WORST CASE" );
+ if( state == k_escript_state_loading )
+ {
+ if( cmd_cutscene_load( 1, (const char *[]){ "metascenes/ch1s3.ms" } ) )
+ {
+ state = k_escript_state_initializing;
+ vg_info( "test:state = initializing\n" );
+ }
+ }
- if( vg_str_eq( inf, "mike_line_2" ) )
- _cutscene_subtitle( KCOL_MIKE "yeaahkay, what are you doing calling me instead of an ambo?" );
+ if( state == k_escript_state_initializing )
+ {
+ if( _cutscene.state == k_cutscene_state_ready )
+ {
+ _skaterift_script_bind_player();
+ state = k_escript_state_playing;
+ vg_info( "test:state = playing\n" );
+ _cutscene_play();
+ }
+ }
- if( vg_str_eq( inf, "john_line_5" ) )
- _cutscene_subtitle( KCOL_JOHN "I thought you could help us!" );
+ if( state == k_escript_state_playing )
+ {
+ if( _cutscene.state == k_cutscene_state_done )
+ {
+ state = k_escript_state_end;
+ vg_info( "test:state = end\n" );
+ _cutscene_unload();
+ return 1;
+ }
+ }
- if( vg_str_eq( inf, "mike_line_3" ) )
- _cutscene_subtitle( KCOL_MIKE "Hang up, and call tripple zero mate" );
+ return 0;
+}
- if( vg_str_eq( inf, "mike_line_3a" ) )
- _cutscene_subtitle( KCOL_MIKE "Did you even check if they were okay?" );
+static bool _skaterift_script_ch1s3b( enum escript_event ev, const char *inf )
+{
+ static u32 state, subtitle_id;
+ static struct cs_instance *override_inst;
- if( vg_str_eq( inf, "john_line_6" ) )
- _cutscene_subtitle( KCOL_JOHN "Holy crap, you're still alive!" );
- if( vg_str_eq( inf, "john_line_6a" ) )
- _cutscene_subtitle( KCOL_JOHN "Nevermind Mike, cheers" );
- if( vg_str_eq( inf, "john_line_7" ) )
- _cutscene_subtitle( KCOL_JOHN "Lets get out of here mate." );
+ if( ev == k_escript_event_call )
+ {
+ state = k_escript_state_loading;
+ override_inst = NULL;
+ subtitle_id = 0;
+ vg_info( "test:state = loading\n" );
+ }
- if( vg_str_eq( inf, "clear_subs" ) )
- _cutscene_subtitle( NULL );
+ if( ev == k_escript_event_cutscene_marker )
+ {
+ struct sr_subtitle EN[] = {
+ { "john_1", KCOL_JOHN "That is it mate!" },
+ { "john_2", KCOL_JOHN "You have still got it!" },
+ { NULL, NULL },
+ };
+ _skaterift_dialogue( EN, &subtitle_id, inf );
return 0;
}
if( state == k_escript_state_loading )
{
- if( cmd_cutscene_load( 1, (const char *[]){ "metascenes/test_scene.ms" } ) )
+ if( cmd_cutscene_load( 1, (const char *[]){ "metascenes/ch1s3b.ms" } ) )
{
state = k_escript_state_initializing;
vg_info( "test:state = initializing\n" );
{
if( _cutscene.state == k_cutscene_state_ready )
{
- override_inst = _cutscene_get_first_model_instance( "models/ch_none" );
+ _skaterift_script_bind_player();
+ state = k_escript_state_playing;
+ vg_info( "test:state = playing\n" );
+ _cutscene_play();
+ }
+ }
- if( !override_inst )
- {
- vg_error( "test: Failed to find player target" );
- return 1;
- }
+ if( state == k_escript_state_playing )
+ {
+ if( _cutscene.state == k_cutscene_state_done )
+ {
+ state = k_escript_state_end;
+ vg_info( "test:state = end\n" );
+ _cutscene_unload();
+ return 1;
+ }
+ }
+
+ return 0;
+}
+
+static bool _skaterift_script_ch1s4( enum escript_event ev, const char *inf )
+{
+ static u32 state, subtitle_id;
+ static struct cs_instance *override_inst;
+
+ if( ev == k_escript_event_call )
+ {
+ state = k_escript_state_loading;
+ override_inst = NULL;
+ subtitle_id = 0;
+ vg_info( "test:state = loading\n" );
+ }
+
+ if( ev == k_escript_event_cutscene_marker )
+ {
+ struct sr_subtitle EN[] = {
+ { "john_1", KCOL_JOHN "Remember these courses we were setting up?" },
+ { "john_2", KCOL_JOHN "Nah?" },
+ { "john_3", KCOL_JOHN "Alright well uh, to jog your memory.." },
+ { "john_4", KCOL_JOHN "Get yourself down through the gates as quick as possible" },
+ { "john_5", KCOL_JOHN "Thats it." },
+ { "john_6", KCOL_JOHN "Give it a shot mate" },
+ { NULL, NULL },
+ };
+ _skaterift_dialogue( EN, &subtitle_id, inf );
+
+ return 0;
+ }
+
+ /* scene
+ * --------------------------------------------------------------- */
+
+ if( state == k_escript_state_loading )
+ {
+ if( cmd_cutscene_load( 1, (const char *[]){ "metascenes/ch1s4.ms" } ) )
+ {
+ state = k_escript_state_initializing;
+ vg_info( "test:state = initializing\n" );
+ }
+ }
+
+ if( state == k_escript_state_initializing )
+ {
+ if( _cutscene.state == k_cutscene_state_ready )
+ {
+ _skaterift_script_bind_player();
+ state = k_escript_state_playing;
+ vg_info( "test:state = playing\n" );
+ _cutscene_play();
+ }
+ }
+
+ if( state == k_escript_state_playing )
+ {
+ if( _cutscene.state == k_cutscene_state_done )
+ {
+ state = k_escript_state_end;
+ vg_info( "test:state = end\n" );
+ _cutscene_unload();
+ return 1;
+ }
+ }
+
+ return 0;
+}
+
+static bool _skaterift_script_ch1s5( enum escript_event ev, const char *inf )
+{
+ static u32 state, subtitle_id;
+ static struct cs_instance *override_inst;
+
+ if( ev == k_escript_event_call )
+ {
+ state = k_escript_state_loading;
+ override_inst = NULL;
+ subtitle_id = 0;
+ vg_info( "test:state = loading\n" );
+ }
+
+ if( ev == k_escript_event_cutscene_marker )
+ {
+ struct sr_subtitle EN[] = {
+ { "j1", KCOL_JOHN "Alright, well then" },
+ { "j2", KCOL_JOHN "You're gonna need to play close attention to this part" },
+ { "j3", KCOL_JOHN "because its difficult.." },
+ { "j4", KCOL_JOHN "It's gonna take some practice until it clicks" },
+ { "j5", KCOL_JOHN "Right as you like, go across the transition of the ramp," },
+ { "j6", KCOL_JOHN "Right here," },
+ { "j7", KCOL_JOHN "you need to pump to gain some momentum." },
+
+ { "j8", KCOL_JOHN "What I mean right, watch" },
+ { "j9", KCOL_JOHN "just as I'm going into the base of the ramp" },
+ { "j10",KCOL_JOHN "I'm storing up some energy here by crouching down" },
+ { "j11",KCOL_JOHN "Right as I go across this point" },
+ { "j12",KCOL_JOHN "I'm almost jumping back up, adding some uwpwards momentum" },
+
+ { "j13",KCOL_JOHN "Then as the board comes up to this angle.." },
+ { "j14",KCOL_JOHN "that upwards momentum is transferred into my speed" },
+
+ { "j15",KCOL_JOHN "Same principle works, same way in the other direction" },
+
+ { "j16",KCOL_JOHN "Now, like I'm saying" },
+ { "j17",KCOL_JOHN "this might take you a little bit until it clicks" },
+
+ { "j18",KCOL_JOHN "But once it does you'll feel it. You'll know!" },
+
+ { "j19",KCOL_JOHN "And I uhh, set a target for you" },
+ { "j20",KCOL_JOHN "right up there.." },
+ { "j21",KCOL_JOHN "Thats how we'll know you're back on form." },
+
+ { "j22",KCOL_JOHN "Come see me at the docks once you've got it." },
+
+ { NULL, NULL },
+ };
+ _skaterift_dialogue( EN, &subtitle_id, inf );
+
+ return 0;
+ }
+
+ /* scene
+ * --------------------------------------------------------------- */
+
+ if( state == k_escript_state_loading )
+ {
+ if( cmd_cutscene_load( 1, (const char *[]){ "metascenes/ch1s5.ms" } ) )
+ {
+ state = k_escript_state_initializing;
+ vg_info( "test:state = initializing\n" );
+ }
+ }
+
+ if( state == k_escript_state_initializing )
+ {
+ if( _cutscene.state == k_cutscene_state_ready )
+ {
+ _skaterift_script_bind_player();
+ state = k_escript_state_playing;
+ vg_info( "test:state = playing\n" );
+ _cutscene_play();
+ }
+ }
+
+ if( state == k_escript_state_playing )
+ {
+ if( _cutscene.state == k_cutscene_state_done )
+ {
+ state = k_escript_state_end;
+ vg_info( "test:state = end\n" );
+ _cutscene_unload();
+ return 1;
+ }
+ }
+
+ return 0;
+}
+
+static bool _skaterift_script_ch1s6a( enum escript_event ev, const char *inf )
+{
+ static u32 state, subtitle_id;
+ static struct cs_instance *override_inst;
+
+ if( ev == k_escript_event_call )
+ {
+ state = k_escript_state_loading;
+ override_inst = NULL;
+ subtitle_id = 0;
+ vg_info( "test:state = loading\n" );
+ }
+
+ if( ev == k_escript_event_cutscene_marker )
+ {
+ struct sr_subtitle EN[] = {
+ { "j1", KCOL_JOHN "Eyyy! Looks like you're ready again.." },
+ { "j2", KCOL_JOHN "Didn't take long" },
+ { "j3", KCOL_JOHN "Just a short ferry ride back over to Mt.Zero now." },
+ { "j4", KCOL_JOHN "Oh right, Mt.Zero.. You really don't remember anything do you?" },
+ { "j5", KCOL_JOHN "Its where we live." },
+ { "j7", KCOL_JOHN "Yknow it's where the woodshop is," },
+ { "j8", KCOL_JOHN "It's where we skate, where Mike is," },
+ { "j9", KCOL_JOHN "yknow, its our home!" },
+
+ { NULL, NULL },
+ };
+ _skaterift_dialogue( EN, &subtitle_id, inf );
+
+ return 0;
+ }
+
+ /* scene
+ * --------------------------------------------------------------- */
+
+ if( state == k_escript_state_loading )
+ {
+ if( cmd_cutscene_load( 1, (const char *[]){ "metascenes/ch1s6a.ms" } ) )
+ {
+ state = k_escript_state_initializing;
+ vg_info( "test:state = initializing\n" );
+ }
+ }
+
+ if( state == k_escript_state_initializing )
+ {
+ if( _cutscene.state == k_cutscene_state_ready )
+ {
+ _skaterift_script_bind_player();
+ state = k_escript_state_playing;
+ vg_info( "test:state = playing\n" );
+ _cutscene_play();
+ }
+ }
+
+ if( state == k_escript_state_playing )
+ {
+ if( _cutscene.state == k_cutscene_state_done )
+ {
+ state = k_escript_state_end;
+ vg_info( "test:state = end\n" );
+ _cutscene_unload();
+ return 1;
+ }
+ }
+
+ return 0;
+}
+
+static bool _skaterift_script_ch2s1( enum escript_event ev, const char *inf )
+{
+ static u32 state, subtitle_id;
+ static struct cs_instance *override_inst;
+
+ if( ev == k_escript_event_call )
+ {
+ state = k_escript_state_loading;
+ override_inst = NULL;
+ subtitle_id = 0;
+ vg_info( "test:state = loading\n" );
+ }
+
+ if( ev == k_escript_event_cutscene_marker )
+ {
+ struct sr_subtitle EN[] = {
+ { "j1", KCOL_JOHN "Eughhh boy" },
+ { "j2", KCOL_JOHN "When we get off this thing I gotta go lay down for a bit" },
+ { "j3", KCOL_JOHN "Oh look" },
+ { "j4", KCOL_JOHN "There's Mike over there" },
+ { "j5", KCOL_JOHN "HELLO MIKE!" },
+ { "j7", KCOL_JOHN "Yeah listen.." },
+ { "j8", KCOL_JOHN "I know things are a bit weird at the moment" },
+ { "j9", KCOL_JOHN "but it'l make sense soon" },
+ { "j10", KCOL_JOHN "I garuntee it" },
+ { "j11", KCOL_JOHN "50%% probably garuntee it" },
+ { "j12", KCOL_JOHN "I need you to go on, keep on setting some time trials here" },
+ { "j13", KCOL_JOHN "We're gonna need your speed later" },
+ { "j14", KCOL_JOHN "Its.. Why I picked you." },
+
+ { NULL, NULL },
+ };
+ _skaterift_dialogue( EN, &subtitle_id, inf );
+
+ return 0;
+ }
+
+ /* scene
+ * --------------------------------------------------------------- */
+
+ if( state == k_escript_state_loading )
+ {
+ if( cmd_cutscene_load( 1, (const char *[]){ "metascenes/ch2s1.ms" } ) )
+ {
+ state = k_escript_state_initializing;
+ vg_info( "test:state = initializing\n" );
+ }
+ }
+
+ if( state == k_escript_state_initializing )
+ {
+ if( _cutscene.state == k_cutscene_state_ready )
+ {
+ _skaterift_script_bind_player();
+ state = k_escript_state_playing;
+ vg_info( "test:state = playing\n" );
+ _cutscene_play();
+ }
+ }
+
+ if( state == k_escript_state_playing )
+ {
+ if( _cutscene.state == k_cutscene_state_done )
+ {
+ state = k_escript_state_end;
+ vg_info( "test:state = end\n" );
+ _cutscene_unload();
+ return 1;
+ }
+ }
+
+ return 0;
+}
+
+static bool _skaterift_script_ch2s2( enum escript_event ev, const char *inf )
+{
+ static u32 state, subtitle_id;
+ static struct cs_instance *override_inst;
+
+ if( ev == k_escript_event_call )
+ {
+ state = k_escript_state_loading;
+ override_inst = NULL;
+ subtitle_id = 0;
+ vg_info( "test:state = loading\n" );
+ }
+
+ if( ev == k_escript_event_cutscene_marker )
+ {
+ struct sr_subtitle EN[] = {
+ { "m1", KCOL_MIKE "Haha!" },
+ { "m2", KCOL_MIKE "Usually you don't put up with JC's nonsense.." },
+ { "m3", KCOL_MIKE "He's been banging on about how we need to set some kind of speed record" },
+ { "m4", KCOL_MIKE "For his.. \"Experiment\"" },
+ { "m5", KCOL_MIKE "To be honest..." },
+ { "m6", KCOL_MIKE "I'm just pretending to go along with it at this point.." },
+ { "m7", KCOL_MIKE "I don't want to loose my internship at the wood place.." },
+ { "m7b", KCOL_MIKE "He is my boss after all" },
+ { "m9", KCOL_MIKE "Anyway uh, speaking of" },
+ { "m10", KCOL_MIKE "I gotta go take care of yet another catastrophe he's created back there." },
+ { "m11", KCOL_MIKE "I won't go into it." },
+ { "m12", KCOL_MIKE "But umm" },
+ { "m13", KCOL_MIKE "Good to see you back again" },
+ { "m14", KCOL_MIKE "Later." },
+
+ { NULL, NULL },
+ };
+ _skaterift_dialogue( EN, &subtitle_id, inf );
+
+ return 0;
+ }
+
+ /* scene
+ * --------------------------------------------------------------- */
+
+ if( state == k_escript_state_loading )
+ {
+ if( cmd_cutscene_load( 1, (const char *[]){ "metascenes/ch2s2.ms" } ) )
+ {
+ state = k_escript_state_initializing;
+ vg_info( "test:state = initializing\n" );
+ }
+ }
+
+ if( state == k_escript_state_initializing )
+ {
+ if( _cutscene.state == k_cutscene_state_ready )
+ {
+ _skaterift_script_bind_player();
+ state = k_escript_state_playing;
+ vg_info( "test:state = playing\n" );
+ _cutscene_play();
+ }
+ }
+
+ if( state == k_escript_state_playing )
+ {
+ if( _cutscene.state == k_cutscene_state_done )
+ {
+ state = k_escript_state_end;
+ vg_info( "test:state = end\n" );
+ _cutscene_unload();
+ return 1;
+ }
+ }
+
+ return 0;
+}
+
+static bool _skaterift_script_ch2s3a( enum escript_event ev, const char *inf )
+{
+ static u32 state, subtitle_id;
+ static struct cs_instance *override_inst;
+
+ if( ev == k_escript_event_call )
+ {
+ state = k_escript_state_loading;
+ override_inst = NULL;
+ subtitle_id = 0;
+ vg_info( "test:state = loading\n" );
+ }
+
+ if( ev == k_escript_event_cutscene_marker )
+ {
+ struct sr_subtitle EN[] = {
+ { "m1", KCOL_MIKE "Holy! You actually bothered to do these?" },
+ { "m2", KCOL_MIKE "I mean.." },
+ { "m3", KCOL_MIKE "JC's gonna be over the moon obviously, but" },
+ { "m4", KCOL_MIKE "Why?" },
+ { "m5", KCOL_MIKE "Don't you think its.. pointless?" },
+ { "m6", KCOL_MIKE "Myeah I'm heading back to the shop" },
+ { "m7", KCOL_MIKE "Coming?" },
+ { NULL, NULL },
+ };
+ _skaterift_dialogue( EN, &subtitle_id, inf );
+
+ return 0;
+ }
+
+ /* scene
+ * --------------------------------------------------------------- */
+
+ if( state == k_escript_state_loading )
+ {
+ if( cmd_cutscene_load( 1, (const char *[]){ "metascenes/ch2s3a.ms" } ) )
+ {
+ state = k_escript_state_initializing;
+ vg_info( "test:state = initializing\n" );
+ }
+ }
+
+ if( state == k_escript_state_initializing )
+ {
+ if( _cutscene.state == k_cutscene_state_ready )
+ {
+ _skaterift_script_bind_player();
+ state = k_escript_state_playing;
+ vg_info( "test:state = playing\n" );
+ _cutscene_play();
+ }
+ }
+
+ if( state == k_escript_state_playing )
+ {
+ if( _cutscene.state == k_cutscene_state_done )
+ {
+ state = k_escript_state_end;
+ vg_info( "test:state = end\n" );
+ _cutscene_unload();
+ return 1;
+ }
+ }
+
+ return 0;
+}
+
+/* This is the development one */
+static bool _skaterift_script_test( enum escript_event ev, const char *inf )
+{
+ static u32 state;
+ static m4x3f *action_cam;
+ static bool action_mode;
+ static u32 subtitle_id;
+
+ if( ev == k_escript_event_call )
+ {
+ state = k_escript_state_loading;
+ action_cam = NULL;
+ action_mode = 0;
+ subtitle_id = 0;
+ vg_info( "test:state = loading\n" );
+ }
+
+ if( ev == k_escript_event_cutscene_marker )
+ {
+ if( vg_str_eq( inf, "action_cam" ) )
+ action_mode = 1;
+
+ struct sr_subtitle EN[] = {
+ { "john_line_0", KCOL_JOHN "Mike mike mike, I need you to get over here now" },
+ { "mike_line_0", KCOL_MIKE "What is it now JC?" },
+ { "john_line_1", KCOL_JOHN "Well we were out here, shooting this massive gap right?" },
+ { "john_line_1a",KCOL_JOHN "It was gonna be the perfect shot, and it was going so good" },
+ { "john_line_2", KCOL_JOHN "Intro was perfect, got the perfect frame, angles lighting. PERFECT" },
+ { "mike_line_1", KCOL_MIKE "Whatever mate, what happened?" },
+ { "john_line_3", KCOL_JOHN "Uh yeah yeah, we were about 10 floors up right?" },
+ { "john_line_3a",KCOL_JOHN "Yeah uhhh, they didn't make the gap." },
+ { "john_line_4", KCOL_JOHN "And im im freaking out here man, it was worst case" },
+ { "john_line_4a",KCOL_JOHN "I mean.. WORST CASE" },
+ { "mike_line_2", KCOL_MIKE "yeaahkay, what are you doing calling me instead of an ambo?" },
+ { "john_line_5", KCOL_JOHN "I thought you could help us!" },
+ { "mike_line_3", KCOL_MIKE "Hang up, and call tripple zero mate" },
+ { "mike_line_3a",KCOL_MIKE "Did you even check if they were okay?" },
+ { "john_line_6", KCOL_JOHN "Holy crap, you're still alive!" },
+ { "john_line_6a",KCOL_JOHN "Nevermind Mike, cheers" },
+ { "john_line_7", KCOL_JOHN "Lets get out of here mate." },
+ { NULL, NULL },
+ };
+ _skaterift_dialogue( EN, &subtitle_id, inf );
+ return 0;
+ }
+
+ /* scene
+ * --------------------------------------------------------------- */
+
+ if( state == k_escript_state_loading )
+ {
+ if( cmd_cutscene_load( 1, (const char *[]){ "metascenes/test_scene.ms" } ) )
+ {
+ state = k_escript_state_initializing;
+ vg_info( "test:state = initializing\n" );
+ }
+ }
+
+ if( state == k_escript_state_initializing )
+ {
+ if( _cutscene.state == k_cutscene_state_ready )
+ {
+ _skaterift_script_bind_player();
struct cs_instance *boogie_inst =
_cutscene_get_first_model_instance( "models/boogie_van" );
state = k_escript_state_playing;
vg_info( "test:state = playing\n" );
- _cutscene.player_binding = override_inst;
_cutscene_play();
}
}
enum escript_script_id
{
k_escript_script_id_test = 0,
+ k_escript_script_id_ch1s2,
+ k_escript_script_id_ch1s3,
+ k_escript_script_id_ch1s3b,
+ k_escript_script_id_ch1s4,
+ k_escript_script_id_ch1s5,
+ k_escript_script_id_ch1s6a,
+ k_escript_script_id_ch2s1,
+ k_escript_script_id_ch2s2,
+ k_escript_script_id_ch2s3a,
k_escript_script_id_max
};
}
_script_bindings[] =
{
- [k_escript_script_id_test] = { "test", _skaterift_script_test }
+ [k_escript_script_id_test] = { "test", _skaterift_script_test },
+ [k_escript_script_id_ch1s2] = { "ch1s2", _skaterift_script_ch1s2 },
+ [k_escript_script_id_ch1s3] = { "ch1s3", _skaterift_script_ch1s3 },
+ [k_escript_script_id_ch1s3b] = { "ch1s3b", _skaterift_script_ch1s3b },
+ [k_escript_script_id_ch1s4] = { "ch1s4", _skaterift_script_ch1s4 },
+ [k_escript_script_id_ch1s5] = { "ch1s5", _skaterift_script_ch1s5 },
+ [k_escript_script_id_ch1s6a] = { "ch1s6a", _skaterift_script_ch1s6a },
+ [k_escript_script_id_ch2s1] = { "ch2s1", _skaterift_script_ch2s1 },
+ [k_escript_script_id_ch2s2] = { "ch2s2", _skaterift_script_ch2s2 },
+ [k_escript_script_id_ch2s3a] = { "ch2s3a", _skaterift_script_ch2s3a },
};
static int _skaterift_script_hook( int argc, const char *argv[] )