Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

The car out of scmpath


Anthony ok
 Share

Recommended Posts

hi guys. I have a problem who make me confused... sad.gif

 

why the player's car out of scm path after run about the quarter of path ?

 

i dont know what the problem... please help me whose clever and experienced in cleo...

 

 

please correct this code...

 

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'DRAG' :DRAG_11wait 0 if 0100:   actor $PLAYER_ACTOR in_sphere 404.2664 2539.429 16.5458 radius 2.0 2.0 2.0 sphere 1 in_car jf @DRAG_11 03C0: [email protected] = actor $PLAYER_ACTOR car wait 500 0169: set_fade_color_RGB 255 255 255 fade 0 1000 wait 1000 Car.PutAt([email protected], -2841.555, 2853.676, 458.9297)Car.Angle([email protected]) = 228.869fade 1 1000 05D6: clear_scmpath 05D7: add_point_to_scmpath -2841.555 2853.676 458.9297 05D7: add_point_to_scmpath 2229.838 -2217.414 458.9297 07E7: AS_assign_scmpath_to_actor $PLAYER_ACTOR in_car [email protected] speed 450.0 flags 0 0 0 00AE: set_car [email protected] traffic_behaviour_to 2 Car.SetMaxSpeed([email protected], 350)jump @DRAG_11 

 

confused.gif

Link to comment
Share on other sites

 

why the player's car out of scm path after run about the quarter of path ?

 

The distance from one point to the next is to big for for the car drive. The car will drive then to the next path point of nodes.dat

use opcodes 039F: and Car.SetSpeedInstantly

test the script below and you will be happy

 

{$CLEO .cs}thread 'DRAG':DRAG_11wait 0if0100:   actor $PLAYER_ACTOR in_sphere 404.2664 2539.429 16.5458 radius 2.0 2.0 2.0 sphere 1 in_carjf @DRAG_1103C0: [email protected] = actor $PLAYER_ACTOR carwait 5000169: set_fade_color_RGB 255 255 255fade 0 1000wait 1000Car.PutAt([email protected], -2841.555, 2853.676, 458.9297)Car.Angle([email protected]) = 228.869fade 1 1000wait 1000:DRAG_13wait 0 if   Player.Defined($PLAYER_CHAR)jf @DRAG_11 039F: set_car [email protected] race_to 2229.838 -2217.414 Car.SetSpeedInstantly([email protected], 350.0)if and  not Car.Wrecked([email protected])81F4:   not car [email protected] flippedjf @DRAG_11if 01AF:   car [email protected] sphere 0 in_sphere 2229.838 -2217.414 458.9297 radius 5.2 5.2 5.0 jf @DRAG_13  Car.LockInCurrentPosition([email protected]) = Truewait 10Car.LockInCurrentPosition([email protected]) = Falsejump @DRAG_11

 

 

Nice track btw., i just don't like to have it in the sky. I would place it in the very north from east to west, a little bit above of the mountains

Link to comment
Share on other sites

 

The distance from one point to the next is to big for for the car drive. The car will drive then to the next path point of nodes.dat

use opcodes 039F: and Car.SetSpeedInstantly

test the script below and you will be happy

 

I HAVE try it but the car is not to do acellerate...

can you make it acellerate first...?

Link to comment
Share on other sites

 

 

The distance from one point to the next is to big for for the car drive. The car will drive then to the next path point of nodes.dat

use opcodes 039F: and Car.SetSpeedInstantly

test the script below and you will be happy

 

I HAVE try it but the car is not to do acellerate...

can you make it acellerate first...?

no, that's your job

it needs to increase the speed parameter with a little bit math coding, like this:

 

if350.0 > [email protected] @[email protected] += 0.1Car.SetSpeedInstantly([email protected], [email protected])

 

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
 Share

  • 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.