D.Kyle Posted April 3, 2018 Share Posted April 3, 2018 Hello everyone, i have a question: Where i can edit a file in date folder that give result is spawn an empty car on street, a car without driver or anyone in that car,crashed,flpped or burned car too. I wanna make my game full of zombie apocalyse sphere like this : ‹ Link to comment Share on other sites More sharing options...
Sanmodder Posted April 8, 2018 Share Posted April 8, 2018 (edited) heck this {$CLEO .CS}0000: nopwhile true repeat wait 0 until if player.Defined(0) Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected]) if 0AE1: [email protected] = random_actor_near_point [email protected] [email protected] [email protected] in_radius 2650.0 find_next 1 pass_deads 0 //IF and SET then if not [email protected] == -1 then if not actor.Dead([email protected]) then if actor.Driving([email protected]) then 0337: set_actor [email protected] visibility 0 end end end endend Edited April 8, 2018 by Sanmodder Link to comment Share on other sites More sharing options...
D.Kyle Posted April 9, 2018 Author Share Posted April 9, 2018 Thanks you very much, though it doesnt working ^^. Look like i must do this via Cleo script. Link to comment Share on other sites More sharing options...
Sanmodder Posted April 9, 2018 Share Posted April 9, 2018 Thanks you very much, though it doesnt working ^^. Look like i must do this via Cleo script. how it does not work this script disables the visibility of actors in cars Link to comment Share on other sites More sharing options...
D.Kyle Posted April 9, 2018 Author Share Posted April 9, 2018 (edited) Well,because i installed the Left 4 theft mod, that mod prevent car from spawn on street, so no car spawn around and it not working ^^. I already wrote my script that allow spawn randomly 5 car models with random position on street (marker just only for show it position around ), if anyone want this then here: // This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013{$CLEO .CS}//-------------MAIN---------------0000: NOP :CARSPAWN_45Model.Load(#COPCARLA)Model.Load(#AMBULAN)Model.Load(#CABBIE) Model.Load(#ENFORCER)Model.Load(#NEWSVAN)Model.Load(#TAXI):CARSPAWN_45_15wait 0Actor.StorePos($PLAYER_ACTOR, [email protected],[email protected],[email protected])jump @CARSPAWN_45_72:CARSPAWN_45_72wait 0 0208: [email protected] = random_float_in_ranges -120.0 120.0 if or [email protected] >= 60.0 -60.0 >= [email protected] @CARSPAWN_45_72:CARSPAWN_45_122wait 0 0208: [email protected] = random_float_in_ranges -120.0 120.0 if or [email protected] >= 60.0 -60.0 >= [email protected] jf @CARSPAWN_45_122 005B: [email protected] += [email protected] // (float) 005B: [email protected] += [email protected] // (float) 02C1: store_to $WXX1 $WYY1 $WZZ1 car_path_coords_closest_to [email protected] [email protected] [email protected] 0208: [email protected] = random_float_in_ranges 0.0 359.90209: [email protected] = random_int_in_ranges 0 5 :CARSPAWN_45_0wait 0if [email protected] == 0 jf @CARSPAWN_45_1$car = car.Create(#COPCARLA,$WXX1,$WYY1,$WZZ1)000A: [email protected] += 1000A: [email protected] += 1car.Angle($car) = [email protected]($car)0186: [email protected] = create_marker_above_car $car075C: marker [email protected] enabledjump @CARSPAWN_45_15:CARSPAWN_45_1wait 0if [email protected] == 1 jf @CARSPAWN_45_2 $car = car.Create(#AMBULAN,$WXX1,$WYY1,$WZZ1)000A: [email protected] += 1car.Angle($car) = [email protected]($car)0186: [email protected] = create_marker_above_car $car075C: marker [email protected] enabledjump @CARSPAWN_45_15:CARSPAWN_45_2wait 0if [email protected] == 2 jf @CARSPAWN_45_3 $car = car.Create(#ENFORCER,$WXX1,$WYY1,$WZZ1)000A: [email protected] += 1car.Angle($car) = [email protected]($car)0186: [email protected] = create_marker_above_car $car075C: marker [email protected] enabledjump @CARSPAWN_45_15:CARSPAWN_45_3wait 0if [email protected] == 3jf @CARSPAWN_45_4 $car = car.Create(#NEWSVAN,$WXX1,$WYY1,$WZZ1)000A: [email protected] += 1car.Angle($car) = [email protected]($car)0186: [email protected] = create_marker_above_car $car075C: marker [email protected] enabledjump @CARSPAWN_45_15:CARSPAWN_45_4wait 0if [email protected] == 4 jf @CARSPAWN_45_5$car = car.Create(#CABBIE,$WXX1,$WYY1,$WZZ1)000A: [email protected] += 1car.Angle($car) = [email protected]($car)0186: [email protected] = create_marker_above_car $car075C: marker [email protected] enabledjump @CARSPAWN_45_15:CARSPAWN_45_5wait 0if [email protected] == 5 jf @CARSPAWN_45_0 $car = car.Create(#TAXI,$WXX1,$WYY1,$WZZ1)000A: [email protected] += 1car.Angle($car) = [email protected]($car)0186: [email protected] = create_marker_above_car $car075C: marker [email protected] enabledjump @CARSPAWN_45_15:CARSPAWN_45_537wait 0 if or Actor.Dead($PLAYER_ACTOR)80EC: not actor $PLAYER_ACTOR sphere 0 near_point $WXX1 $WYY1 radius 300.0 [email protected] >= 200jf @CARSPAWN_45_15wait 6000 00A6: destroy_car $car000E: [email protected] -= 1Model.Destroy(#COPCARLA)Model.Destroy(#AMBULAN)Model.Destroy(#CABBIE) Model.Destroy(#ENFORCER)Model.Destroy(#NEWSVAN)Model.Destroy(#TAXI)jump @CARSPAWN_45_15 Btw how to make the car spawn in my script in burned state, flipped state, and damaged state ? Edited April 9, 2018 by D.Kyle Link to comment Share on other sites More sharing options...
Sanmodder Posted April 9, 2018 Share Posted April 9, 2018 (edited) {$CLEO}0A95: enable_thread_savingconst _WXX1 = [email protected] _WYY1 = [email protected] _WZZ1 = [email protected]end// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013{$CLEO .CS}//-------------MAIN---------------0000: NOP:CARSPAWN_45Model.Load(#COPCARLA)Model.Load(#AMBULAN)Model.Load(#CABBIE) Model.Load(#ENFORCER)Model.Load(#NEWSVAN)Model.Load(#TAXI)038B: load_requested_models:CARSPAWN_45_15wait 0Actor.StorePos($PLAYER_ACTOR, [email protected],[email protected],[email protected])jump @CARSPAWN_45_72:CARSPAWN_45_72wait 00208: [email protected] = random_float_in_ranges -120.0 120.0if or [email protected] >= 60.0 -60.0 >= [email protected]jf @CARSPAWN_45_72:CARSPAWN_45_122wait 00208: [email protected] = random_float_in_ranges -120.0 120.0if or [email protected] >= 60.0 -60.0 >= [email protected]jf @CARSPAWN_45_122005B: [email protected] += [email protected] // (float)005B: [email protected] += [email protected] // (float)02C1: store_to _WXX1 _WYY1 _WZZ1 car_path_coords_closest_to [email protected] [email protected] [email protected]0208: [email protected] = random_float_in_ranges 0.0 359.90209: [email protected] = random_int_in_ranges 0 5:CARSPAWN_45_0wait 0if [email protected] == 0 jf @CARSPAWN_45_1[email protected] = car.Create(#COPCARLA,_WXX1,_WYY1,_WZZ1)000A: [email protected] += 1000A: [email protected] += 1car.Angle([email protected]) = [email protected]Car.RemoveReferences([email protected])0186: [email protected] = create_marker_above_car [email protected]075C: marker [email protected] enabledjump @CARSPAWN_45_15:CARSPAWN_45_1wait 0if [email protected] == 1 jf @CARSPAWN_45_2 [email protected] = car.Create(#AMBULAN,_WXX1,_WYY1,_WZZ1)000A: [email protected] += 1car.Angle([email protected]) = [email protected]Car.RemoveReferences([email protected])0186: [email protected] = create_marker_above_car [email protected]075C: marker [email protected] enabledjump @CARSPAWN_45_15:CARSPAWN_45_2wait 0if [email protected] == 2 jf @CARSPAWN_45_3[email protected] = car.Create(#ENFORCER,_WXX1,_WYY1,_WZZ1)000A: [email protected] += 1car.Angle([email protected]) = [email protected]Car.RemoveReferences([email protected])0186: [email protected] = create_marker_above_car [email protected]075C: marker [email protected] enabledjump @CARSPAWN_45_15:CARSPAWN_45_3wait 0if [email protected] == 3jf @CARSPAWN_45_4 [email protected] = car.Create(#NEWSVAN,_WXX1,_WYY1,_WZZ1)000A: [email protected] += 1car.Angle([email protected]) = [email protected]Car.RemoveReferences([email protected])0186: [email protected] = create_marker_above_car [email protected]075C: marker [email protected] enabledjump @CARSPAWN_45_15:CARSPAWN_45_4wait 0if [email protected] == 4 jf @CARSPAWN_45_5[email protected] = car.Create(#CABBIE,_WXX1,_WYY1,_WZZ1)000A: [email protected] += 1car.Angle([email protected]) = [email protected]Car.RemoveReferences([email protected])0186: [email protected] = create_marker_above_car [email protected]075C: marker [email protected] enabledjump @CARSPAWN_45_15:CARSPAWN_45_5wait 0if [email protected] == 5 jf @CARSPAWN_45_0[email protected] = car.Create(#TAXI,_WXX1,_WYY1,_WZZ1)000A: [email protected] += 1car.Angle([email protected]) = [email protected]Car.RemoveReferences([email protected])0186: [email protected] = create_marker_above_car [email protected]075C: marker [email protected] enabledjump @CARSPAWN_45_15:CARSPAWN_45_537wait 0if not Car.Wrecked([email protected]) then Car.SetImmunities([email protected], 1, 1, 1, 1, 1) 053F: set_car [email protected] tires_vulnerability 0 01EC: make_car [email protected] very_heavy 1 end if not Car.Wrecked([email protected]) then if 01F4: car [email protected] flipped then 03E5: show_text_box 'CFL' 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 1.0 04D3: get_nearest_car_path_coords_from [email protected] [email protected] [email protected] type 2 store_to [email protected] [email protected] [email protected] Car.PutAt([email protected], [email protected], [email protected], [email protected]) end end if 056E: car [email protected] defined then if 02BF: car [email protected] sunk then 0918: set_car [email protected] engine_operation 0 03E5: show_text_box 'MPZ' 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.0 0.0 1.0 04D3: get_nearest_car_path_coords_from [email protected] [email protected] [email protected] type 2 store_to [email protected] [email protected] [email protected] Car.PutAt([email protected], [email protected], [email protected], [email protected]) 0918: set_car [email protected] engine_operation 1 end end if or Actor.Dead($PLAYER_ACTOR)80EC: not actor $PLAYER_ACTOR sphere 0 near_point _WXX1 _WYY1 radius 300.0 300.0[email protected] >= 200jf @CARSPAWN_45_15wait 600000A6: destroy_car [email protected]000E: [email protected] -= 1Model.Destroy(#COPCARLA)Model.Destroy(#AMBULAN)Model.Destroy(#CABBIE) Model.Destroy(#ENFORCER)Model.Destroy(#NEWSVAN)Model.Destroy(#TAXI)jump @CARSPAWN_45_15 Edited April 9, 2018 by Sanmodder Link to comment Share on other sites More sharing options...
D.Kyle Posted April 9, 2018 Author Share Posted April 9, 2018 isnt this Car.SetImmunities(_car, 1, 1, 1, 1, 1) make car immunities to all physics damaged, fire-proof ?? i mean i need the car spawn in script in the flipped state, on-fire state. Link to comment Share on other sites More sharing options...
Sanmodder Posted April 9, 2018 Share Posted April 9, 2018 if you want to turn the car overcheck these opcodes07DA: set_car 46 @ rotation_velocity_XYZ 0.0 -0.35 0.2 through_center_of_body07DB: set_car 189 @ rotation_velocity_XYZ 3.5 7.3999 8.1003 through_center_of_mass07D5: set_car 0 @ velocity_in_direction_XYZ 9 @ 10 @ 0.0 rotation_velocitiesXY 0.0 0.0 unk 0.0 Link to comment Share on other sites More sharing options...
D.Kyle Posted April 9, 2018 Author Share Posted April 9, 2018 if you want to turn the car over check these opcodes 07DA: set_car 46 @ rotation_velocity_XYZ 0.0 -0.35 0.2 through_center_of_body 07DB: set_car 189 @ rotation_velocity_XYZ 3.5 7.3999 8.1003 through_center_of_mass 07D5: set_car 0 @ velocity_in_direction_XYZ 9 @ 10 @ 0.0 rotation_velocitiesXY 0.0 0.0 unk 0.0 Thanks for your help ^^. I guess it satisfyer me now 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