MrGTAmodsgerman Posted January 19, 2014 Share Posted January 19, 2014 (edited) I wanna make a script that makes the rhino swimming in a water like a boat. I know this is workable, i see in the night ride mod that.How i can make this like in the night rider mod?I wanna make this but all cars can swim and it doesnt looks like the night rider mod My script: // 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---------------03A4: name_thread 'RHINOWATER':RHINOWATER_190001: wait 0 ms00D6: if 0AB0: key_pressed 221 00D6: if0256: player $PLAYER_CHAR definedthen if Actor.DrivingVehicleType($PLAYER_ACTOR, #rhino)004D: jump_if_false @RHINOWATER_1900D6: if and00DF: actor $PLAYER_ACTOR driving84A9: not actor $PLAYER_ACTOR driving_heli84AB: not actor $PLAYER_ACTOR driving_plane84C8: not actor $PLAYER_ACTOR driving_flying_vehicle89AE: not actor $PLAYER_ACTOR driving_train004D: jump_if_false @RHINOWATER_1903C0: [email protected] = actor $PLAYER_ACTOR car004D: jump_if_false @RHINOWATER_1903E5: show_text_box 'Aktivadet'0A8C: write_memory 9867602 size 4 value 1 virtual_protect 00001: wait 1000 ms0002: jump @RHINOWATER_75end:RHINOWATER_750001: wait 0 ms00D6: if0AB0: key_pressed 221004D: jump_if_false @RHINOWATER_7503E5: show_text_box 'Deaktivadet'0A8C: write_memory 9867602 size 4 value 0 virtual_protect 00001: wait 1000 ms0002: jump @RHINOWATER_19 How i can make the script like in the Nightrider mod?please help ! Edited January 19, 2014 by MrGTAmodsgerman Link to comment Share on other sites More sharing options...
ZAZ Posted January 19, 2014 Share Posted January 19, 2014 basicly the script works but it's a little bit messed up because of missing or wrong placed els_jumpsalso use other keys instead the exotic ] (key 221 = ])this is what you need {$CLEO .cs}thread 'RNWATER':RHINOWATER_19wait 0if0256: player $PLAYER_CHAR definedjf @RHINOWATER_19if and0AB0: key_pressed 8// key = backspace00DD: actor $PLAYER_ACTOR driving_car_with_model #RHINOjf @RHINOWATER_19 03C0: [email protected] = actor $PLAYER_ACTOR car03E5: show_text_box 'fem_on'0A8C: write_memory 9867602 size 4 value 1 virtual_protect 00001: wait 3000 ms :RHINOWATER_75wait 0if or0AB0: key_pressed 8// key = backspace80DF: not actor $PLAYER_ACTOR drivingjf @RHINOWATER_7503E5: show_text_box 'fem_off'0A8C: write_memory 9867602 size 4 value 0 virtual_protect 0wait 1000jump @RHINOWATER_19 btw. you can't insert a text like 'Aktivadet' because it needs to insert a gxt string which is limited to 7 charackter CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
MrGTAmodsgerman Posted January 19, 2014 Author Share Posted January 19, 2014 basicly the script works but it's a little bit messed up because of missing or wrong placed els_jumps also use other keys instead the exotic ] (key 221 = ]) this is what you need {$CLEO .cs}thread 'RNWATER':RHINOWATER_19wait 0if0256: player $PLAYER_CHAR definedjf @RHINOWATER_19if and0AB0: key_pressed 8// key = backspace00DD: actor $PLAYER_ACTOR driving_car_with_model #RHINOjf @RHINOWATER_19 03C0: [email protected] = actor $PLAYER_ACTOR car03E5: show_text_box 'fem_on'0A8C: write_memory 9867602 size 4 value 1 virtual_protect 00001: wait 3000 ms :RHINOWATER_75wait 0if or0AB0: key_pressed 8// key = backspace80DF: not actor $PLAYER_ACTOR drivingjf @RHINOWATER_7503E5: show_text_box 'fem_off'0A8C: write_memory 9867602 size 4 value 0 virtual_protect 0wait 1000jump @RHINOWATER_19 btw. you can't insert a text like 'Aktivadet' because it needs to insert a gxt string which is limited to 7 charackter THANKS it works but how i can set the Rhino a little bit under water like the night rider script? like this video: this vehicle isnt on water this vehicle is in water like a boat Link to comment Share on other sites More sharing options...
ZAZ Posted January 20, 2014 Share Posted January 20, 2014 seems not possible with cheat adresstry this script: {$CLEO .cs}:AmphibienRhino03A4: name_thread 'AMPHIBI'wait 100000A1: put_actor $PLAYER_ACTOR at 273.0837 -1788.2213 4.3614 :AMPHIBI_10001: wait 0 msif0256: player $PLAYER_CHAR definedjf @AMPHIBI_1if00DD: actor $PLAYER_ACTOR driving_vehicle_type #RHINOjf @AMPHIBI_103C0: [email protected] = actor $PLAYER_ACTOR carif8119: NOT car [email protected] wreckedjf @AMPHIBI_23:AMPHIBI_50001: wait 0 msif0256: player $PLAYER_CHAR definedjf @AMPHIBI_1if 00DF: actor $PLAYER_ACTOR drivingjf @AMPHIBI_10407: create_coordinate [email protected] [email protected] [email protected] from_car [email protected] offset 0.0 0.0 0.0000F: [email protected] -= 2.0 // floating-point values092E: get_water_height_at [email protected] [email protected] flag 0 store_to [email protected]@ > -100.0jf @AMPHIBI_5if0025: [email protected] > [email protected] // floating-point valuesjf @AMPHIBI_50174: [email protected] = car [email protected] z_angleif00E1: key_pressed 0 16jf @AMPHIBI_70175: set_car [email protected] z_angle_to [email protected]: [email protected] = cosine [email protected] // sinus swapped with cosine02F7: [email protected] = sinus [email protected] // cosine swapped with sinus 0013: [email protected] *= 0.005 // floating-point values0013: [email protected] *= 0.005 // floating-point values0013: [email protected] *= -1.0 // floating-point values07D5: set_car [email protected] velocity_in_direction_XYZ [email protected] [email protected] 0.010 rotation_velocitiesXY 0.0 0.0 unk 0.0jump @AMPHIBI_11:AMPHIBI_7if00E1: key_pressed 0 14jf @AMPHIBI_90174: [email protected] = car [email protected] z_angle000B: [email protected] += 180.0 // floating-point values02F6: [email protected] = cosine [email protected] // sinus swapped with cosine02F7: [email protected] = sinus [email protected] // cosine swapped with sinus 0013: [email protected] *= 0.005 // floating-point values0013: [email protected] *= 0.005 // floating-point values0013: [email protected] *= -1.0 // floating-point values07D5: set_car [email protected] velocity_in_direction_XYZ [email protected] [email protected] 0.010 rotation_velocitiesXY 0.0 0.0 unk 0.0jump @AMPHIBI_11:AMPHIBI_902F6: [email protected] = cosine [email protected] // sinus swapped with cosine02F7: [email protected] = sinus [email protected] // cosine swapped with sinus 0013: [email protected] *= 0.001 // floating-point values0013: [email protected] *= 0.001 // floating-point values0013: [email protected] *= -1.0 // floating-point values07D5: set_car [email protected] velocity_in_direction_XYZ [email protected] [email protected] 0.007 rotation_velocitiesXY 0.0 0.0 unk 0.0:AMPHIBI_11if00E1: key_pressed 0 0jf @AMPHIBI_170494: get_joystick_data 0 [email protected] [email protected] [email protected] [email protected]: [email protected] == 0 // integer valuesjf @AMPHIBI_13jump @AMPHIBI_17:AMPHIBI_13if 0019: [email protected] > 0 // integer valuesjf @AMPHIBI_15000F: [email protected] -= 3.5 0175: set_car [email protected] z_angle_to [email protected] @AMPHIBI_17:AMPHIBI_15if 001B: 0 > [email protected] // integer valuesjf @AMPHIBI_17000B: [email protected] += 3.50175: set_car [email protected] z_angle_to [email protected]:AMPHIBI_17if00E1: key_pressed 0 15jf @AMPHIBI_50519: lock_vehicle [email protected] in_current_position 10633: AS_actor $PLAYER_ACTOR exit_car:AMPHIBI_200001: wait 0 msif0256: player $PLAYER_CHAR definedjf @AMPHIBI_23if80DB: not actor $PLAYER_ACTOR in_car [email protected] @AMPHIBI_20:AMPHIBI_23wait 500jump @AMPHIBI_1 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
MrGTAmodsgerman Posted January 20, 2014 Author Share Posted January 20, 2014 seems not possible with cheat adress try this script: {$CLEO .cs}:AmphibienRhino03A4: name_thread 'AMPHIBI'wait 100000A1: put_actor $PLAYER_ACTOR at 273.0837 -1788.2213 4.3614 :AMPHIBI_10001: wait 0 msif0256: player $PLAYER_CHAR definedjf @AMPHIBI_1if00DD: actor $PLAYER_ACTOR driving_vehicle_type #RHINOjf @AMPHIBI_103C0: [email protected] = actor $PLAYER_ACTOR carif8119: NOT car [email protected] wreckedjf @AMPHIBI_23:AMPHIBI_50001: wait 0 msif0256: player $PLAYER_CHAR definedjf @AMPHIBI_1if 00DF: actor $PLAYER_ACTOR drivingjf @AMPHIBI_10407: create_coordinate [email protected] [email protected] [email protected] from_car [email protected] offset 0.0 0.0 0.0000F: [email protected] -= 2.0 // floating-point values092E: get_water_height_at [email protected] [email protected] flag 0 store_to [email protected]@ > -100.0jf @AMPHIBI_5if0025: [email protected] > [email protected] // floating-point valuesjf @AMPHIBI_50174: [email protected] = car [email protected] z_angleif00E1: key_pressed 0 16jf @AMPHIBI_70175: set_car [email protected] z_angle_to [email protected]: [email protected] = cosine [email protected] // sinus swapped with cosine02F7: [email protected] = sinus [email protected] // cosine swapped with sinus 0013: [email protected] *= 0.005 // floating-point values0013: [email protected] *= 0.005 // floating-point values0013: [email protected] *= -1.0 // floating-point values07D5: set_car [email protected] velocity_in_direction_XYZ [email protected] [email protected] 0.010 rotation_velocitiesXY 0.0 0.0 unk 0.0jump @AMPHIBI_11:AMPHIBI_7if00E1: key_pressed 0 14jf @AMPHIBI_90174: [email protected] = car [email protected] z_angle000B: [email protected] += 180.0 // floating-point values02F6: [email protected] = cosine [email protected] // sinus swapped with cosine02F7: [email protected] = sinus [email protected] // cosine swapped with sinus 0013: [email protected] *= 0.005 // floating-point values0013: [email protected] *= 0.005 // floating-point values0013: [email protected] *= -1.0 // floating-point values07D5: set_car [email protected] velocity_in_direction_XYZ [email protected] [email protected] 0.010 rotation_velocitiesXY 0.0 0.0 unk 0.0jump @AMPHIBI_11:AMPHIBI_902F6: [email protected] = cosine [email protected] // sinus swapped with cosine02F7: [email protected] = sinus [email protected] // cosine swapped with sinus 0013: [email protected] *= 0.001 // floating-point values0013: [email protected] *= 0.001 // floating-point values0013: [email protected] *= -1.0 // floating-point values07D5: set_car [email protected] velocity_in_direction_XYZ [email protected] [email protected] 0.007 rotation_velocitiesXY 0.0 0.0 unk 0.0:AMPHIBI_11if00E1: key_pressed 0 0jf @AMPHIBI_170494: get_joystick_data 0 [email protected] [email protected] [email protected] [email protected]: [email protected] == 0 // integer valuesjf @AMPHIBI_13jump @AMPHIBI_17:AMPHIBI_13if 0019: [email protected] > 0 // integer valuesjf @AMPHIBI_15000F: [email protected] -= 3.5 0175: set_car [email protected] z_angle_to [email protected] @AMPHIBI_17:AMPHIBI_15if 001B: 0 > [email protected] // integer valuesjf @AMPHIBI_17000B: [email protected] += 3.50175: set_car [email protected] z_angle_to [email protected]:AMPHIBI_17if00E1: key_pressed 0 15jf @AMPHIBI_50519: lock_vehicle [email protected] in_current_position 10633: AS_actor $PLAYER_ACTOR exit_car:AMPHIBI_200001: wait 0 msif0256: player $PLAYER_CHAR definedjf @AMPHIBI_23if80DB: not actor $PLAYER_ACTOR in_car [email protected] @AMPHIBI_20:AMPHIBI_23wait 500jump @AMPHIBI_1 Big script but it is a very crazy,the rhino jump in the water and drive on the water not in there and it controls very difficult. I have a idea, a boat attach to the rhino and i automaticly drive the boat but sit in the rihno,and the boat is invisible,but is this possible?? The collision of the boat isnt working,the boat only works as a swimming motor. Hmm but i didnt know where i can find these opcodes But thanks for the help Link to comment Share on other sites More sharing options...
GtaHellmodded Posted January 29, 2014 Share Posted January 29, 2014 your idea working man ! but player animation drive boat not like drive bike or car here i some screenshot of my cleo mod i write using you idea: Link to comment Share on other sites More sharing options...
MrGTAmodsgerman Posted March 4, 2014 Author Share Posted March 4, 2014 your idea working man ! but player animation drive boat not like drive bike or car here i some screenshot of my cleo mod i write using you idea: Thanks but can you help me with it? I cant download your mod and i didnt wanna brake the copyrights of your mod. Link to comment Share on other sites More sharing options...
GtaHellmodded Posted March 5, 2014 Share Posted March 5, 2014 this mod ?? or Ghost Rider mod ?? Link to comment Share on other sites More sharing options...
MrGTAmodsgerman Posted March 5, 2014 Author Share Posted March 5, 2014 this mod ?? or Ghost Rider mod ?? This mod where i can see the way to make my mod with a swimming rhino Link to comment Share on other sites More sharing options...
GtaHellmodded Posted March 6, 2014 Share Posted March 6, 2014 // 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 'RNWATER' :RNWATER_11Model.Load(#DINGHY)038B: load_requested_models 04ED: load_animation "BIKEH" wait 0 if Player.Defined($PLAYER_CHAR)jf @RNWATER_11 if and Model.Available(#DINGHY)0AB0: key_pressed 8 Actor.DrivingVehicleType($PLAYER_ACTOR, #RHINO)jf @RNWATER_11 03C0: [email protected] = actor $PLAYER_ACTOR car 03E5: show_text_box 'FEM_ON' // ON04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 [email protected] = Car.Create(#DINGHY, [email protected], [email protected], [email protected])072A: put_actor $PLAYER_ACTOR into_car [email protected] driverseat 0683: attach_car [email protected] to_car [email protected] with_offset 0.0 0.0 0.0 rotation 0.0 0.0 360.0 Model.Destroy(#DINGHY)wait 3000 :RNWATER_196wait 0 if or0AB0: key_pressed 8 not Actor.Driving($PLAYER_ACTOR)jf @RNWATER_196 03E5: show_text_box 'FEM_OFF' // OFF05CD: AS_actor $PLAYER_ACTOR exit_car [email protected] 072A: put_actor $PLAYER_ACTOR into_car [email protected] driverseat wait 100 Car.Destroy([email protected])wait 1000 jump @RNWATER_11 need to make boat that attach to rniho invisible ! 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