Forum: GTA IV Misc. / Other


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: Increase Traffic and Pedestrians [REQ]
  

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1 Increase Traffic and Pedestrians [REQ] 
    MrIdontKnow is offline Member
    Join Date
    Aug 2012
    Posts
    72
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    11
    Likes Received
    1
    Could anybody increase the number of cars on road and number of pedestrians please? Mainly pedestrians, seems like a ghost town sometimes.

    Thanks.
    Reply With Quote  

  2. #2  
    ribonucleic's Avatar
    ribonucleic is offline Moderator & Developer
    Join Date
    Mar 2012
    Posts
    631
    Downloads
    4
    Uploads
    0
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    128
    Likes Received
    280
    easiest mod ever, if i remember correctly these:
    Code:
    SET_CAR_DENSITY_MULTIPLIER
    SET_PED_DENSITY_MULTIPLIER
    take one float variable each, so to double the ped density just do:
    Code:
    SET_PED_DENSITY_MULTIPLIER(2.0);
    or for one and a half times car density:
    Code:
    SET_CAR_DENSITY_MULTIPLIER(1.5);
    can another dev confirm this?
    Reply With Quote  

  3. #3  
    JDMAlex's Avatar
    JDMAlex is offline & developer
    Join Date
    Nov 2010
    Posts
    742
    Downloads
    5
    Uploads
    1
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    204
    Likes Received
    466
    have not tested but this is from Skorpro @ GTAForums.com -> Miscellaneous SCO Scripts

    shows how density multi gets manipulated


    code snip:
    Code:
    void SkorproTrafficControl(void)
    {
    if (CHANGETRAFFIC == 1)
    {
     GET_CHAR_COORDINATES(GetPlayerPed(), &TCX, &TCY, &TCZ);
     CLEAR_AREA_OF_CARS(TCX, TCY, TCZ, 400.0);
     CLEAR_AREA_OF_CHARS(TCX, TCY, TCZ, 400.0);
     CLEAR_AREA_OF_COPS(TCX, TCY, TCZ, 400.0);
     CHANGETRAFFIC = 2;
     PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING","No Traffic",3000,1);
     SET_CAR_DENSITY_MULTIPLIER(0.0);
     SET_PED_DENSITY_MULTIPLIER(0.0);
     SWITCH_GARBAGE_TRUCKS(0);
     SET_RANDOM_CAR_DENSITY_MULTIPLIER(0.0);
     SET_PARKED_CAR_DENSITY_MULTIPLIER(2.25);
     ALLOW_EMERGENCY_SERVICES(0);
    }
    else if (CHANGETRAFFIC == 2)
    {
     CHANGETRAFFIC = 3;
     PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING","Low Traffic",3000,1);
     SET_CAR_DENSITY_MULTIPLIER(0.25);
     SET_PED_DENSITY_MULTIPLIER(0.50);
     SWITCH_GARBAGE_TRUCKS(1);
     SET_RANDOM_CAR_DENSITY_MULTIPLIER(0.25);
     SET_PARKED_CAR_DENSITY_MULTIPLIER(2.25);
     ALLOW_EMERGENCY_SERVICES(1);
    }
    else if (CHANGETRAFFIC == 3)
    {
     CHANGETRAFFIC = 4;
     PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING","Standard",3000,1);
     SET_CAR_DENSITY_MULTIPLIER(1.25);
     SET_PED_DENSITY_MULTIPLIER(1.50);
     SWITCH_GARBAGE_TRUCKS(1);
     SET_RANDOM_CAR_DENSITY_MULTIPLIER(1.25);
     SET_PARKED_CAR_DENSITY_MULTIPLIER(2.25);
     ALLOW_EMERGENCY_SERVICES(1);
    }
    else if (CHANGETRAFFIC == 4)
    {
     CHANGETRAFFIC = 5;
     PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING","High Traffic",3000,1);
     SET_CAR_DENSITY_MULTIPLIER(3.25);
     SET_PED_DENSITY_MULTIPLIER(3.50);
     SWITCH_GARBAGE_TRUCKS(1);
     SET_RANDOM_CAR_DENSITY_MULTIPLIER(3.25);
     SET_PARKED_CAR_DENSITY_MULTIPLIER(2.25);
     ALLOW_EMERGENCY_SERVICES(1);
    }
    else if (CHANGETRAFFIC == 5)
    {
     CHANGETRAFFIC = 1;
     PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING","Full Traffic",3000,1);
     SET_CAR_DENSITY_MULTIPLIER(7.25);
     SET_PED_DENSITY_MULTIPLIER(7.50);
     SWITCH_GARBAGE_TRUCKS(1);
     SET_RANDOM_CAR_DENSITY_MULTIPLIER(7.25);
     SET_PARKED_CAR_DENSITY_MULTIPLIER(2.25);
     ALLOW_EMERGENCY_SERVICES(1);
    }
    }

    now by increasing traffic and keeping this looped your probably gonna see some laaagg..
    Reply With Quote  

  4. #4  
    ribonucleic's Avatar
    ribonucleic is offline Moderator & Developer
    Join Date
    Mar 2012
    Posts
    631
    Downloads
    4
    Uploads
    0
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    128
    Likes Received
    280
    well i was half way there but 2 of us have shown floats for the functions i listed so you've probably got all you need unless you wana make something a little more complex than changing the amount of traffic/peds that show up
    Reply With Quote  

  5. #5  
    MrIdontKnow is offline Member
    Join Date
    Aug 2012
    Posts
    72
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    11
    Likes Received
    1
    So are you saying if I increase anything it will lag? I'm mainly wanting pedestrians a bit more crowded
    Reply With Quote  

  6. #6  
    JDMAlex's Avatar
    JDMAlex is offline & developer
    Join Date
    Nov 2010
    Posts
    742
    Downloads
    5
    Uploads
    1
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    204
    Likes Received
    466
    Well I'm assuming on the ps3 it might .. Your gonna have to test it.
    Reply With Quote  

  7. #7  
    EvilB's Avatar
    EvilB is offline Bringin' that funky flava
    Join Date
    Jan 2011
    Posts
    420
    Downloads
    17
    Uploads
    0
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    70
    Likes Received
    472
    Quote Originally Posted by ribonucleic View Post
    easiest mod ever, if i remember correctly these:
    Code:
    SET_CAR_DENSITY_MULTIPLIER
    SET_PED_DENSITY_MULTIPLIER
    take one float variable each, so to double the ped density just do:
    Code:
    SET_PED_DENSITY_MULTIPLIER(2.0);
    or for one and a half times car density:
    Code:
    SET_CAR_DENSITY_MULTIPLIER(1.5);
    can another dev confirm this?
    yeah the native for more peds would be SET_PED_DENSITY_MULTIPLIER the default value for the peds is 1.5 so anything higher than this would increase the peds on the streets just dont go over 10.0, game wont lag just some wierd graphic glitches occur but thats if you increased the other multipliers to 10 aswell.
    ive got these added to my trainer where you can choose what ped density you want which i might release later tonight.
    Last edited by EvilB; 08-31-2012 at 05:54 AM.
    Reply With Quote  

  8. #8  
    MrIdontKnow is offline Member
    Join Date
    Aug 2012
    Posts
    72
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    11
    Likes Received
    1
    What files are these lines of code in?
    Reply With Quote  

  9. #9  
    EvilB's Avatar
    EvilB is offline Bringin' that funky flava
    Join Date
    Jan 2011
    Posts
    420
    Downloads
    17
    Uploads
    0
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    70
    Likes Received
    472
    Those lines above are to do with scripts but anotherway to add peds is in the pedgrp.dat in the common.rpf, i think this can increase the peds on street but not like the scripts will & i dont think this file can be edited on the latest patch or the game would loop on menu.
    You can try, i know some files within the common.rpf can still be edited cabt remember which tho.
    Reply With Quote  

  10. #10  
    MrIdontKnow is offline Member
    Join Date
    Aug 2012
    Posts
    72
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    11
    Likes Received
    1
    I'm using the Complete Edition which has no updates available, so I'm guessing that already contains the patches. I'm not bothered about online though.
    Reply With Quote  

Page 1 of 2 1 2 LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •