Difference between revisions of "015C"

From GTAMods Wiki
Jump to navigation Jump to search
m (Found out the unknown parameter (3) to be density of pedestrians spawned.)
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<code>015C=11,%1s% %2b% %3h% %4h% %5h% %6h% %7h% %8h% %9h% %10h% %11h%</code><br>
+
{{OpCode
<code>015C=13,%1s% %2b% %3h% %4h% %5h% %6h% %7h% %8h% %9h% %10h% %11h% %12h% %13d%</code><br>
+
| games      = {{Icon|3}} {{Icon|VC}}
'''Description''': Sets the zone's gang spawn<br>
+
| command    = SET_ZONE_PED_INFO
'''Parameter 1''': [[Zone]]'s name as defined in the <code>gta3.zon</code> file in GTA III and <code>info.zon</code> file in Vice City<br>
+
| description = Sets the [[zone]]'s peds, [[gang]]s, and cops spawn density on foot
'''Parameter 2''': Time (0 = night: 19:00 - 8:00, 1 = day: 8:00 - 19:00)<br>
+
| syntax1    = {{Icon|3}} 015C: set_zone_gang_info '[''string'']' [''int1''] [''int2''] [''int3''] [''int4''] [''int5''] [''int6''] [''int7''] [''int8''] [''int9''] [''int'']
'''Parameter 3''': Density of pedestrians to spawn.
+
| syntax2    = {{Icon|VC}} 015C: set_zone_gang_info '[''string'']' [''int1''] [''int2''] [''int3''] [''int4''] [''int5''] [''int6''] [''int7''] [''int8''] [''int9''] [''int10''] [''int11''] [''int'']
{| cellpadding="0" cellspacing="0"
+
| p1t        = [''string'']
!
+
| p1d        = Zone's name as defined in the [[ZONE]] section of an [[IPL|IPL or ZON]] file, must be type 0/1/2 for GTA III or type 2 for Vice City
!{{Icon|3}}
+
| p2t        = [''int1'']
!{{Icon|VC}}
+
| p2d        = Time (0 = night: 19:00 - 8:00, 1 = day: 8:00 - 19:00)
!{{Icon|LCS}}
+
| p3t        = [''int2'']
!{{Icon|VCS}}
+
| p3d        = Density of pedestrians to spawn (default 12)
|-
+
| p4t        = [''int3'']
| '''Parameter 4''': || Mafia || Cubans || Leone || Umberto's guys
+
| p4d        = Density of gang 0 to spawn
|-
+
| p5t        = [''int4'']
| '''Parameter 5''': || Triads || Haitians || Triad || Cholos
+
| p5d        = Density of gang 1 to spawn
|-
+
| p6t        = [''int5'']
| '''Parameter 6''': || Diablos || Streetwannabe's || Diablo || Sharks
+
| p6d        = Density of gang 2 to spawn
|-
+
| p7t        = [''int6'']
| '''Parameter 7''': || Yakuza || Diaz's gang || Yakuza || Army
+
| p7d        = Density of gang 3 to spawn
|-
+
| p8t        = [''int7'']
| '''Parameter 8''': || Yardies || Security guards || Yardie || Security
+
| p8d        = Density of gang 4 to spawn
|-
+
| p9t        = [''int8'']
| '''Parameter 9''': || Colombians || Biker gang || Columbian || Bikers
+
| p9d        = Density of gang 5 to spawn
|-
+
| p10t        = [''int9'']
| '''Parameter 10''': || Hoods || Vercetti gang || Hood || Vance
+
| p10d        = Density of gang 6 to spawn
|-
+
| p11t        = [''int10'']
| '''Parameter 11''': || Cops || Golfers || Forelli || Golfer
+
| p11d        = Density of gang 7 to spawn (only for {{Icon|VC}})
|-
+
| p12t        = [''int11'']
| '''Parameter 12''': || || {{Hint|0|any other value crashes the game}} || Sindacco || Marty's
+
| p12d        = Density of gang 8 to spawn (for nonzero values [[0235|gang ped models]] must be set first, only for {{Icon|VC}})
|-
+
| p13t        = [''int'']
| '''Parameter 13''': || || Cops || Cops || Cops
+
| p13d        = Density of cops to spawn
|}'''Supports''': [[GTA 3]], [[Vice City]], [[Liberty City Stories]] (0161), [[Vice City Stories]] (00B7)<br>
+
}}
This opcode sets the zone's gang info. This opcodes only spawns them on foot. To spawn them in cars, use opcode [[0152]]. In GTA III, this opcode has only 11 parameters. Vice City added two extra parameters to include more gangs. Parameters 4 and up are integers from 0 to 1000. These set the density of the gang. 0 means the gang takes up 0% of the random ped in the area and 1000 means the gang takes up 100% of the random ped in the area. The numbers added up cannot exceed 1000 or else the game will not properly spawn the gang.
 
  
==Default settings==
+
This opcode sets the zone's peds, gangs, and cops spawn density on foot. To spawn gangs in cars, use opcode [[0152]]. By default, GTA III's type 0, 1, or 2 zones are in <code>gta3.zon</code> and Vice City's type 2 zones are in <code>info.zon</code>. The spawned gang members use [[hardcoded]] models by default if models are not set by opcode [[0235]] in Vice City. Only two gang members each are set per gang. The models depend on their model indexes defined in the [[IDE]] file, by default the [[default.ide]] file. The densities of gangs and cops have a range between ''0'' and ''1000'' and they must all add up to less than or equal to 1000 for them to spawn properly. ''0'' means they take up 0% of the random ped in the area and ''1000'' means they take up 100%.
The spawned gang members use [[hardcoded]] models by default if models are not set by opcode [[0410]] or [[0235]]. Only two gang members each are set per gang. The models depend on their IDs defined in the [[IDE]] file, specifically the [[default.ide]] file.
 
{| {{prettytable}}
 
!
 
! colspan="2"| GTA III
 
! colspan="2"| Vice City
 
|-
 
! Gang
 
! ID 1
 
! ID 2
 
! ID 1
 
! ID 2
 
|-
 
| 0
 
|
 
|
 
| 83, CBA
 
| 84, CBB
 
|-
 
| 1
 
|
 
|
 
| 85, HNA
 
| 86, HNB
 
|-
 
| 2
 
|
 
|
 
| 87, SGA
 
| 88, SGB
 
|-
 
| 3
 
|
 
|
 
| 89, CLA
 
| 90, CLB
 
|-
 
| 4
 
|
 
|
 
| 91, GDA
 
| 92, GDB
 
|-
 
| 5
 
|
 
|
 
| 93, BKA
 
| 94, BKB
 
|-
 
| 6
 
|
 
|
 
| 95, PGA
 
| 96, PGB
 
|-
 
| 7
 
|
 
|
 
| 63, WFOGO
 
| 64, WMOGO
 
|}
 
Other default settings for Vice City include gang 6 faking deaths and gang 7 wielding golf clubs.
 
  
[[Category:OpCodes]]
+
The density of pedestrians is treated very differently. The value does not depend on the densities of gangs and is measured differently from them. Its default value of ''12'' already spawns a lot of pedestrians. Rockstar has used a range between ''0'' and ''50'', however values that high show no noticeable increase in rate or number. There is one instance of ''200'' being used in Vice City but that may be an error in coding. The density of pedestrians is affected by the density of cops. If you want to have no pedestrians, you must also have no cops or have gangs and cops take up 100% of the random peds; having some cops will spawn some pedestrians.
 +
 
 +
== Examples ==
 +
* <code>1000 0 0 0 0 0 0 0 ...</code> - All pedestrians will be gang 0
 +
* <code>500 500 0 0 0 0 0 0 ...</code> - All pedestrians will be gangs 0 and 1
 +
* <code>500 0 0 0 0 0 0 0 ...</code> - Some pedestrians will be gang 0
 +
* <code>500 100 0 0 0 0 0 0 ...</code> - Some pedestrians will be gangs 0 and 1, gang 0 will spawn more often than gang 1
 +
 
 +
== Keywords ==
 +
set, zone, gang, ped, info
 +
 
 +
== See also ==
 +
* {{Icon|3}} {{Icon|VC}} [[0152]], set zone car info

Latest revision as of 20:09, 27 June 2017

GTA III Vice City SET_ZONE_PED_INFO


Description
Sets the zone's peds, gangs, and cops spawn density on foot
Syntax
GTA III 015C: set_zone_gang_info '[string]' [int1] [int2] [int3] [int4] [int5] [int6] [int7] [int8] [int9] [int]
Vice City 015C: set_zone_gang_info '[string]' [int1] [int2] [int3] [int4] [int5] [int6] [int7] [int8] [int9] [int10] [int11] [int]
Parameter
[string]
Zone's name as defined in the ZONE section of an IPL or ZON file, must be type 0/1/2 for GTA III or type 2 for Vice City
[int1]
Time (0 = night: 19:00 - 8:00, 1 = day: 8:00 - 19:00)
[int2]
Density of pedestrians to spawn (default 12)
[int3]
Density of gang 0 to spawn
[int4]
Density of gang 1 to spawn
[int5]
Density of gang 2 to spawn
[int6]
Density of gang 3 to spawn
[int7]
Density of gang 4 to spawn
[int8]
Density of gang 5 to spawn
[int9]
Density of gang 6 to spawn
[int10]
Density of gang 7 to spawn (only for Vice City)
[int11]
Density of gang 8 to spawn (for nonzero values gang ped models must be set first, only for Vice City)
[int]
Density of cops to spawn

This opcode sets the zone's peds, gangs, and cops spawn density on foot. To spawn gangs in cars, use opcode 0152. By default, GTA III's type 0, 1, or 2 zones are in gta3.zon and Vice City's type 2 zones are in info.zon. The spawned gang members use hardcoded models by default if models are not set by opcode 0235 in Vice City. Only two gang members each are set per gang. The models depend on their model indexes defined in the IDE file, by default the default.ide file. The densities of gangs and cops have a range between 0 and 1000 and they must all add up to less than or equal to 1000 for them to spawn properly. 0 means they take up 0% of the random ped in the area and 1000 means they take up 100%.

The density of pedestrians is treated very differently. The value does not depend on the densities of gangs and is measured differently from them. Its default value of 12 already spawns a lot of pedestrians. Rockstar has used a range between 0 and 50, however values that high show no noticeable increase in rate or number. There is one instance of 200 being used in Vice City but that may be an error in coding. The density of pedestrians is affected by the density of cops. If you want to have no pedestrians, you must also have no cops or have gangs and cops take up 100% of the random peds; having some cops will spawn some pedestrians.

Examples

  • 1000 0 0 0 0 0 0 0 ... - All pedestrians will be gang 0
  • 500 500 0 0 0 0 0 0 ... - All pedestrians will be gangs 0 and 1
  • 500 0 0 0 0 0 0 0 ... - Some pedestrians will be gang 0
  • 500 100 0 0 0 0 0 0 ... - Some pedestrians will be gangs 0 and 1, gang 0 will spawn more often than gang 1

Keywords

set, zone, gang, ped, info

See also

  • GTA III Vice City 0152, set zone car info