[HELP] Autoscroll.cs

Статус
В этой теме нельзя размещать новые ответы.

TheMonstercat

Известный
Автор темы
75
11
Hey this .cs when you release the aim ( right click ) u gun will be auto scrolled backward and forfard, so in this way your gun will be reloaded....

But it dont scroll back to the Gun
I hope someone can help me.

Код:
thread 'AUTOSCROLL'
 
:MAIN
wait 0
if and
0256:  player $PLAYER_CHAR defined
056D:  actor $PLAYER_ACTOR defined
044B:  actor $PLAYER_ACTOR on_foot
else_jump @MAIN
if or
02D8:  actor $PLAYER_ACTOR current_weapon == 0
02D8:  actor $PLAYER_ACTOR current_weapon == 1
else_jump @CONTINUE
jump @MAIN
 
:CONTINUE
wait 0
if
0AB0: key_pressed 2
else_jump @MAIN
0470: $weapon = actor $PLAYER_ACTOR current_weapon
 
:HOLDING_RMB
wait 0
if
0AB0: key_pressed 2
else_jump @SWITCH
jump @HOLDING_RMB
 
:SWITCH
wait 0
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0
wait 200
01B9: set_actor $PLAYER_ACTOR armed_weapon_to $weapon
jump @MAIN
 

itsLegend

Фонд борьбы за жуков 🐞
Администратор
2,696
1,468
Try this:
Код:
{$CLEO}
 
wait 0
 
repeat
    wait 0
until Player.Defined(0)
 
while true
    wait 0
    if and
        not Actor.Driving($PLAYER_ACTOR)
        8818: not actor $PLAYER_ACTOR in_air
        0AB0: 2 // RBM
    then
        if 0AB0: 1
        then
            while 0AB0: 1
                wait 0
            end
 
            1@ = 0
 
            /* 1@ = -1
            for 0@ = 22 to 32 step 1 // List guns
                if or
                    1@ == 25
                    1@ == 26
                    1@ == 27
                then continue
                end
         
                if 02D8: actor $PLAYER_ACTOR current_weapon == 0@
                then
                    1@ = 0
                    break
                end
            end */
 
            if 1@ <> -1
            then
                0470: 0@ = actor $PLAYER_ACTOR current_weapon
                while true
                    wait 0
                    01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0
                    0470: 1@ = actor $PLAYER_ACTOR current_weapon
                    if or
                        1@ == 0
                        1@ == 1
                    then break
                    end 
                end
         
                01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0@
            end
        end
    end
end
 
  • Нравится
Реакции: Ariya9473 и CleanLegend
Статус
В этой теме нельзя размещать новые ответы.