0% found this document useful (0 votes)
21 views1 page

Speed

The document is a decompiled script for a game, specifically designed to display the player's car speed on the screen. It checks if the player is defined and driving, then calculates and draws the speed in a specific format. The script includes various text drawing settings to customize the appearance of the speed display.

Uploaded by

reapers031202
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views1 page

Speed

The document is a decompiled script for a game, specifically designed to display the player's car speed on the screen. It checks if the player is defined and driving, then calculates and draws the speed in a specific format. The script includes various text drawing settings to customize the appearance of the speed display.

Uploaded by

reapers031202
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

// This file was decompiled using SASCM.

ini published by GTAG


(http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .csa}

//-------------MAIN---------------
thread "SPDMTR"
1@ = 255
2@ = 50
3@ = 50

:SPDMTR_150
wait 0
if
Player.Defined($PLAYER_CHAR)
else_jump @SPDMTR_150
if
00DF: actor $PLAYER_ACTOR driving
else_jump @SPDMTR_150
0@ = Actor.CurrentCar($PLAYER_ACTOR)
02E3: 4@ = car 0@ speed
4@ *= 2.236936
008C: 4@ = float 4@ to_integer
gosub @SPDMTR_300
033F: set_text_draw_letter_size 2.0 8.0
03E4: set_text_draw_align_right 1
if
4@ > 9
else_jump @SPDMTR_270
045A: draw_text_1number 600.0 375.0 GXT "SPEED" number 4@
jump @SPDMTR_150

:SPDMTR_270
045A: draw_text_1number 600.0 375.0 GXT "SPEED1" number 4@
jump @SPDMTR_150

:SPDMTR_300
0340: set_text_draw_RGBA 1@ 2@ 3@ 255
0341: set_text_draw_align_justify 1
03E4: set_text_draw_align_right 0
0343: set_text_draw_linewidth 5000.0
0348: enable_text_draw_proportional 1
0342: set_text_draw_centered 0
0345: enable_text_draw_background 0
033F: set_text_draw_letter_size 0.5 1.8
return

You might also like