Quantcast

Jump to content

» «
Photo

Vice City FXT

No replies to this topic
LikeBAX
  • LikeBAX

    aka MC Vic

  • Members
  • Joined: 31 Dec 2009
  • Russia

#1

Posted 26 July 2014 - 03:12 PM

Hi everybody, I'm working on the new missions for VC with cutscenes. It will be the bonus missions, available after the last mission - Keep Your Friends Close. The first mission of 3 is ready, but in the second I have a problem with FXT in cutscene.

 

Please, help me with the FXT code. In the first mission the cutscene text is OK, but in the second it is not.

 

bezymyannyjj3.png
bezymyannyjj4.png
 
{$CLEO .cs}

//-------------MAIN---------------
0000:

:BANKJOB_2
wait 0
if and
Player.Defined($PLAYER_CHAR)
$1140 == 1 // integer values
else_jump @BANKJOB_2
wait 2000
05E0: 9@ = read_memory 0x974B04 size 4 virtual_protect 0
if
1000 > 9@
else_jump @BANKJOB_2
02A7: 8@ = create_icon_marker_and_sphere 24 at -1061.9417 -278.787 12.0884
jump @BANKJOB_91

:BANKJOB_91
wait 0 
if 
   Player.Defined($player_char)
jf @BANKJOB_91 
if 
00F5:   player $player_char 0 -1061.9417 -278.787 12.0884 radius 3.0 3.0 3.0 
jf @BANKJOB_91
Player.CanMove($PLAYER_CHAR) = False
00BA: text_styled 'GE20' 2000 ms 2
0164: disable_marker 8@
jump @MissionStart

:MissionStart
fade 0 1000
wait 1000
0110: clear_player $PLAYER_CHAR wanted_level
$ONMISSION = 1
select_interior 18 
023C: load_special_actor 1 'CSPLAY' 
023C: load_special_actor 2 'CSKELLY' 
038B: load_requested_models 
Camera.SetAtPos(-1079.1, -285.3, 12.1)

:BARON3_262
if or
823D:   not special_actor 1 loaded 
823D:   not special_actor 2 loaded
jf @BARON3_297 
wait 0 
jump @BARON3_262 

:BARON3_297
041D: set_camera_near_clip 0.1 
02E4: load_cutscene_data 'BON_2A' 
0244: set_cutscene_pos -1071.6805 -281.4084 14.0882
02E5: 1@ = create_cutscene_object #SPECIAL01 
02E6: set_cutscene_anim 1@ 'CSPLAY' 
02E5: 2@ = create_cutscene_object #SPECIAL02 
02E6: set_cutscene_anim 2@ 'CSKELLY' 
04E4: unknown_refresh_game_renderer_at -1059.5134 -279.0744  
0055: put_player $PLAYER_CHAR at -1059.5134 -279.0744 11.3094
0171: set_player $PLAYER_CHAR z_angle_to 279.1362 
Camera.SetBehindPlayer
fade 1 1500 
03AF: set_streaming 1 
02E7: start_cutscene 
02E8: $CUT_SCENE_TIME = cutscenetime 
0@ = 210 // integer values 
gosub @COL_4_31318 
00BC: text_highpriority 'GE21' 10000 ms 1 // Awright mush, I'm gonna save your Vera, mate. 
0@ = 2773 // integer values 
gosub @COL_4_31318 
00BC: text_highpriority 'GE22' 10000 ms 1 // Awright mush, I'm gonna save your Vera, mate. 
0@ = 3669 // integer values 
gosub @COL_4_31318 
00BC: text_highpriority 'SET3' 10000 ms 1 
0@ = 8935 // integer values 
gosub @COL_4_31318 
00BC: text_highpriority 'SET4' 10000 ms 1 
0@ = 10386 // integer values 
gosub @COL_4_31318 
00BC: text_highpriority 'SET5' 10000 ms 1 
0@ = 14243 // integer values 
gosub @COL_4_31318 
00BC: text_highpriority 'SET6' 10000 ms 1 
0@ = 16762 // integer values 
gosub @COL_4_31318 
00BC: text_highpriority 'SET7' 10000 ms 1 
0@ = 19154 // integer values 
gosub @COL_4_31318 
00BC: text_highpriority 'SET8' 10000 ms 1 
0@ = 25653 // integer values 
gosub @COL_4_31318 
00BC: text_highpriority 'SET9' 10000 ms 1 
0@ = 26526 // integer values 
gosub @COL_4_31318 
00BC: text_highpriority 'SE10' 10000 ms 1 
0@ = 32640 // integer values 
gosub @COL_4_31318 
00BC: text_highpriority 'SE11' 10000 ms 1 
0@ = 34964 // integer values 
gosub @COL_4_31318 
0169: set_fade_color 0 0 1 
fade 0 1500 
00BE: text_clear_all

:COL_4_1851
if 
fading 
jf @COL_4_1875 
wait 0 
jump @COL_4_1851 

:COL_4_1875
if 
82E9:   not cutscene_reached_end 
jf @COL_4_1899 
wait 0 
jump @COL_4_1875 

:COL_4_1899
02EA: end_cutscene
select_interior 0 
Camera.SetBehindPlayer
0296: unload_special_actor 1 
0296: unload_special_actor 2 
wait 500 
fade 1 1500
Player.CanMove($PLAYER_CHAR) = True
jump @MissionPassed

:COL_4_31318
if 
001C:   $2781 > $CUT_SCENE_TIME // integer values 
jf @COL_4_31353 
wait 0 
02E8: $CUT_SCENE_TIME = cutscenetime 
jump @COL_4_31318 

:COL_4_31353
return

:MissionPassed
wait 500
05DF: write_memory 0x974B04 size 4 value 1111 virtual_protect 0
00BA: text_styled 'PAS1' 5000 ms 1 // MISSION PASSED!
0394: play_music 1
0318: set_latest_mission_passed 'GE20'
$ONMISSION = 0 // integer values
mission_cleanup
05DC: end_custom_thread




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users