CLEO Help [Fast Shotgun Changer]

CLEO related
Status
Not open for further replies.

TheyCallMe

Active member
Joined
Jan 18, 2018
Messages
43
Reaction score
0
Well, Hello everyone. If possible, I want a cleo that does the following:
When I shoot with the shotgun it scrolls to fists so fast. That's all. Also, If it could be toggleable. That would be awesome.

p.s: I want it to work only with shotguns.
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
[shcode=cpp]
{$CLEO .cs}
 
0000: NOP 

wait 10000 
  
 
WHILE TRUE
wait 0

IF
056D:   actor $PLAYER_ACTOR defined
THEN
    0A96: 0@ = actor $PLAYER_ACTOR struct
    0A8E: 1@ = 0@ + 0x0718
    0A8D: 1@ = read_memory 1@ size 1 virtual_protect 0
    1@ *= 0x1C
    0A8E: 2@ = 0@ + 0x5A0
    005a: 2@ += 1@
    2@ += 0x8
    0A8D: 2@ = read_memory 2@ size 4 virtual_protect 0
    IF  
    2@ == 2 // if left two bullet's the swich
    THEN
        IF OR                  
        02D8:   actor $PLAYER_ACTOR current_weapon == 25 // Shotgun 
        02D8:   actor $PLAYER_ACTOR current_weapon == 26 // Sawnoff Shotgun 
        02D8:   actor $PLAYER_ACTOR current_weapon == 27 // Combat Shotgun
        THEN
            0470: 5@ = actor $PLAYER_ACTOR current_weapon 
            06AB: set_actor $PLAYER_ACTOR all_weapons_hidden 1 
            wait 100 
            01B9: set_actor $PLAYER_ACTOR armed_weapon_to 5@
        END 
    END   
END  

END    
[/shcode]
 

Attachments

  • AutoSwichShotGun.cs
    18.3 KB · Views: 24
Joined
Apr 18, 2018
Messages
8
Reaction score
0
Parazitas said:
[shcode=cpp]
{$CLEO .cs}
 
0000: NOP 

wait 10000 
  
 
WHILE TRUE
wait 0

IF
056D:   actor $PLAYER_ACTOR defined
THEN
    0A96: 0@ = actor $PLAYER_ACTOR struct
    0A8E: 1@ = 0@ + 0x0718
    0A8D: 1@ = read_memory 1@ size 1 virtual_protect 0
    1@ *= 0x1C
    0A8E: 2@ = 0@ + 0x5A0
    005a: 2@ += 1@
    2@ += 0x8
    0A8D: 2@ = read_memory 2@ size 4 virtual_protect 0
    IF  
    2@ == 2 // if left two bullet's the swich
    THEN
        IF OR                  
        02D8:   actor $PLAYER_ACTOR current_weapon == 25 // Shotgun 
        02D8:   actor $PLAYER_ACTOR current_weapon == 26 // Sawnoff Shotgun 
        02D8:   actor $PLAYER_ACTOR current_weapon == 27 // Combat Shotgun
        THEN
            0470: 5@ = actor $PLAYER_ACTOR current_weapon 
            06AB: set_actor $PLAYER_ACTOR all_weapons_hidden 1 
            wait 100 
            01B9: set_actor $PLAYER_ACTOR armed_weapon_to 5@
        END 
    END   
END  

END    
[/shcode]

what is the command? to activate/deactivate?
 

TheyCallMe

Active member
Joined
Jan 18, 2018
Messages
43
Reaction score
0
Parazitas said:
[shcode=cpp]
{$CLEO .cs}
 
0000: NOP 

wait 10000 
  
 
WHILE TRUE
wait 0

IF
056D:   actor $PLAYER_ACTOR defined
THEN
    0A96: 0@ = actor $PLAYER_ACTOR struct
    0A8E: 1@ = 0@ + 0x0718
    0A8D: 1@ = read_memory 1@ size 1 virtual_protect 0
    1@ *= 0x1C
    0A8E: 2@ = 0@ + 0x5A0
    005a: 2@ += 1@
    2@ += 0x8
    0A8D: 2@ = read_memory 2@ size 4 virtual_protect 0
    IF  
    2@ == 2 // if left two bullet's the swich
    THEN
        IF OR                  
        02D8:   actor $PLAYER_ACTOR current_weapon == 25 // Shotgun 
        02D8:   actor $PLAYER_ACTOR current_weapon == 26 // Sawnoff Shotgun 
        02D8:   actor $PLAYER_ACTOR current_weapon == 27 // Combat Shotgun
        THEN
            0470: 5@ = actor $PLAYER_ACTOR current_weapon 
            06AB: set_actor $PLAYER_ACTOR all_weapons_hidden 1 
            wait 100 
            01B9: set_actor $PLAYER_ACTOR armed_weapon_to 5@
        END 
    END   
END  

END    
[/shcode]

I just tried it and it keeps switching my weapons without stopping it. I just want it to switch once from shotgun to fist after 1 shot.
 
Status
Not open for further replies.
Top