IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 CLEO Scripting Problem

 Need Some Help
 
Han_M  
Posted: Tuesday, Jul 17 2012, 20:23
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 24, 2012

ba.gif

XXXXX



im having some trouble, i have no experience in cleo scripting and i need some help to make this script to work...

the main idea is on the key press, if the player is driving, it plays the wav and the car jumps about a height enough to jump a truck...

i need some help here biggrin.gif
it was supposed to work in III and VC, mainly III
i know there is something critically wrong down here, the game crashes after loading


// This file was decompiled using scm.ini published by GtaForums.com on 25.11.05

{$VERSION 1.1.0000}
{$CLEO .cs}

//-------------MAIN---------------
thread 'TBOOST'
if
Player.Defined($PLAYER_CHAR)
Actor.Driving($PLAYER_ACTOR)
wait 100
jump @TBOOST_35

:TBOOST_35
03C0: 13@ = actor $PLAYER_ACTOR car
05EE: key_pressed 96 //VK_...
03CF: load_wav 'SUBOPEN'
else_jump @TBOOST_35
03D1: play_wav
jump @TBOOST_35
06A2:
1@ /= 2000.0 // floating-point values
2@ /= 2000.0 // floating-point values
3@ /= 2000.0 // floating-point values
02F8: unknown_car 13@ unknown_cosine 4@
02F9: unknown_car 13@ unknown_sinus 5@
4@ *= 0.25 // floating-point values
5@ *= 0.25 // floating-point values
005B: 1@ += 4@ // floating-point values
005B: 2@ += 5@ // floating-point values
3@ += 0.25 // floating-point values
07D5:
wait 2000
jump @TBOOST_35

monocle.gif
PM
  Top
 

 
fireguy109  
Posted: Tuesday, Jul 17 2012, 21:53
Quote Post


Come in, cause trouble, leave for another week.
Group Icon
Group: Leone Family Mafia
Joined: Aug 30, 2010

us.gif

XXXXX



CODE
// This file was decompiled using scm.ini published by GtaForums.com on 25.11.05

{$VERSION 1.1.0000}
{$CLEO .cs}

//-------------MAIN---------------
thread 'TBOOST'

:TBOOST_0
wait 0
if and
  Player.Defined($PLAYER_CHAR)
  Actor.Driving($PLAYER_ACTOR)
jump_if_false @TBOOST_0
wait 100
03C0: 13@ = actor $PLAYER_ACTOR car

:TBOOST_35
wait 0
00D6: if
05EE:  key_pressed 96 //VK_...
004D: jump_if_false @TBOOST_0
03CF: load_wav 'SUBOPEN'

:TBOOST_40
wait 0
00D6: if
03D0:   wav_loaded
004D: jump_if_false @TBOOST_40
03D1: play_wav 'SUBOPEN'
06A2: get_car 13@ velocity_in_direction_XYZ 1@ 2@ 3@
02F8: unknown_car 13@ unknown_cosine 4@
02F9: unknown_car 13@ unknown_sinus 5@
4@ *= 0.25 // floating-point values
5@ *= 0.25 // floating-point values
005B: 1@ += 4@ // floating-point values
005B: 2@ += 5@ // floating-point values
3@ += 0.25 // floating-point values
07D5: set_car 13@ velocity_in_direction_XYZ 1@ 2@ 3@ rotation_velocitiesXY 0.0 0.0 unk 0.0
040D: unload_wav 'SUBOPEN'
wait 2000
jump @TBOOST_0


This post has been edited by fireguy109 on Tuesday, Jul 17 2012, 22:26
Users WebsitePMPlayStation Network
  Top
 

 
Han_M  
Posted: Tuesday, Jul 17 2012, 23:06
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 24, 2012

ba.gif

XXXXX



QUOTE (fireguy109 @ Tuesday, Jul 17 2012, 21:53)
CODE
// This file was decompiled using scm.ini published by GtaForums.com on 25.11.05

{$VERSION 1.1.0000}
{$CLEO .cs}

//-------------MAIN---------------
thread 'TBOOST'

:TBOOST_0
wait 0
if and
  Player.Defined($PLAYER_CHAR)
  Actor.Driving($PLAYER_ACTOR)
jump_if_false @TBOOST_0
wait 100
03C0: 13@ = actor $PLAYER_ACTOR car

:TBOOST_35
wait 0
00D6: if
05EE:  key_pressed 96 //VK_...
004D: jump_if_false @TBOOST_0
03CF: load_wav 'SUBOPEN'

:TBOOST_40
wait 0
00D6: if
03D0:   wav_loaded
004D: jump_if_false @TBOOST_40
03D1: play_wav 'SUBOPEN'
06A2: get_car 13@ velocity_in_direction_XYZ 1@ 2@ 3@
02F8: unknown_car 13@ unknown_cosine 4@
02F9: unknown_car 13@ unknown_sinus 5@
4@ *= 0.25 // floating-point values
5@ *= 0.25 // floating-point values
005B: 1@ += 4@ // floating-point values
005B: 2@ += 5@ // floating-point values
3@ += 0.25 // floating-point values
07D5: set_car 13@ velocity_in_direction_XYZ 1@ 2@ 3@ rotation_velocitiesXY 0.0 0.0 unk 0.0
040D: unload_wav 'SUBOPEN'
wait 2000
jump @TBOOST_0


i can't compile it, i had to replace the jump_if_false @TBOOST_0
with jf  @TBOOST_0 and the game crashes
what is the problem? :l

[CODE]// This file was decompiled using scm.ini published by GtaForums.com on 25.11.05

{$VERSION 1.1.0000}
{$CLEO .cs}

i can't compile it, i had to replace the jump_if_false @TBOOST_0
with jf @TBOOST_0 and the game crashes
what is the problem? :l
PM
  Top
 

 
Han_M  
Posted: Wednesday, Jul 18 2012, 14:57
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 24, 2012

ba.gif

XXXXX



any way to give it compiled or something?
its crashing here
PM
  Top
 

 
fireguy109  
Posted: Wednesday, Jul 18 2012, 16:24
Quote Post


Come in, cause trouble, leave for another week.
Group Icon
Group: Leone Family Mafia
Joined: Aug 30, 2010

us.gif

XXXXX



You can't use SA opcodes in a VC/III Cleo script. I don't know any III opcodes that will let you set vehicle velocity, as position opcodes remove the car's momentum. Only Object velocity opcodes will work, and as you know objects =/= cars.
Users WebsitePMPlayStation Network
  Top
 

 
Han_M  
Posted: Wednesday, Jul 18 2012, 17:11
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 24, 2012

ba.gif

XXXXX



QUOTE (fireguy109 @ Wednesday, Jul 18 2012, 16:24)
You can't use SA opcodes in a VC/III Cleo script. I don't know any III opcodes that will let you set vehicle velocity, as position opcodes remove the car's momentum. Only Object velocity opcodes will work, and as you know objects =/= cars.

any chance making the car to jump?
PM
  Top
 

 
Michael-Knight1  
Posted: Friday, Jul 20 2012, 00:30
Quote Post


Never Give UP
Group Icon
Group: Members
Joined: Jul 8, 2012

gr.gif

XXXXX



@Han_M Please Create Your Own Idea About Turbo Boost Codding confused.gif
Users WebsitePM
  Top
 

 
Han_M  
Posted: Friday, Jul 20 2012, 14:48
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 24, 2012

ba.gif

XXXXX



QUOTE (Michael-Knight1 @ Friday, Jul 20 2012, 00:30)
@Han_M Please Create Your Own Idea About Turbo Boost Codding confused.gif

i didnt understand you, you want me to create a own? kinda is, just need some help to make it work, it's one of my first attempts in CLEO, and would be a great help if someone can make the car to jump like TURBO BOOST, wich seems hard in GTAIII, can you somehow help?
PM
  Top
 

 
Han_M  
Posted: Wednesday, Jul 25 2012, 15:47
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 24, 2012

ba.gif

XXXXX



gotta bump....
anyone?!
PM
  Top
 

 
fireguy109  
Posted: Wednesday, Jul 25 2012, 21:07
Quote Post


Come in, cause trouble, leave for another week.
Group Icon
Group: Leone Family Mafia
Joined: Aug 30, 2010

us.gif

XXXXX



Can't you just use the better handling cheat? That should jump your car...
Users WebsitePMPlayStation Network
  Top
 

 
Han_M  
Posted: Thursday, Jul 26 2012, 14:57
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 24, 2012

ba.gif

XXXXX



QUOTE (fireguy109 @ Wednesday, Jul 25 2012, 21:07)
Can't you just use the better handling cheat? That should jump your car...

shame that GTA III has no jumping car, and this handling sux, car flips too easy and jump is always fail, any other way? really needed in cleo =/
PM
  Top
 

 
Han_M  
Posted: Saturday, Aug 11 2012, 13:09
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 24, 2012

ba.gif

XXXXX



so?
how about VC maybe?
PM
  Top
 

 
Han_M  
Posted: Sunday, Sep 9 2012, 12:44
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 24, 2012

ba.gif

XXXXX



sorry for triple

but so! anyone? this kinda became a request but can any one solve this?
i can't script, that was a ugly attempt, but can anyone help?
(or shall we close? suicidal.gif )
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG