Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (92,880 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

Sign in to follow this  
ReyEspada45

Remove pedestrians, cars and missions

Recommended Posts

ReyEspada45

I'd like to remove all the pedestrians, cars (excepting parked cars) and missions. I've used the opcodes 01EB and 03DE:

 

01EB: set_traffic_density_multiplier_to 0.0
03DE: set_pedestrians_density_multiplier_to 0.0
however, I don't know why, there's still some pedestrians and cars, these opcodes only reduce the level of traffic and pedestrians, and it doesn't remove them (or at least it doesn't work for me).

I want a "cleaned" san andreas, with no pedestrians walking or driving, no missions, no traffic, nothing, I just need the map and parked cars to make my mod. I've also tried to use the opcode 0395:
0395: clear_area 1 at 246.6274 63.7407 1003.641 radius 999.9
but, the problem is that I need to remove all pedestrians and create my own pedestrians around the player, and they'll attack me because that's a part of the mod, so clearing the area will remove my pedestrians too, and worse, default pedestrians and cars will reappear (even if I clear the area many times, they appear again and again), but mine don't reappear. If I need to modify main.scm, or another file, tell me what I have to change.
so, in summary, I need to delete all pedestrians, cars, missions, etc, get a cleaned san andreas where I can let my imagination and my sanny builder fly away, create my own pedestrians that will attack me, and continue with my mod.
Here's a part of the mod:
thread 'ATTACK'
:ATTACK_19
wait 0
if
Player.Defined($PLAYER_CHAR)
else_jump @ATTACK_19
if
$ONMISSION == 0
else_jump @ATTACK_19
01EB: set_traffic_density_multiplier_to 0.0
03DE: set_pedestrians_density_multiplier_to 0.0
:ATTACK_20
08E5: get_actor_in_sphere [email protected] [email protected] [email protected] radius 7.0 handle_as [email protected]
05E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR
:ATTACK_21
wait 0
if
Actor.Dead([email protected])
jf @ATTACK_21
Actor.DestroyWithFade([email protected])
Actor.RemoveReferences([email protected])
jump @ATTACK_20

 

Share this post


Link to post
Share on other sites
OrionSR
022B: create_forbidden_for_peds_cube_cornerA -3000.0 -3000.0 -100.0 cornerB 3000.0 3000.0 100.0  01E8: create_forbidden_for_cars_cube_cornerA -3000.0 -3000.0 -100.0 cornerB 3000.0 3000.0 100.00395: clear_area 1 at 0.0 0.0 0.0 radius 10000.0

There are other ways to accomplish your goals but this one becomes part of the save file, except for the clear area part but you can manage that if necessary. I'm actually not sure what would happen if the same forbidden area is created more than once, but in general, special care must be used for anything that gets saved, like car generators, radar blips, and pickups. Don't let your scripts create new ones every time it loads.

Edited by OrionSR

Share this post


Link to post
Share on other sites
ReyEspada45

that worked, but if I delete all the pedestrians and the cars, the opcodes related to pedestrians doesn't work, like:

 

02DD: [email protected] = get_random_ped_in_zone 'JEF' with_pedtype_civilian 1 gang 0 criminal/prostitute 0

0A3E: unknown_get_actor_in_sphere [email protected] [email protected] [email protected] radius 1.5 13.0 1.5 handle_as [email protected]

0376: [email protected] = create_random_actor_at -1576.88 55.26 8.57

 

I read in a post that if there's no peds, those opcodes won't work (and that's hilarious because I hadn't read that post before start codding the mod, and when I read it, all the opcodes that I used was in the list of peds opcodes that doesn't work if there's no pedestrians around).

 

So I decided to modify the game by modifying the .dat files of peds. In the ped.dat file, I put that every group of peds hate "PLAYER1", or "PLAYER", I didn't remember the name of the ped type that correspond to the CJ or the main player, but I tried with "PLAYER1" and "PLAYER" and nothing, everyone was walking around normally. Now my question is: how can I control the behavior of peds by modifying .dat files?


 

 

I tested the mod with pedestrians, and it worked, some peds appeared and attacked me, but there was still normal pedestrians walking around, and that's not what I want.

 

ah, and I want to create random peds around me or by zones, not in especific coordinates

Edited by ReyEspada45

Share this post


Link to post
Share on other sites
OrionSR

I haven't tried modifying the preferences in ped.dat. I suppose it might work for some peds on a new save, but I'm not sure. Many of the peds have their preferences altered by the intro missions, sometimes the gangs get altered as the story progresses, and the Pedestrians Attack Each Other cheat can mess up a few other settings. This information is retained in the save and can be altered by the Savegame Editor 3.x. Below one of the opcodes used to set the ped preferences for an example.

0746: set_acquaintance 1 of_actors_pedtype 8 to_actors_pedtype 0 // see ped.dat

GTA SA Savegame Editor v3.0 by Paul Breeuwsma: http://www.paulinternet.nl/sa

 

Share this post


Link to post
Share on other sites
ReyEspada45

Nothing, neither modifying ped.dat file nor using 0746 opcode, I don't know if I'm doing something wrong or there's a problem with my san andreas, in ped.dat I've tried that all people hate PLAYER1, PLAYER, GANG2 and CIVMALE (because I don't know what pedtype correspond to CJ, so I tested it with those types) and nobody attacks me, and it doesn't work using the opcode (for example set_acquaintance 5 of_actors_pedtype 7 to_actors_pedtype 0), and I started a new save.

 

As I said, I don't know if there's a problem with my san andreas, because I modify the behavior of everyone, but everything keeps normal, only Ballas hate me, but the rest of the people don't. The only way that I've tried to get the effect that I want is typing the code that makes everyone attacks you, but I want to make that code a default configuration of the game, that people attack me as it was totally normal in the game, modifying it or by a cleo script.

 

Well, maybe I'll star with another proyect if there's no solution, thank you very much

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.