18 июня 2016

Stunt Screenshot

Скрипт включает замедление при езде на заднем или переднем колесе на мотоцикле и даёт сделать снимок экрана.


/* Made by Vital */
//$PLAYER_ACTOR $PLAYER_GROUP $ONMISSION
//Byte, Char – 1; Short, Word – 2; Long, DWord, Float – 4
{$CLEO}
0000:

while true //1
wait 0
    if //2
    player.Defined(0)
    then
        if //3
        gosub @Stunt
        then
            while gosub @StuntLight //4 - while
            wait 0
            015D: set_gamespeed 0.25
            0ACC: show_text_lowpriority "~k~~VEHICLE_FIREWEAPON_ALT~ for screenshot" time 10
                if //5
                00E1:   player 0 pressed_key 4
                then
                0A1E: dump_screen 1
                break
                end //5
            end //4 - while
        015D: set_gamespeed 1.0
        end //3
    end //2
end //1

:Stunt //0485; 059A
if //1
047A:   actor $PLAYER_ACTOR driving_bike
then
    if or //2
    07F1:   player 0 performing_wheelie
    07F2:   player 0 performing_stoppie
    then
    32@ = 0
        while true //3 - while true
        wait 0
            if or //4
            not player.Defined(0)
            847A: not  actor $PLAYER_ACTOR driving_bike
            then
            059A:  return_false
            break
            else
                if or //5
                07F1:   player 0 performing_wheelie
                07F2:   player 0 performing_stoppie
                then
                    if //6
                    32@ > 999
                    then
                    0485:  return_true
                    break
                    end //6
                else               
                059A:  return_false
                break
                end //5
            end //4
        end //3 - while true
    else
    059A:  return_false
    end //2
else
059A:  return_false
end //1
return

:StuntLight
if or //1
not player.Defined(0)
847A: not  actor $PLAYER_ACTOR driving_bike
then
059A:  return_false
else
    if or //2
    07F1:   player 0 performing_wheelie
    07F2:   player 0 performing_stoppie
    then
    0485:  return_true
    end //2
end //1
return

Комментариев нет: