Difference between revisions of "015C"
(page updates + density of peds) |
|||
Line 1: | Line 1: | ||
− | {{Icon|3}} {{Icon|VC}} | + | {{OpCode |
− | + | | games = {{Icon|3}} {{Icon|VC}} | |
− | + | | command = SET_ZONE_PED_INFO | |
− | + | | description = Sets the [[zone]]'s peds, [[gang]]s, and cops spawn density on foot | |
− | + | | syntax1 = {{Icon|3}} 015C: set_zone_gang_info '[''string'']' [''int1''] [''int2''] [''int3''] [''int4''] [''int5''] [''int6''] [''int7''] [''int8''] [''int9''] [''int''] | |
− | + | | syntax2 = {{Icon|VC}} 015C: set_zone_gang_info '[''string'']' [''int1''] [''int2''] [''int3''] [''int4''] [''int5''] [''int6''] [''int7''] [''int8''] [''int9''] [''int10''] [''int11''] [''int''] | |
− | + | | 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 | |
− | + | | p2t = [''int1''] | |
− | + | | p2d = Time (0 = night: 19:00 - 8:00, 1 = day: 8:00 - 19:00) | |
− | + | | p3t = [''int2''] | |
− | + | | p3d = Density of pedestrians to spawn (default 12) | |
− | + | | p4t = [''int3''] | |
− | + | | p4d = Density of gang 0 to spawn | |
− | + | | p5t = [''int4''] | |
− | + | | p5d = Density of gang 1 to spawn | |
− | + | | p6t = [''int5''] | |
− | + | | p6d = Density of gang 2 to spawn | |
− | + | | p7t = [''int6''] | |
− | + | | p7d = Density of gang 3 to spawn | |
− | + | | p8t = [''int7''] | |
− | + | | p8d = Density of gang 4 to spawn | |
− | + | | p9t = [''int8''] | |
− | + | | p9d = Density of gang 5 to spawn | |
− | + | | p10t = [''int9''] | |
− | + | | p10d = Density of gang 6 to spawn | |
− | + | | p11t = [''int10''] | |
− | + | | p11d = Density of gang 7 to spawn (only for {{Icon|VC}}) | |
− | + | | p12t = [''int11''] | |
− | + | | p12d = 0 (any other value crashes the game, only for {{Icon|VC}}) | |
− | + | | p13t = [''int''] | |
− | + | | p13d = Density of cops to spawn | |
− | + | }} | |
− | |||
− | This opcode sets the zone's | + | This opcode sets the zone's peds, gangs, and cops spawn density on foot. To spawn gangs in cars, use opcode [[0152]]. By default, for GTA III type 0, 1, or 2 zones are in <code>gta3.zon</code> and for Vice City 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 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>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 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 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 | * <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 | ||
− | |||
− |
Revision as of 17:21, 13 June 2016
- Description
- Sets the zone's peds, gangs, and cops spawn density on foot
- Syntax
- 015C: set_zone_gang_info '[string]' [int1] [int2] [int3] [int4] [int5] [int6] [int7] [int8] [int9] [int]
- 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 )
- [int11]
- 0 (any other value crashes the game, only for )
- [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, for GTA III type 0, 1, or 2 zones are in gta3.zon
and for Vice City 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 0500 500 0 0 0 0 0 0 ...
- All pedestrians will be gangs 0 and 1500 0 0 0 0 0 0 0 ...
- Some pedestrians will be gang 0500 100 0 0 0 0 0 0 ...
- Some pedestrians will be gangs 0 and 1, gang 0 will spawn more often than gang 1