CLEO Help Speed up all player animations.

CLEO related
Status
Not open for further replies.

Zin

Expert
Joined
Aug 1, 2013
Messages
1,738
Solutions
2
Reaction score
117
Ok is there a way to adjust the speed of every single animation in gta so i can jump quicker i don't want to adjust the game speed but just my animation speed so all gun shooting animations because there is a shit ton of animations in the PED.IFP i want to be able to adjust the speed of them is there anyway i can because i would like to make a cleo mod like this.
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,493
Reaction score
236
Location
( ͡° ͜ʖ ͡°)
0B57: samp 2@ = player 1@ animation_id
0B58: samp get_animation_name_to 2@ file_to 3@ by_id 1@
0B59: samp 3@ = animation_id_by_name 1@ file 2@


and then change the speed of your current animation
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,738
Solutions
2
Reaction score
117
I tried i failed i might of forgotten something any tips?
Code:
{$CLEO .cs}

THREAD 'Speedhax'

:START
wait 0
if
0ADC:   test_cheat "LJ"
jf @START
018C: play_sound 1052 at 0.0 0.0 0.0
jump [member=42017]Pro[/member]



:PRO
0B57: samp 2@ = player 1@ animation_id
0B58: samp get_animation_name_to 2@ file_to 3@ by_id 1@
0B59: samp 3@ = animation_id_by_name 1@ file 2@
0393: actor $PLAYER_ACTOR perform_animation 3@ at 3.5 times_normal_rate 
jump @DEACT

:DEACT
wait 0
if
0ADC:   test_cheat "LJ"
jf [member=42017]Pro[/member]
018C: play_sound 1052 at 0.0 0.0 0.0
wait 100
jump @START
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
0393 requires animation name, not the animation id, you're supplying the id.

http://gtag.gtagaming.com/opcode-database/opcode/0393/
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
Jesus Fucking Christ, You literally copy pasted the opcodes Opcode gave you  :sadpepe:  :face_palm:

Those opcodes were procedural opcodes to be used in order to accomplish the task, but you need to change/adjust the variables for those opcodes, in accordance to your script, don't just copy paste those opcodes he gave you.

Code:
{$CLEO}

thread "anim"

repeat
wait 0
until SAMP.Available()

0@ = 0

while true
wait 0
        if
            0@ == 1
        then
            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 5.0 times_normal_rate // change 5.0 to any value you want
        end
wait 0                
        if
            0ADC: "LJ"
        then
            if
                0@ == 0
            then
                0@ = 1
                print "on" 500
            else            
                0@ = 0
                print "off" 500
            end
        end        
end
 
Status
Not open for further replies.
Top