CLEO Help [Question]Troll

CLEO related
Status
Not open for further replies.

iRack

New member
Joined
May 5, 2020
Messages
3
Reaction score
0
Location
Romania
Hi, can someone give me a trollhack on BIND, like Teleport ( Y + X ). When i press a button or a combination of buttons, the script will flip my car. I want to use to make a prank my friends, i will press the button and it will flip my car and it will blow.
 
Last edited:

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
270
Location
Pluto
Hi, can someone give me a trollhack on BIND, like Teleport ( Y + X ). When i press a button or a combination of buttons, the script will flip my car. I want to use to make a prank my friends, i will press the button and it will flip my car and it will blow.
How about make your Own Cleo Script? That is pretty easy and even begginers can make that simple teleport and car flip script...

But anyway... I hope in the future you will create your own hacks by learning from this code...
Code:
{$CLEO .cs}
0000: crazy teleport troll by ajom

while true
    wait 0
    if and
        0AB0:   key_pressed 77 // ascii "Z"
        0AB0:   key_pressed 78 // ascii "X"
        0AB6: store_target_marker_coords_to 0@ 1@ 2@ // IF marker is found
    then
        02CE: 2@ = ground_z_at 0@ 1@ 2@ // set elevation to the ground
        2@ += 2.0 // add offset so your player will not "fall glitch"
        if 0449:   actor $PLAYER_ACTOR in_a_car // if our player is inside a car
        then
            03C0: 3@ = actor $PLAYER_ACTOR car // get the car
            00AA: store_car 3@ position_to 4@ 5@ 6@ // save our original location for the "teleport back"
            00AB: put_car 3@ at 0@ 1@ 2@ // teleport car at the target marker
            0731: set_car 3@ y_angle_to 180.0 // flip the car upside down
            0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 4@ 5@ 6@ // our actor be will return on the original place, leaving your idiot friends upside down
        else 00A1: put_actor $PLAYER_ACTOR at 0@ 1@ 2@ // you can use this script as a normal actor teleporter
        end

        while 0AB0:   key_pressed 78 // ascii "X" // avoid repeated/spam execution of the script
                wait 0
        end
    end
end

How the code above works?
1) if your actor is in a car, the car(without your actor inside it) will teleport at the "target map marker" and is flipped... This is the trollhack you are looking for
2) if your actor is on foot, it will teleport your actor to the "target marker"...
 
Status
Not open for further replies.
Top