Jump to content

CODE:0707 an 0701


JAB HacksouL

Recommended Posts

For anyone using these codes to fast forward through your home made cut scenes;

I had to learn this the HARD WAY... correct usage works like this:

0707: start_scene_skip_to @end_of_cut 

02A3: enable_widescreen true 
0920: point_camera 1541.156 -1670.352 28.7047 transverse_to 1541.156 -1674.352 14.5 time 4000 mode 1  
03CF: load_wav 45200 as 1 
0169: set_fade_color_RGB 0 0 0 
fade 1 1000 

:fade_in
wait 0
if 
not fading
jf @fade_in

03CF: load_wav 45220 as 1

:wav_loaded
wait 0
if  
03D0:   wav 1 loaded 
jf @wav_loaded

03D1: play_wav 1

:play_wav
wait 0
if 
03D2:   wav 1 ended 
jf @play_wav
040D: unload_wav 1

wait 2000

:end_of_cut 
0701: end_scene_skip 
03E6: remove_text_box 
00BE: text_clear_all  
02A3: enable_widescreen 0

Now anytime the user wants to skip the parts they have viewed. They just press and button and no matter where they are the code jumps to 0701 end_scene_skip. This also works for trips and anything else.

Now here is the buggy code LOL

0707: start_scene_skip_to @end_of_cut 

02A3: enable_widescreen true 
0920: point_camera 1541.156 -1670.352 28.7047 transverse_to 1541.156 -1674.352 14.5 time 4000 mode 1  
03CF: load_wav 45200 as 1 
0169: set_fade_color_RGB 0 0 0 
fade 1 1000 

gosub @fade_in
03CF: load_wav 45220 as 1
gosub @wav_loaded
03D1: play_wav 1
gosub @play_wav
040D: unload_wav 1

wait 2000

:end_of_cut 
0701: end_scene_skip 
03E6: remove_text_box 
00BE: text_clear_all  
02A3: enable_widescreen 0

Take note of those gosub (go to subroutine) commands. If the user presses the skip button while they are inside the subroutine, the mission plays out normally. At the end win or lose, the mission jumps all the way back inside the subroutine and finishes where it left off. This can be very annoying. Don't use any gosub commands inside a 0707 and 0701 op codes.

JAB B)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...