Jump to content

floating cars


Bad.boy!

Recommended Posts

Is it possible to make a script that makes a car float on water, just like the leviathan?

Link to comment
Share on other sites

How should I start that script???

 

 

//-------------MAIN---------------thread 'FLOAT' :FLOAT_11wait 0 if   Player.Defined($PLAYER_CHAR)else_jump @FLOAT_11 if 1   Actor.Driving($PLAYER_ACTOR)0AB0:   key_pressed 34 else_jump @FLOAT_11 03C0: 0@ = actor $PLAYER_ACTOR car 0ABF: set_vehicle 0@ AND THAN WHAT???

 

Link to comment
Share on other sites

You can just enable Cars Drive on Water cheat by writing 1 to 0x969152.

Link to comment
Share on other sites

you mean writing memory. confused whatsthat.gif

 

but I want it in a cleo script, I know there's an trainer to do this:

Crazy trainer

but I want to make a script (and no turning wheels)

Link to comment
Share on other sites

Then just use write memory opcode...

Link to comment
Share on other sites

 

//-------------MAIN---------------thread 'FLOAT' :FLOAT_11wait 0 if  Player.Defined($PLAYER_CHAR)else_jump @FLOAT_11 if 1  Actor.Driving($PLAYER_ACTOR)0AB0:   key_pressed 34 else_jump @FLOAT_11 03C0: 0@ = actor $PLAYER_ACTOR car 

 

 

Can I write it in this code or do I have to start all over again, and how to enable/disable:

 

0A8C: write_memory 0x969152 size 1 value 1 virtual_protect 0

 

 

Something like this?:

 

set???10A8C: write_memory 0x969152 size 1 value 1 virtual_protect 0

 

 

I'm new with cleo modding can someone tell me how to toggle it on and of

 

 

Link to comment
Share on other sites

default is zero so make it like this:

 

if and

Actor.Driving($PLAYER_ACTOR)

0AB0: key_pressed 34

jf@FLOAT_11

0A8C: write_memory 0x969152 size 1 value 1 virtual_protect 0

wait 500 // fixxing keypress trouble

 

:FLOAT_23

wait 20

if and

0AB0: key_pressed 34

jf@FLOAT_23

0A8C: write_memory 0x969152 size 1 value 0 virtual_protect 0

Link to comment
Share on other sites

Or, to make it 101% bug and oh-I-pressed-a-key-for-too long free, all you need is:

 

 

0000: FLOATING_CARSwhile true   wait 0   if       00DF:   actor $PLAYER_ACTOR driving   then       if           0AB0:  key_pressed 34       then           if               0039:   0@ == 0           then               0006: 0@ = 1           else               0006: 0@ = 0           end           0A8C: write_memory 0x969152 size 1 value 0@ virtual_protect 0                      while 0AB0:  key_pressed 34               wait 0           end // It fixes "oh-I-pressed..." issue       end   endend

 

 

Easy, clean and in R* style smile.gif

 

Not that Siggi's code is bad - my code won't keep enabling and disabling cheat when key is pressed all the time.

Link to comment
Share on other sites

how to end the script??? with jump @FLOAT_11?

 

 

//-------------MAIN---------------thread 'FLOAT' :FLOAT_11wait 0 if  Player.Defined($PLAYER_CHAR)else_jump @FLOAT_11 if 1  Actor.Driving($PLAYER_ACTOR)0AB0:   key_pressed 34 else_jump @FLOAT_11if 03C0: 0@ = 00006: 0@ = 1else_jump @FLOAT_110006:  0@ = 0end 0A8C: write_memory 0x969152 size 1 value 1 virtual_protect 00AB0:   key_pressed 34wait 0

 

Link to comment
Share on other sites

low level:

 

{$CLEO .cs}//-------------MAIN---------------0000: NOP :Noname_20001: wait 20 ms 00D6: if 0256:   player $PLAYER_CHAR defined 004D: jump_if_false @Noname_129 00D6: if and00DF:   actor $PLAYER_ACTOR driving 0AB0:   key_pressed 34 004D: jump_if_false @Noname_129 03E5: show_text_box 'CHEAT1'  // Cheat activated0A8C: write_memory 9867602 size 1 value 1 virtual_protect 0 :Noname_660001: wait 500 ms 00D6: if and00DF:   actor $PLAYER_ACTOR driving 0AB0:   key_pressed 34 004D: jump_if_false @Noname_122 03E5: show_text_box 'CHEAT8'  // Cheat deactivated0A8C: write_memory 9867602 size 1 value 0 virtual_protect 0 0002: jump @Noname_129 :Noname_1220002: jump @Noname_66 :Noname_1290002: jump @Noname_2 

 

 

high level

 

{$CLEO}0000:while true   wait 20   if   0256:   player $PLAYER_CHAR defined    then       if and       Actor.Driving($PLAYER_ACTOR)       0AB0:   key_pressed 34       then           03E5: show_text_box 'CHEAT1'    //  optional           0A8C: write_memory 0x969152 size 1 value 1 virtual_protect 0           repeat                wait 500               if and               Actor.Driving($PLAYER_ACTOR)               0AB0:   key_pressed 34               then                   03E5: show_text_box 'CHEAT8'    //  optional                   0A8C: write_memory 0x969152 size 1 value 0 virtual_protect 0                   break               end           until false       end   endend

 

Link to comment
Share on other sites

My script is already complete...

 

 

@up

Grr!

Link to comment
Share on other sites

I can't deactivate it

 

 

{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------0000: NOP :NONAME_2wait 20 if   Player.Defined($PLAYER_CHAR)else_jump @NONAME_129 if and  Actor.Driving($PLAYER_ACTOR)0AB0:   key_pressed 33 else_jump @NONAME_129 03E5: show_text_box 'CHEAT1'  // Cheat activated0A8C: write_memory 9867602 size 1 value 1 virtual_protect 0 :NONAME_66wait 500 if and  Actor.Driving($PLAYER_ACTOR)0AB0:   key_pressed 33 else_jump @NONAME_122 03E5: show_text_box 'CHEAT8'  // Cheat deactivated0A8C: write_memory 9867602 size 1 value 0 virtual_protect 0 jump @NONAME_129 :NONAME_122jump @NONAME_66 :NONAME_129jump @NONAME_2 

 

 

And I want to make it like, page up is activated, and page down is deactivated

 

Like this?

 

{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------0000: NOP :NONAME_2wait 20 if   Player.Defined($PLAYER_CHAR)else_jump @NONAME_129 if and  Actor.Driving($PLAYER_ACTOR)0AB0:   key_pressed 33 else_jump @NONAME_129 03E5: show_text_box 'CHEAT1'  // Cheat activated0A8C: write_memory 9867602 size 1 value 1 virtual_protect 0 :NONAME_66wait 500 if and  Actor.Driving($PLAYER_ACTOR)0AB0:   key_pressed 33 else_jump @NONAME_122 03E5: show_text_box 'CHEAT8'  // Cheat deactivated0A8C: write_memory 9867602 size 1 value 0 virtual_protect 0 jump @NONAME_129 :NONAME_122jump @NONAME_66 :NONAME_129jump @NONAME_2 

 

 

I tried both of the scripts but I can't deactivate

Link to comment
Share on other sites

Try the script by SilentPL. It seems to be working as expected. Driving on water can be toggled on and off using the Page Down key.

Link to comment
Share on other sites

This script makes a car float, just like a hovercraft, but I don't want the wheels to turn like that, is that possible to?

 

And what is the name of the smoke that the car creates in "hover" mode, so I can remove that to

Edited by Bad.boy!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.