Jump to content

Adding custom text on the ingame screen


koragg

Recommended Posts

Is there a way to add a custom text (from an image file) in the game.I wanna make a "TURBO BOOST" text appear on the screen when I'm in a car (any car) by pressing the keys in this script (all combinations).It has to be in the center of the screen with capital letters (like the WASTED or BUSTED texts - only with a different font).

 

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

 

{$VERSION 3.1.0027}

{$CLEO .cs}

 

//-------------MAIN---------------

thread 'CARJUMP'

0AAC: $HMP3 = load_mp3 "CLEO\PLAYLIST\TURBOBOOST.MP3"

 

:CARJUMP_46

wait 0

if and

Player.Defined($PLAYER_CHAR)

Actor.Driving($PLAYER_ACTOR)

84C8: not actor $PLAYER_ACTOR driving_flying_vehicle

0AAF: 0@ = get_mp3_length $HMP3

0AB0: key_pressed 16

else_jump @CARJUMP_46

if

8AB0: not key_pressed 88

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_181

if

8AB0: not key_pressed 67

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_202

1@ = 0.15

$2657 = 18

04F7: status_text $2657 type 1 line 1 GXT '' // global_variable

059C: enable_status_text $2657 flashing 0 // global_variable

jump @CARJUMP_223

 

:CARJUMP_181

wait 0

1@ = 0.45

jump @CARJUMP_460

 

:CARJUMP_202

wait 0

1@ = 0.75

jump @CARJUMP_460

 

:CARJUMP_223

wait 0

0087: 2@ = 1@ // (float)

2@ *= 133.3333

0090: $2657 = float 2@ to_integer

if

Actor.Driving($PLAYER_ACTOR)

else_jump @CARJUMP_656

if

8AB0: not key_pressed 9

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_351

if

0AB0: key_pressed 16

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_422

if

0.75 > 1@

else_jump @CARJUMP_223

1@ += 0.02

jump @CARJUMP_223

 

:CARJUMP_351

wait 100

if

Actor.Driving($PLAYER_ACTOR)

else_jump @CARJUMP_656

if

0AB0: key_pressed 16

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_422

if

0AB0: key_pressed 9

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_351

jump @CARJUMP_223

 

:CARJUMP_422

wait 0

0151: remove_status_text $2657

if

8AB0: not key_pressed 82

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_46

jump @CARJUMP_460

 

:CARJUMP_460

wait 0

03C0: 0@ = actor $PLAYER_ACTOR car

if or

81F3: not car 0@ in_air

04A7: actor $PLAYER_ACTOR driving_boat

else_jump @CARJUMP_46

0407: store_coords_to 11@ 12@ 13@ from_car 0@ with_offset 0.0 0.0 1@

0407: store_coords_to 14@ 15@ 16@ from_car 0@ with_offset 0.0 0.0 0.0

0063: 11@ -= 14@ // (float)

0063: 12@ -= 15@ // (float)

0063: 13@ -= 16@ // (float)

07D5: set_car 0@ velocity_in_direction_XYZ 11@ 12@ 13@ rotation_velocitiesXY 0.0 0.0 unk 0.0

if

04A7: actor $PLAYER_ACTOR driving_boat

else_jump @CARJUMP_46

0087: 3@ = 1@ // (float)

3@ *= 5000.0

0092: 4@ = float 3@ to_integer

wait 4@

jump @CARJUMP_46

 

:CARJUMP_656

wait 0

0151: remove_status_text $2657

jump @CARJUMP_46

Edited by koragg
Link to comment
Share on other sites

Using an image? Add it to a .txd and draw it as a sprite.

Link to comment
Share on other sites

whats a sprite? (srry for the noob question)

Link to comment
Share on other sites

When I make the script load the .txd my game crashes!!

Link to comment
Share on other sites

aStiffSausage
When I make the script load the .txd my game crashes!!

Post the script?

Link to comment
Share on other sites

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

 

{$VERSION 3.1.0027}

{$CLEO .cs}

 

//-------------MAIN---------------

thread 'CARJUMP'

0AAC: $HMP3 = load_mp3 "CLEO\PLAYLIST\TURBOBOOST.MP3"

 

:CARJUMP_46

wait 0

if and

Player.Defined($PLAYER_CHAR)

Actor.Driving($PLAYER_ACTOR)

84C8: not actor $PLAYER_ACTOR driving_flying_vehicle

0AAF: 0@ = get_mp3_length $HMP3

0AB0: key_pressed 16

else_jump @CARJUMP_46

if

8AB0: not key_pressed 88

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_181

if

8AB0: not key_pressed 67

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_202

1@ = 0.15

$2657 = 18

04F7: status_text $2657 type 1 line 1 GXT '' // global_variable

059C: enable_status_text $2657 flashing 0 // global_variable

jump @CARJUMP_223

 

:CARJUMP_181

wait 0

1@ = 0.45

jump @CARJUMP_460

 

:CARJUMP_202

wait 0

1@ = 0.75

jump @CARJUMP_460

 

:CARJUMP_223

wait 0

0087: 2@ = 1@ // (float)

2@ *= 133.3333

0090: $2657 = float 2@ to_integer

if

Actor.Driving($PLAYER_ACTOR)

else_jump @CARJUMP_656

if

8AB0: not key_pressed 9

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_351

if

0AB0: key_pressed 16

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_422

if

0.75 > 1@

else_jump @CARJUMP_223

1@ += 0.02

jump @CARJUMP_223

 

:CARJUMP_351

wait 100

if

Actor.Driving($PLAYER_ACTOR)

else_jump @CARJUMP_656

if

0AB0: key_pressed 16

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_422

if

0AB0: key_pressed 9

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_351

jump @CARJUMP_223

 

:CARJUMP_422

wait 0

0151: remove_status_text $2657

if

8AB0: not key_pressed 82

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_46

jump @CARJUMP_460

 

:CARJUMP_460

wait 0

03C0: 0@ = actor $PLAYER_ACTOR car

if or

81F3: not car 0@ in_air

04A7: actor $PLAYER_ACTOR driving_boat

else_jump @CARJUMP_46

0407: store_coords_to 11@ 12@ 13@ from_car 0@ with_offset 0.0 0.0 1@

0407: store_coords_to 14@ 15@ 16@ from_car 0@ with_offset 0.0 0.0 0.0

0063: 11@ -= 14@ // (float)

0063: 12@ -= 15@ // (float)

0063: 13@ -= 16@ // (float)

07D5: set_car 0@ velocity_in_direction_XYZ 11@ 12@ 13@ rotation_velocitiesXY 0.0 0.0 unk 0.0

if

04A7: actor $PLAYER_ACTOR driving_boat

else_jump @CARJUMP_46

0087: 3@ = 1@ // (float)

3@ *= 5000.0

0092: 4@ = float 3@ to_integer

wait 4@

jump @CARJUMP_46

 

:CARJUMP_656

wait 0

0151: remove_status_text $2657

jump @CARJUMP_46

Link to comment
Share on other sites

thread 'CARJUMP'

0AAC: $HMP3 = load_mp3 "CLEO\PLAYLIST\TURBOBOOST.MP3"

 

:CARJUMP_46

wait 0

if and

Player.Defined($PLAYER_CHAR)

Actor.Driving($PLAYER_ACTOR)

84C8: not actor $PLAYER_ACTOR driving_flying_vehicle

0AAF: 0@ = get_mp3_length $HMP3

0AB0: key_pressed 16

else_jump @CARJUMP_46

if

8AB0: not key_pressed 88

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_181

if

8AB0: not key_pressed 67

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_202

1@ = 0.15

$2657 = 18

04F7: status_text $2657 type 1 line 1 GXT '' // global_variable

059C: enable_status_text $2657 flashing 0 // global_variable

jump @CARJUMP_223

 

:CARJUMP_181

wait 0

1@ = 0.45

jump @CARJUMP_460

 

:CARJUMP_202

wait 0

1@ = 0.75

jump @CARJUMP_460

 

:CARJUMP_223

wait 0

0087: 2@ = 1@ // (float)

2@ *= 133.3333

0090: $2657 = float 2@ to_integer

if

Actor.Driving($PLAYER_ACTOR)

else_jump @CARJUMP_656

if

8AB0: not key_pressed 9

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_351

if

0AB0: key_pressed 16

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_422

if

0.75 > 1@

else_jump @CARJUMP_223

1@ += 0.02

jump @CARJUMP_223

 

:CARJUMP_351

wait 100

if

Actor.Driving($PLAYER_ACTOR)

else_jump @CARJUMP_656

if

0AB0: key_pressed 16

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_422

if

0AB0: key_pressed 9

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_351

jump @CARJUMP_223

 

:CARJUMP_422

wait 0

0151: remove_status_text $2657

if

8AB0: not key_pressed 82

0AAD: set_mp3 $HMP3 perform_action 1

else_jump @CARJUMP_46

jump @CARJUMP_460

 

:CARJUMP_460

wait 0

03C0: 0@ = actor $PLAYER_ACTOR car

if or

81F3: not car 0@ in_air

04A7: actor $PLAYER_ACTOR driving_boat

else_jump @CARJUMP_46

0407: store_coords_to 11@ 12@ 13@ from_car 0@ with_offset 0.0 0.0 1@

0407: store_coords_to 14@ 15@ 16@ from_car 0@ with_offset 0.0 0.0 0.0

0063: 11@ -= 14@ // (float)

0063: 12@ -= 15@ // (float)

0063: 13@ -= 16@ // (float)

07D5: set_car 0@ velocity_in_direction_XYZ 11@ 12@ 13@ rotation_velocitiesXY 0.0 0.0 unk 0.0

if

04A7: actor $PLAYER_ACTOR driving_boat

else_jump @CARJUMP_46

0087: 3@ = 1@ // (float)

3@ *= 5000.0

0092: 4@ = float 3@ to_integer

wait 4@

jump @CARJUMP_46

 

 

 

Get those out of the IF AND check

Link to comment
Share on other sites

how am I supposed to load the .mp3 if I remove these lines ? ? ?

Link to comment
Share on other sites

how am I supposed to load the .mp3 if I remove these lines ? ? ?

The script is not well written , you need to simplify

Link to comment
Share on other sites

does anyone know which camera view is at 1:36 in this video

(when the car jumps)
Link to comment
Share on other sites

Ashwin.Star

you may say it a Custom Camera View lol.gif

use these opcode

 

015F: set_camera_position 664.9277 -479.6112 16.1668 rotation 0.0 0.0 0.0 0160: set_camera_point_at 665.8948 -479.5685 16.4175 mode 2 // or may be // 0158: camera_on_car 34@ 18 2 

 

Link to comment
Share on other sites

thanks about the camera view!!

i wanna ask is there a way to modify the ENB Series so that it's activated by pressing F12 instead of SHIFT and F12 ? confused.gif

 

çause when I press SHIFT in a car it jumps (CLEO mod) so it's not so easy to use the ENB Series.

Link to comment
Share on other sites

Id blame the cleo script for using 0AB0. If you have a problem regarding a specific mod, contact its author.. It only makes sense.

Link to comment
Share on other sites

no what I mean is is there a way to make the ENB Series to be activated only with F12 without pressing SHIFT

Link to comment
Share on other sites

The Viper Team

 

thanks about the camera view!!

i wanna ask is there a way to modify the ENB Series so that it's activated by pressing F12 instead of SHIFT and F12 ? confused.gif

 

çause when I press SHIFT in a car it jumps (CLEO mod) so it's not so easy to use the ENB Series.

stop stealing knight rider old school and the other mods

Link to comment
Share on other sites

i didn't steal the Turbo Boost.I don't know where to find it because it's in the main.scm and not a cleo mod.

Link to comment
Share on other sites

Shadowy_Flight

koragg. you must be post the original outhor credits before posting it on the forum , Bennington Who Making This Script , Download Link of Vehicle Jump Mod on GTA Garage :http://www.gtagarage.com/mods/show.php?id=13226 .

rampage_ani.giframpage_ani.giframpage_ani.giframpage_ani.gif

Edited by Shadowy_Flight
Link to comment
Share on other sites

koragg. you must be post the original outhor credits before posting it on the forum , Bennington Who Making This Script , Download Link of Vehicle Jump Mod on GTA Garage :http://www.gtagarage.com/mods/show.php?id=13226 .

rampage_ani.giframpage_ani.giframpage_ani.giframpage_ani.gif

And you don't have to keep creating accounts when you're banned. If he wants to edit something for his own use, he can.

Link to comment
Share on other sites

Shadowy_Flight

@Bad.boy! I knew the rule while any member post a stuff from other ppl , must be post the credits biggrin.gif . But Sorry i didn't banned , i register this day on gta forum , because i worked all time at moddb ,

Edited by Shadowy_Flight
Link to comment
Share on other sites

Sure, Ahmed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.