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

[SA]Spawn empty car on street ( zombie apocalyse style)


D.Kyle
 Share

Recommended Posts

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 : 5c9e9048ad892d52a199b0473e78be307a69cfb0

Link to comment
Share on other sites

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 by Sanmodder
Link to comment
Share on other sites

Thanks you very much, though it doesnt working ^^. Look like i must do this via Cleo script.

Link to comment
Share on other sites

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

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 by D.Kyle
Link to comment
Share on other sites

 


{$CLEO}

0A95: enable_thread_saving

const
_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_45
Model.Load(#COPCARLA)
Model.Load(#AMBULAN)
Model.Load(#CABBIE)
Model.Load(#ENFORCER)
Model.Load(#NEWSVAN)
Model.Load(#TAXI)
038B: load_requested_models


:CARSPAWN_45_15
wait 0
Actor.StorePos($PLAYER_ACTOR, [email protected],[email protected],[email protected])
jump @CARSPAWN_45_72

:CARSPAWN_45_72
wait 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_72

:CARSPAWN_45_122
wait 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.9
0209: [email protected] = random_int_in_ranges 0 5


:CARSPAWN_45_0
wait 0
if
[email protected] == 0
jf @CARSPAWN_45_1
[email protected] = car.Create(#COPCARLA,_WXX1,_WYY1,_WZZ1)
000A: [email protected] += 1
000A: [email protected] += 1
car.Angle([email protected]) = [email protected]
Car.RemoveReferences([email protected])
0186: [email protected] = create_marker_above_car [email protected]
075C: marker [email protected] enabled
jump @CARSPAWN_45_15

:CARSPAWN_45_1
wait 0
if
[email protected] == 1
jf @CARSPAWN_45_2
[email protected] = car.Create(#AMBULAN,_WXX1,_WYY1,_WZZ1)
000A: [email protected] += 1
car.Angle([email protected]) = [email protected]
Car.RemoveReferences([email protected])
0186: [email protected] = create_marker_above_car [email protected]
075C: marker [email protected] enabled
jump @CARSPAWN_45_15

:CARSPAWN_45_2
wait 0
if
[email protected] == 2
jf @CARSPAWN_45_3
[email protected] = car.Create(#ENFORCER,_WXX1,_WYY1,_WZZ1)
000A: [email protected] += 1
car.Angle([email protected]) = [email protected]
Car.RemoveReferences([email protected])
0186: [email protected] = create_marker_above_car [email protected]
075C: marker [email protected] enabled
jump @CARSPAWN_45_15


:CARSPAWN_45_3
wait 0
if
[email protected] == 3
jf @CARSPAWN_45_4
[email protected] = car.Create(#NEWSVAN,_WXX1,_WYY1,_WZZ1)
000A: [email protected] += 1
car.Angle([email protected]) = [email protected]
Car.RemoveReferences([email protected])
0186: [email protected] = create_marker_above_car [email protected]
075C: marker [email protected] enabled
jump @CARSPAWN_45_15

:CARSPAWN_45_4
wait 0
if
[email protected] == 4
jf @CARSPAWN_45_5

[email protected] = car.Create(#CABBIE,_WXX1,_WYY1,_WZZ1)
000A: [email protected] += 1
car.Angle([email protected]) = [email protected]
Car.RemoveReferences([email protected])
0186: [email protected] = create_marker_above_car [email protected]
075C: marker [email protected] enabled
jump @CARSPAWN_45_15

:CARSPAWN_45_5
wait 0
if
[email protected] == 5
jf @CARSPAWN_45_0
[email protected] = car.Create(#TAXI,_WXX1,_WYY1,_WZZ1)
000A: [email protected] += 1
car.Angle([email protected]) = [email protected]
Car.RemoveReferences([email protected])
0186: [email protected] = create_marker_above_car [email protected]
075C: marker [email protected] enabled
jump @CARSPAWN_45_15


:CARSPAWN_45_537
wait 0
if
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] >= 200
jf @CARSPAWN_45_15
wait 6000
00A6: destroy_car [email protected]
000E: [email protected] -= 1
Model.Destroy(#COPCARLA)
Model.Destroy(#AMBULAN)
Model.Destroy(#CABBIE)
Model.Destroy(#ENFORCER)
Model.Destroy(#NEWSVAN)
Model.Destroy(#TAXI)
jump @CARSPAWN_45_15

 

Edited by Sanmodder
Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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

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.