Quantcast

Jump to content

» «
Photo

CLEO Scripting Problem

14 replies to this topic
Han_M
  • Han_M

    Player Hater

  • Members
  • Joined: 24 May 2012

#1

Posted 17 July 2012 - 08:23 PM

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

fireguy109
  • fireguy109

    It's a long way to the top

  • The Connection
  • Joined: 30 Aug 2010
  • United-States

#2

Posted 17 July 2012 - 09:53 PM Edited by fireguy109, 17 July 2012 - 10:26 PM.

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

Han_M
  • Han_M

    Player Hater

  • Members
  • Joined: 24 May 2012

#3

Posted 17 July 2012 - 11:06 PM

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=auto:0]// 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

Han_M
  • Han_M

    Player Hater

  • Members
  • Joined: 24 May 2012

#4

Posted 18 July 2012 - 02:57 PM

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

fireguy109
  • fireguy109

    It's a long way to the top

  • The Connection
  • Joined: 30 Aug 2010
  • United-States

#5

Posted 18 July 2012 - 04:24 PM

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.

Han_M
  • Han_M

    Player Hater

  • Members
  • Joined: 24 May 2012

#6

Posted 18 July 2012 - 05:11 PM

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?

Michael-Knight1
  • Michael-Knight1

    Never Give UP

  • Members
  • Joined: 08 Jul 2012

#7

Posted 20 July 2012 - 12:30 AM

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

Han_M
  • Han_M

    Player Hater

  • Members
  • Joined: 24 May 2012

#8

Posted 20 July 2012 - 02:48 PM

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?

Han_M
  • Han_M

    Player Hater

  • Members
  • Joined: 24 May 2012

#9

Posted 25 July 2012 - 03:47 PM

gotta bump....
anyone?!

fireguy109
  • fireguy109

    It's a long way to the top

  • The Connection
  • Joined: 30 Aug 2010
  • United-States

#10

Posted 25 July 2012 - 09:07 PM

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

Han_M
  • Han_M

    Player Hater

  • Members
  • Joined: 24 May 2012

#11

Posted 26 July 2012 - 02:57 PM

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 =/

Han_M
  • Han_M

    Player Hater

  • Members
  • Joined: 24 May 2012

#12

Posted 11 August 2012 - 01:09 PM

so?
how about VC maybe?

Han_M
  • Han_M

    Player Hater

  • Members
  • Joined: 24 May 2012

#13

Posted 09 September 2012 - 12:44 PM

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 )

HM128
  • HM128

    alovelyday

  • Feroci
  • Joined: 09 Jul 2006
  • None
  • Best Map 2013 "ViceCityStories PC Edition"

#14

Posted 12 February 2014 - 09:46 PM Edited by HackMan128, 12 February 2014 - 10:01 PM.

ZAZ shame on you, where have you been when that guy was with the request?

For future readers, I think 03CF could cause crash on VC CLEO if used improperly.


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#15

Posted 12 February 2014 - 10:05 PM

please forgive me, i was in China at this time




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users