#1 08-04-2010 12:57

gtasa player
Registered: 30-03-2010
Posts: 5

Automatic car and plane control

Hello again:P This CLEO 3 mod makes your car, bike, boat or plane Automatic controlled vehicle.
Usage is simply:^

1. Copy the three codes to SB and compile. MUST BE DIFFRENT FILES FOR THEM!

Plane code:

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
03A4: name_thread 'TEST'

:TEST_11
0001: wait 0 ms
00D6: if
04C8:   actor $PLAYER_ACTOR driving_flying_vehicle
004D: jump_if_false @TEST_11
03C0: 0@ = actor $PLAYER_ACTOR car
00D6: if
04C8:   actor $PLAYER_ACTOR driving_flying_vehicle
004D: jump_if_false @TEST_11

:TEST_55
0001: wait 0 ms
00D6: if and
0AB0:   key_pressed 17
0AB0:   key_pressed 89
004D: jump_if_false @TEST_55
0001: wait 0 ms
0AB6: store_target_marker_coords_to 9@ 10@ 11@ // IF and SET
0001: wait 800 ms
00A9: set_car 0@ to_normal_driver
04D2: set_plane 0@ fly_autopilot_around_point 9@ 10@ 11@ altitude_between 280.0 and 280.0
00AD: set_car 0@ max_speed_to 500.0
06FD: set_car 0@ speed_on_path_to 100.0
0002: jump @TEST_11

And the car thing:

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
03A4: name_thread 'TEST'

:TEST_11
0001: wait 0 ms
00D6: if
00DF:   actor $PLAYER_ACTOR driving
004D: jump_if_false @TEST_11
03C0: 7@ = actor $PLAYER_ACTOR car
00D6: if and
0AB0:   key_pressed 17
0AB0:   key_pressed 85
00DF:   actor $PLAYER_ACTOR driving
004D: jump_if_false @TEST_11
0001: wait 250 ms
00A9: set_car 7@ to_normal_driver
0AB6: store_target_marker_coords_to 4@ 5@ 6@ // IF and SET
00A7: car 7@ drive_to 4@ 5@ 6@
00AD: set_car 7@ max_speed_to 300.0
06FD: set_car 7@ speed_on_path_to 300.0

:TEST_118
0001: wait 0 ms
00D6: if and
0AB0:   key_pressed 17
0AB0:   key_pressed 85
004D: jump_if_false @TEST_118
01C3: remove_references_to_car 7@ // Like turning a car into any random car
0002: jump @TEST_11

And the heli code:

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
03A4: name_thread 'TEST'

:TEST_11
0001: wait 0 ms
00D6: if
04A9:   actor $PLAYER_ACTOR driving_heli
004D: jump_if_false @TEST_11
03C0: 7@ = actor $PLAYER_ACTOR car
00D6: if and
0AB0:   key_pressed 17
0AB0:   key_pressed 86
04A9:   actor $PLAYER_ACTOR driving_heli
004D: jump_if_false @TEST_11
0001: wait 250 ms
00A9: set_car 7@ to_normal_driver
0AB6: store_target_marker_coords_to 4@ 5@ 6@ // IF and SET
04A2: set_heli 7@ fly_to 4@ 5@ 6@ altitude_between 200.0 and 280.0
00AD: set_car 7@ max_speed_to 300.0
06FD: set_car 7@ speed_on_path_to 300.0

:TEST_118
0001: wait 0 ms
00D6: if and
0AB0:   key_pressed 17
0AB0:   key_pressed 86
004D: jump_if_false @TEST_118
01C3: remove_references_to_car 7@ // Like turning a car into any random car
0002: jump @TEST_11

2. Run the game.
3. Place marker on the map. (The red thing)
4. Planes use keys CTRL + Y and cars, boats and bikes use CTRL + U and helis use CTRL + Z
5. Now the car, boat or bike should drive automatically to marker. The planes will do circle around the marker
6. Done:clap:

If you followed these easy steps and get this work, good

You can change destination by changing the place of the marker and pressing CTRL + Y for planes, ground vehicles use CTRL + U and helis use CTRL + Z to change destination.

Known bugs:
Sometimes when driving car or bike, and the marker is too far, the vehicle go straight to marker.

Offline

Board footer

Powered by FluxBB