CLEO Help Repair&Flip.cs how to customize the amount?

CLEO related
Status
Not open for further replies.

falvaimilan

Member
Joined
Nov 20, 2019
Messages
6
Reaction score
0
Location
Hungary
Hi guys,

I have this .cs file which repairs and flips the car.

I would like to know how to edit the amount of the car's health? So if a press "R" to repair the car I would like repair the car for 999 health, not 1000. I use Sanny Builder 3 and I can't find anything about it. (I don't know anything about programming, so I'm a noob).

Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 6.14.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP

:NONAME_2
wait 0
if
   Player.Defined($PLAYER_CHAR)
if
   Actor.Driving($PLAYER_ACTOR)
else_jump @NONAME_2
1@ = Actor.CurrentCar($PLAYER_ACTOR)
0@ = 304543
if and
   Actor.InCar($PLAYER_ACTOR, 1@)
  &0(0@,1i) == 255
else_jump @NONAME_2
0A30: repair_car 1@
wait 0
if
01F4:   car 1@ flipped
else_jump @NONAME_137
07DB: set_car 1@ rotation_velocity_XYZ 0.0 1.0 0.0 through_center_of_mass
Car.RemoveReferences(1@)
jump @NONAME_2

:NONAME_137
wait 200
Car.RemoveReferences(1@)
jump @NONAME_2

Thanks for your help in advance,

-- Milan
 

falvaimilan

Member
Joined
Nov 20, 2019
Messages
6
Reaction score
0
Location
Hungary
I'm really sorry for being a noob. This is how it's looks like:

Code:
0A30: repair_car 1@

I tried these:

- 0224: set_car_health 1@ to 999 CRASH
- 0224: set_car_health 999@ CRASH
- 0224: set_car_health 999 CRASH

I click on "Save As..." and save it to the original cleo file and I deleted the .txt file after I closed Sanny.

How should it look like with the new code? And how should I save it? I'm sorry again, I don't understand how these work.
 

falvaimilan

Member
Joined
Nov 20, 2019
Messages
6
Reaction score
0
Location
Hungary
Can I ask if there is a code for repair the components and make the HP to 999?
Because 0224: set_car_health 1@ to 999 make the HP to 999 only and 0A30: repair_car 1@ repairs the components + set the HP to 1000 and I couldn't manage to make this happen.

Nevermind I figured it out I wrote the 0224: set_car_health 1@ to 999 under the 0A30: repair_car 1@
 
Status
Not open for further replies.
Top