CLEO Help [Help] Gamespeed.cs

CLEO related
Status
Not open for further replies.

noknok12

Active member
Joined
Mar 14, 2014
Messages
38
Reaction score
0
Dear ugbase..
I have been trying to make a simple cleo which will modify the game speed.
Similar to what cheat engine does.
This is what i got so far.

thread 'GSP'
wait 3000
03E5: show_text_box 'GSP7'
jump @GSP_120

:GSP_120
wait 0
if and
key_down 16
key_down 81
else_jump @GSP_168
015D: set_gamespeed 0.5
03E5: show_text_box 'GSP1'
jump @GSP_120

:GSP_168
wait 0
if and
key_down 17
key_down 85
else_jump @GSP_216
015D: set_gamespeed 1.0
03E5: show_text_box 'GSP2'
jump @GSP_168


My problem is that it only works if i keep holding down the buttons, and i only want to press it once to enable it. What am i doing wrong?
 

noknok12

Active member
Joined
Mar 14, 2014
Messages
38
Reaction score
0
If i could change the hotkeys of your's, then it would be useful.
But since its crypted,  Nothing usefull.
 

Codex1337

Active member
Joined
Mar 1, 2014
Messages
170
Reaction score
1
Didn't tested this code but it should work.
Code:
thread 'GSP'
wait 3000
03E5: show_text_box 'GSP7'


WHILE TRUE
wait 0
if and
key_down 16
key_down 81
then
      0B12: 31@ = 31@ XOR 1
      if 31@ == 1
     then
         03E5: show_text_box 'GSP1'
    end
end
if 31@ == 1
then
      015D: set_gamespeed 0.5
end
if and
key_down 17
key_down 85
then
      0B12: 30@ = 30@ XOR 1
      if 30@ == 1
      then      
            03E5: show_text_box 'GSP2'
      end
end
if 30@ == 1
then
     015D: set_gamespeed 1.0
end
END
 

Fu$10N

Expert
Joined
Mar 5, 2014
Messages
1,101
Reaction score
10
:ugbase:

G and + ( numpad + ) speed increase;
G and - ( numpad - ) speed decrease.
 

Attachments

  • GameSpeed.cs
    401 KB · Views: 96
Status
Not open for further replies.
Top