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

set_car_density_to OPCODE


Zach
 Share

Recommended Posts

I figured that now that I'm done with the game, I'd turn my attention to modding the engine a bit just for kicks.

 

I stumbled across the thread about creating a super car, and thought, "Great! That's exactly what I had in mind. What a lucky find!" (Thanks, Arvin!)

 

The other aspect I wanted to change was the vehicle's weight. My absolute favorite past-time in GTA:VC was to load up Lith Joe's trainer and enable the "solid granet car" cheat and then drive around having everyone bounce off me. (Don't ask me why. It just makes me laugh everytime I do it.)

 

Anyway, thinking logically, it doesn't seem likely that Lith Joe would have implemented customized handling for each and every car in the game, so there probably must be just some common engine parameter he was tweaking to accomplish this feat of making it seem like your car was super heavy.

 

Too late, but long story short, set_car_density_to seems to be used a lot in the game's script, either setting it to 0.0 or 1.0 (and sometimes even to 0.5). This always seems to be used in conjunction with set_pedestrians_density_multiplier_to, i.e., they are both always set as a pair.

 

Does anyone know specifically what these two opcodes do? I mean what effect they have on gameplay?

 

[rant]One day, search will be reenabled, and I won't have to waste people's time with noob questions. tounge.gif[/rant]

Link to comment
Share on other sites

dontgetit.gif

 

Search IS re-enabled.

 

Anyway, those opcodes control how many cars and peds are spawned at random. 1.0 is normal, with around five cars in traffic, and maybe ten or so peds. 0.0 disables all random spawning. Anything inbetween is a fraction of the normal amount.

 

And, as a note, anything about 1.0 does nothing. They'll just spawn as if it was set to 1.0.

Link to comment
Share on other sites

 

dontgetit.gif

 

Search IS re-enabled.

Awww, now you are just trying to make me look bad. tounge.gifcolgate.gif

 

On my honor, I swear to you that I tried the search function immediately before I posted the above (just to make sure), and I still got that now familar "Menu has been disabled" page!!

 

Trying it now, though, it does indeed appear to be working again. rah.gif

 

 

Anyway, back on topic....

 

Okay, that makes sense, particularly since both the car and ped codes are always used together. Darn. sad.gif I guess I'll just have to figure out some other way of making my car (and my car alone) super heavy.

 

Thanks for the quick reply!

 

And thanks for reenabling the search function!! inlove.gif

 

 

EDIT: Hmmm... Searching through the OpCode Database, there seems to be an untested opcode named "make_car_heavy". blink.gif Heh.. how obvious. blush.gif

Edited by Zach
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.