Jump to content

Covering the Map in gangs


Recommended Posts

Well, the question is simple, I tried to make gangs spawn everywhere in the map, but with a not very high density, to give a deserted look since I set traffic and peds to 0.0, so far I tried:

 

076C: set_zone 'LA' gang 2 density_to 50  // Los Santos076C: set_zone 'LA' gang 0 density_to 15  // Los Santos076C: set_zone 'RED' gang 2 density_to 10  // Red County076C: set_zone 'RED' gang 0 density_to 35  // Red County076C: set_zone 'SF' gang 2 density_to 40  // San Fierro076C: set_zone 'SF' gang 0 density_to 20  // San Fierro076C: set_zone 'FLINTC' gang 2 density_to 25  // Flint County076C: set_zone 'FLINTC' gang 0 density_to 20  // Flint County076C: set_zone 'WHET' gang 2 density_to 20  // Whetstone076C: set_zone 'WHET' gang 0 density_to 25  // Whetstone076C: set_zone 'VE' gang 2 density_to 30  // Las Venturas076C: set_zone 'VE' gang 0 density_to 25  // Las Venturas076C: set_zone 'ROBAD' gang 2 density_to 50  // Tierra Robada076C: set_zone 'ROBAD' gang 0 density_to 5  // Tierra Robada076C: set_zone 'BONE' gang 2 density_to 40  // Bone County076C: set_zone 'BONE' gang 0 density_to 15  // Bone County

 

And:

 

076C: set_zone 'SAN_AND' gang 2 density_to 50076C: set_zone 'SAN_AND' gang 0 density_to 15 

 

But so far nothing worked, any ideas on how to without doing every single freaking zone?

Link to comment
https://gtaforums.com/topic/389628-covering-the-map-in-gangs/
Share on other sites

Doomed_Space_Marine

To make gangs spawn in these zones, you have to modify popcycle.dat or give them other type. I don't know what about countryside, but to make them spawn in cities, you can use this code:

 

{$CLEO}thread 'DSMGAZO':GangZoneswait 0if   0AB0:  key_pressed 0x65then   while 0AB0:  key_pressed 0x65       wait 0   end   0879: enable_gang_wars 0   0A9A: 2@ = openfile "data/info.zon" mode 0x6272   while true       0@ = 0       1@ = 0       4@ = 0       3@ = 0       while not 3@ == 10           0A9D: readfile 2@ size 1 to 3@       end       while not 3@ == 44           0A9D: readfile 2@ size 1 to 3@           if               3@ == 44           then               jump @Comma           end           if               3@ == 10           then               0A9B: closefile 2@               0879: enable_gang_wars 1                jump @GangZones           end           if               4@ < 4           then               0AB1: call_scm_func @PutCharIntoString 3 0@ 4@ 3@ 0@           else               4@ -= 4               0AB1: call_scm_func @PutCharIntoString 3 1@ 4@ 3@ 1@               4@ += 4           end           4@ += 1       end       :Comma       gosub @ZoneAction   endendjump @GangZones:ZoneAction//PUT CODE HERE. ZONE NAME IS STORED IN 0@sreturn:PutCharIntoString //0@ = string, 1@ = byte, 2@ = value1@ *= 83@ = 0while 3@ < 8   if       08B7:   test 2@ bit 3@   then       08BF: set 0@ bit 1@   else       08C3: clear 0@ bit 1@   end   1@ += 1   3@ += 1end0AB2: ret 1 0@

 

I wrote this code a few days ago. It reads zones from info.zon. However, it looks like that some zones are defined in other files. Press NUM5 to do the action.

Link to comment
https://gtaforums.com/topic/389628-covering-the-map-in-gangs/#findComment-1058837553
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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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