SprintBind.cs

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
PHP:
{$CLEO}
0000:

WHILE TRUE
WAIT 0

IF 0AB0:   is_key_pressed 107 {Numpad+}
THEN
    0B12: 31@ = 31@ XOR 1        
    IF 0039:   31@ == TRUE
    THEN 0AD1: show_formatted_text_highpriority "~w~Sprint Bind ~g~Enable" time 1337
    ELSE 
        0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 0 {Up Arrow false}
        0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 0 {Space false}   
        0AD1: show_formatted_text_highpriority "~w~Sprint Bind ~r~Disable" time 137
    END
    WAIT 137
END

IF 31@ == TRUE
THEN    
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 80DF:   actor $PLAYER_ACTOR no driving
        THEN
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x107 state 255 {Up Arrow true}
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255 {Space true}
        END
    END
END

END

:Set_Virtual_Key
{
    255 = true
    0 = false
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
 

Attachments

  • SprintBind.cs
    18.5 KB · Views: 81

sao123

New member
Joined
Oct 18, 2024
Messages
1
Reaction score
0
Please, can you make Sprint bind on key F11 or X? Please.
 

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
key: X
 

Attachments

  • SprintBind.cs
    1.4 KB · Views: 0

ZyZ.MaxiM

Active member
Joined
Nov 14, 2022
Messages
100
Solutions
2
Reaction score
4
made it with both keys here.
 

Attachments

  • for ugbase.cs
    18.7 KB · Views: 1
Top