Jump to content

Transform To Car


Michael.Knight1

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: 0@ = 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(20@, "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: 0@ = actor $PLAYER_ACTOR car if 00DD:   actor $PLAYER_ACTOR driving_car_with_model #TAHOMA jf @MODEL_137 10@ = 589 jump @MODEL_171 :MODEL_137if   Actor.DrivingVehicleType($PLAYER_ACTOR, #CLUB)jf @MODEL_44 10@ = 516 jump @MODEL_171 :MODEL_1710247: load_model 10@ 038B: load_requested_models :MODEL_178wait 0 if   Model.Available(10@)jf @MODEL_178 0506: set_car_model 10@ next_variation -1 5 // first param is useless 0407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset 0.0 0.0 100.0 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 1@ 2@ 3@ 0407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset 0.0 0.0 0.0 4@ = Car.Angle(0@)02E3: 5@ = car 0@ speed Camera.PointAt(1@, 2@, 3@, 1)Car.Destroy(0@)00A5: 0@ = create_car #PONY at 0.0 0.0 0.0 Car.Angle(0@) = 4@5@ += 2.5 Car.SetSpeedInstantly(0@, 5@)Car.SetImmunities(0@, 1, 1, 1, 1, 1)053F: set_car 0@ tires_vulnerability 0 036A: put_actor $PLAYER_ACTOR in_car 0@ 00A6: destroy_car 10@ 02EB: restore_camera_with_jumpcut 09F0: restore_behind_camera_autoposition_mode_for_all_car_models wait 500 jump @MODEL_44 Audiostream.PerformAction(20@, 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
G1T
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?

 

 

10@ isn't a car handle

 

00A6: destroy_car 10@

 

 

 

10@ is a modelID

and remove reference to the new car

 

Model.Destroy(10@)Car.RemoveReferences(0@)

 

Link to comment
Share on other sites

Michael.Knight1
00A6: destroy_car 10@

 

10@ is a modelID

and remove reference to the new car

 

Model.Destroy(10@)Car.RemoveReferences(0@)

 

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 ??

 

 

G1T
Link to comment
Share on other sites

Instead of 0.0 0.0 0.0 use 1@ 2@ 3@

 

 

0407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset 0.0 0.0 0.0// stuff00A5: 0@ = create_car #PONY at 1@ 2@ 3@ 

 

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: 0@ = actor $PLAYER_ACTOR car 0174: 1@ = car 0@ Z_angle 02E3: 2@ = car 0@ speed03F3: get_car 0@ primary_color_to 6@ secondary_color_to 7@ 0407: store_coords_to 3@ 4@ 5@ from_car 0@ with_offset 0.0 0.0 0.0 0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 3@ 4@ 5@00A6: destroy_car 0@wait 000A5: 0@ = create_car #INFERNUS at 3@ 4@ 5@036A: put_actor $PLAYER_ACTOR in_car 0@ 0175: set_car 0@ Z_angle_to 1@04BA: set_car 0@ speed_to 2@ 0229: set_car 0@ primary_color_to 6@ secondary_color_to 7@wait 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

 

 

Instead of 0.0 0.0 0.0 use 1@ 2@ 3@0407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset 0.0 0.0 0.0// stuff00A5: 0@ = create_car #PONY at 1@ 2@ 3@

 

 

Game Crashed ??

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

I think that he wants to say:

00A0: store_actor $PLAYER_ACTOR position_to 1@ 2@ 3@// stuff00A5: 0@ = create_car #PONY at 1@ 2@ 3@

 

 

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: 0@ = actor $PLAYER_ACTOR car

if

00DD:   actor $PLAYER_ACTOR driving_car_with_model #TAHOMA

jf @MODEL_137

10@ = 589

jump @MODEL_171

 

:MODEL_137

if

  Actor.DrivingVehicleType($PLAYER_ACTOR, #CLUB)

jf @MODEL_44

10@ = 516

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

 

:MODEL_171

0247: load_model 10@

038B: load_requested_models

 

:MODEL_178

wait 0

if

  Model.Available(10@)

jf @MODEL_178

0506: set_car_model 10@ next_variation -1 5 // first param is useless

0407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset 0.0 0.0 100.0

0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 1@ 2@ 3@

0407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset 0.0 0.0 0.0

4@ = Car.Angle(0@)

02E3: 5@ = car 0@ speed

Camera.PointAt(1@, 2@, 3@, 1)

Car.Destroy(0@)

00A5: 0@ = create_car #PONY at 0.0 0.0 0.0 // <--- This is where you change 0.0 0.0 0.0 to 1@ 2@ 3@

Car.Angle(0@) = 4@

5@ += 2.5

Car.SetSpeedInstantly(0@, 5@)

Car.SetImmunities(0@, 1, 1, 1, 1, 1)

053F: set_car 0@ tires_vulnerability 0

036A: put_actor $PLAYER_ACTOR in_car 0@

00A6: destroy_car 10@ // <-- this should be '0249: release_model 10@' because 10@ 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(20@, 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
  • 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.