CLEO Help set_car state/status?

CLEO related
Status
Not open for further replies.

vnikker

Member
Joined
Feb 15, 2014
Messages
6
Reaction score
0
Hello fellas, im back and asking for help once again.
Im sure this question has already been asked before, but i was unable to find any information about it.
Basically what iam trying to do is stop the bmx instantly and set the state to assume its on the ground even if it is in the air or whatever. This would probably make it possible to jump with CTRL again and thats my mission. :computerguy: Here is my "pseudo" script.
I hope somebody is able to help a newbie, and i would appreciate any advice.
In advance thanks alot!


Code:
:brake
wait 0
if and
 Actor.DrivingVehicleType($PLAYER_ACTOR, #BMX)
   key_down 12@ //read from ini
   jf @brake
   1@ = Actor.CurrentCar($PLAYER_ACTOR)
   if
   01F3: car 1@ in_air
   jf @brake2
   jump @brake
   
   :brake2 
       wait 0
     Car.SetSpeedInstantly(1@, 0.0) // this is not really what i wanted, but it works i guess..
//here i want to force the bmx to assume its on the ground so i can do a jump with CTRL again
//i found this opcode 09D0: is_vehicle_on_all_wheels 1@
//but i have been unable to find any information about how to "SET"_vehicle_on_all_wheels 

   jump @brake
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
vnikker said:
Bumperino

[shcode=cpp]
if 
01F4:   car 0@ flipped 
jf @GG_11 
02E3: 1@ = car 0@ speed 
if 
  6.0 > 1@ 
jf @GG_11 
goto @GG_141 

:UNFLIP_141
wait 0 
0731: set_car 0@ y_angle_to 0 
goto @GG_11 
[/shcode]
 

vnikker

Member
Joined
Feb 15, 2014
Messages
6
Reaction score
0
Opcode.eXe said:
You can just SetVehicleVelocity 0.0 0.0 0.3 and it will look like a bunnyhop ^^

Yea actually i already did that, but i would prefer using the legit jump instead if possible :iknowwhatyoudidthere:
 
Status
Not open for further replies.
Top