Michael.Knight1 Posted February 14, 2012 Share Posted February 14, 2012 (edited) Hi Guy , I Have A Problem With compnent x,y,z To Transform in Other Car 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 February 14, 2012 by Michael.Knight1 Link to comment Share on other sites More sharing options...
ZAZ Posted February 14, 2012 Share Posted February 14, 2012 Hi Guy , I Have A Problem With compnent x,y,z To Transform in Other Car 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]) CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Michael.Knight1 Posted February 14, 2012 Author Share Posted February 14, 2012 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 More sharing options...
fireguy109 Posted February 15, 2012 Share Posted February 15, 2012 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] Link to comment Share on other sites More sharing options...
Ashwin.Star Posted February 15, 2012 Share Posted February 15, 2012 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 More sharing options...
Michael.Knight1 Posted February 15, 2012 Author Share Posted February 15, 2012 (edited) Instead of 0.0 0.0 0.0 use [email protected] [email protected] [email protected]: 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] Game Crashed ?? Edited February 15, 2012 by Michael.Knight1 Link to comment Share on other sites More sharing options...
Link2012 Posted February 15, 2012 Share Posted February 15, 2012 I think that he wants to say: 00A0: store_actor $PLAYER_ACTOR position_to [email protected] [email protected] [email protected]// stuff00A5: [email protected] = create_car #PONY at [email protected] [email protected] [email protected] Link to comment Share on other sites More sharing options...
fireguy109 Posted February 16, 2012 Share Posted February 16, 2012 (edited) 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 February 16, 2012 by fireguy109 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now