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

Happy Holidays from the GTANet team!

Transform To Car


Michael.Knight1
 Share

Recommended Posts

Michael.Knight1

Hi Guy , biggrin.gif

 

I Have A Problem With compnent x,y,z To Transform in Other Car icon14.gif

 

 

00A5: [email protected] = create_car #PONY at 0.0 0.0 0.0 

 

 

 

// 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 'MODEL' Audiostream.Load([email protected], "CLEO\AUDIO\Transform.MP3"):MODEL_440001: wait 100 ms if 0256:   player $PLAYER_CHAR defined jf @MODEL_44 if 00DF:   actor $PLAYER_ACTOR driving jf @MODEL_44 if 0AB0:   key_pressed 103 jf @MODEL_44 03C0: [email protected] = actor $PLAYER_ACTOR car if 00DD:   actor $PLAYER_ACTOR driving_car_with_model #TAHOMA jf @MODEL_137 [email protected] = 589 jump @MODEL_171 :MODEL_137if   Actor.DrivingVehicleType($PLAYER_ACTOR, #CLUB)jf @MODEL_44 [email protected] = 516 jump @MODEL_171 :MODEL_1710247: load_model [email protected] 038B: load_requested_models :MODEL_178wait 0 if   Model.Available([email protected])jf @MODEL_178 0506: set_car_model [email protected] next_variation -1 5 // first param is useless 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 100.0 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at [email protected] [email protected] [email protected] 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 0.0 [email protected] = Car.Angle([email protected])02E3: [email protected] = car [email protected] speed Camera.PointAt([email protected], [email protected], [email protected], 1)Car.Destroy([email protected])00A5: [email protected] = create_car #PONY at 0.0 0.0 0.0 Car.Angle([email protected]) = [email protected]@ += 2.5 Car.SetSpeedInstantly([email protected], [email protected])Car.SetImmunities([email protected], 1, 1, 1, 1, 1)053F: set_car [email protected] tires_vulnerability 0 036A: put_actor $PLAYER_ACTOR in_car [email protected] 00A6: destroy_car [email protected] 02EB: restore_camera_with_jumpcut 09F0: restore_behind_camera_autoposition_mode_for_all_car_models wait 500 jump @MODEL_44 Audiostream.PerformAction([email protected], PLAY)wait 500 jump @MODEL_44 

 

 

Pleasse :

You're not allowed to modify or host any of these mods without

permission!

 

Edited by Michael.Knight1
Link to comment
Share on other sites

 

Hi Guy ,  biggrin.gif

 

I Have A Problem With  compnent x,y,z To Transform in Other Car  icon14.gif

 

 

what happend?

what is compnent?

 

 

[email protected] isn't a car handle

 

00A6: destroy_car [email protected]

 

 

 

[email protected] is a modelID

and remove reference to the new car

 

Model.Destroy([email protected])Car.RemoveReferences([email protected])

 

Link to comment
Share on other sites

Michael.Knight1
00A6: destroy_car [email protected]

 

[email protected] is a modelID

and remove reference to the new car

 

Model.Destroy([email protected])Car.RemoveReferences([email protected])

 

ZAZ That Just I want to switch to a car But I do not know What is The code To Make it The switch in place to Other Car ??

 

 

Link to comment
Share on other sites

Instead of 0.0 0.0 0.0 use [email protected] [email protected] [email protected]

 

 

0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 0.0// stuff00A5: [email protected] = create_car #PONY at [email protected] [email protected] [email protected] 

 

pkmTc.gif

Link to comment
Share on other sites

as it is for SAn andreas

you can try this,

 

{$CLEO .cs}thread 'ashwin'model.Load(#INFERNUS)038B: load_requested_models :0wait 0if and0AB0:  key_pressed 10300DF:   actor $PLAYER_ACTOR driving model.Available(#INFERNUS)jf @003C0: [email protected] = actor $PLAYER_ACTOR car 0174: [email protected] = car [email protected] Z_angle 02E3: [email protected] = car [email protected] speed03F3: get_car [email protected] primary_color_to [email protected] secondary_color_to [email protected] 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 0.0 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at [email protected] [email protected] [email protected]: destroy_car [email protected] 000A5: [email protected] = create_car #INFERNUS at [email protected] [email protected] [email protected]: put_actor $PLAYER_ACTOR in_car [email protected] 0175: set_car [email protected] Z_angle_to [email protected]: set_car [email protected] speed_to [email protected] 0229: set_car [email protected] primary_color_to [email protected] secondary_color_to [email protected] 1000jump @0  

 

i have not tried but i am sure it will work,

otherwise download & read my Transformer Mod (VC)

good luck,

Link to comment
Share on other sites

Michael.Knight1

 

 

Game Crashed ??

Edited by Michael.Knight1
Link to comment
Share on other sites

That's your own faulty code at work, you idiot. Jeez, can you do anything besides copy-pasting others' code?

 

Your original code spawns the pony at the coordinates 0.0 0.0 0.0 every time. My change fixes that, but there are many more errors in your script.

 

(referring to the OP, not the Link dude who posted above me)

 

 

// 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 'MODEL'

Audiostream.Load(20@, "CLEO\AUDIO\Transform.MP3")

 

:MODEL_44

0001: wait 100 ms // merge all the checks into one, it's cleaner

if and

0256:   player $PLAYER_CHAR defined

00DF:   actor $PLAYER_ACTOR driving

0AB0:   key_pressed 103

jf @MODEL_44

03C0: [email protected] = actor $PLAYER_ACTOR car

if

00DD:   actor $PLAYER_ACTOR driving_car_with_model #TAHOMA

jf @MODEL_137

[email protected] = 589

jump @MODEL_171

 

:MODEL_137

if

  Actor.DrivingVehicleType($PLAYER_ACTOR, #CLUB)

jf @MODEL_44

[email protected] = 516

jump @MODEL_171 // <--- this is useless, since it's going there anyways.

 

:MODEL_171

0247: load_model [email protected]

038B: load_requested_models

 

:MODEL_178

wait 0

if

  Model.Available([email protected])

jf @MODEL_178

0506: set_car_model [email protected] next_variation -1 5 // first param is useless

0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 100.0

0362: remove_actor $PLAYER_ACTOR from_car_and_place_at [email protected] [email protected] [email protected]

0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 0.0

[email protected] = Car.Angle([email protected])

02E3: [email protected] = car [email protected] speed

Camera.PointAt([email protected], [email protected], [email protected], 1)

Car.Destroy([email protected])

00A5: [email protected] = create_car #PONY at 0.0 0.0 0.0 // <--- This is where you change 0.0 0.0 0.0 to [email protected] [email protected] [email protected]

Car.Angle([email protected]) = [email protected]

[email protected] += 2.5

Car.SetSpeedInstantly([email protected], [email protected])

Car.SetImmunities([email protected], 1, 1, 1, 1, 1)

053F: set_car [email protected] tires_vulnerability 0

036A: put_actor $PLAYER_ACTOR in_car [email protected]

00A6: destroy_car [email protected] // <-- this should be '0249: release_model [email protected]' because [email protected] is a model not a car

02EB: restore_camera_with_jumpcut

09F0: restore_behind_camera_autoposition_mode_for_all_car_models // <--- this is completely useless, remove it

wait 500

jump @MODEL_44 // <---- because of this the sound will never play, remove it

Audiostream.PerformAction([email protected], PLAY)

wait 500

jump @MODEL_44

Edited by fireguy109

pkmTc.gif

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.