CLEO Help Speed CLEO makes you slower?

CLEO related
Status
Not open for further replies.

Zin

Expert
Joined
Aug 1, 2013
Messages
1,738
Solutions
2
Reaction score
117
So I created this speed CLEO from a snippet I got from some old topic but it seems to just make me slower.

Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 
thread "Speed"

repeat
wait 0
until samp.Available()

:Start
wait 0
if and
0256:   player $PLAYER_ACTOR defined
0ADC:   test_cheat "plp"
jf @Start
print "~y~Spe~b~ed ~g~ON" 500
jump @Speed



:Speed
wait 0
if
key_down 2
jf @DEACT
0B57: samp 2@ = player $PLAYER_ACTOR animation_id
0B58: samp get_animation_name_to 3@ file_to 4@ by_id 2@
0393: actor $PLAYER_ACTOR perform_animation 3@ at 16.0 times_normal_rate
jump @DEACT
 
:DEACT
wait 0
if
0ADC:   test_cheat "plp"
jf @Speed
print "~y~Spe~b~ed ~g~OFF" 500
jump @Start
Basically sets current animation as faster which will make you be able to move much faster but it just makes you move slower, can anybody help me out?
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
273
Remove your anticrasher mods while testing,  your game is spamming errors in chat, you won't see them and your game will act in slow motion.

[shcode=cpp]
0B2B: samp 2@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B57: samp 2@ = player 2@ animation_id

if 2@ <> 0
then
   alloc 3@ 24
   alloc 4@ 24
   0B58: samp get_animation_name_to 3@ file_to 4@ by_id 2@
   
   0AF8: "Anim: %s \ File: %s" -1 3@ 4@
   
   0393: actor $PLAYER_ACTOR perform_animation 3@ at 16.0 times_normal_rate
   free 3@
   free 4@
end
[/shcode]

I think you crash because 0393 doesn't work with vars, or at least for me.
I don't know why, maybe someone else has a clue.
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,738
Solutions
2
Reaction score
117
springfield said:
Remove your anticrasher mods while testing,  your game is spamming errors in chat, you won't see them and your game will act in slow motion.

[shcode=cpp]
0B2B: samp 2@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B57: samp 2@ = player 2@ animation_id

if 2@ <> 0
then
   alloc 3@ 24
   alloc 4@ 24
   0B58: samp get_animation_name_to 3@ file_to 4@ by_id 2@
   
   0AF8: "Anim: %s \ File: %s" -1 3@ 4@
   
   0393: actor $PLAYER_ACTOR perform_animation 3@ at 16.0 times_normal_rate
   free 3@
   free 4@
end
[/shcode]

I think you crash because 0393 doesn't work with vars, or at least for me.
I don't know why, maybe someone else has a clue.

So is there anyway to get around this problem like setting animations speed with memory addresses?
 
Status
Not open for further replies.
Top