Difference between revisions of "015C"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
<hr /> | <hr /> | ||
'''Description''' | '''Description''' | ||
− | : Sets the density of [[gang]] spawn within the specified zone | + | : Sets the density of [[gang]] spawn on-foot within the specified zone |
'''Syntax''' | '''Syntax''' | ||
: {{Icon|3}} 015C: set_zone_gang_info '[''string'']' [''int1''] [''int2''] [''int3''] [''int4''] [''int5''] [''int6''] [''int7''] [''int8''] [''int9''] [''int10''] | : {{Icon|3}} 015C: set_zone_gang_info '[''string'']' [''int1''] [''int2''] [''int3''] [''int4''] [''int5''] [''int6''] [''int7''] [''int8''] [''int9''] [''int10''] | ||
Line 30: | Line 30: | ||
:: Density of gang 7 to spawn | :: Density of gang 7 to spawn | ||
: [''int11''] | : [''int11''] | ||
− | :: | + | :: 0 (any other value crashes the game) |
: [''int12''] | : [''int12''] | ||
:: Density of gang 9 to spawn | :: Density of gang 9 to spawn | ||
− | This opcode sets the zone's gang | + | This opcode sets the zone's gang spawn density on foot. To spawn them in cars, use opcode [[0152]]. By default, zones in <code>gta3.zon</code> for GTA III and <code>info.zon</code> for Vice City are used. 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, by default the [[default.ide]] file. |
== Example == | == Example == | ||
Line 40: | Line 40: | ||
* <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 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 | ||
− | |||
[[Category:OpCodes]] | [[Category:OpCodes]] |
Revision as of 17:22, 24 November 2011
Description
- Sets the density of gang spawn on-foot within the specified zone
Syntax
- 015C: set_zone_gang_info '[string]' [int1] [int2] [int3] [int4] [int5] [int6] [int7] [int8] [int9] [int10]
- 015C: set_zone_gang_info '[string]' [int1] [int2] [int3] [int4] [int5] [int6] [int7] [int8] [int9] [int10] [int11] [int12]
Parameter
- [string]
- [int1]
- Time (0 = night: 19:00 - 8:00, 1 = day: 8:00 - 19:00)
- [int2]
- Density of pedestrians to spawn?
- [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
- [int11]
- 0 (any other value crashes the game)
- [int12]
- Density of gang 9 to spawn
This opcode sets the zone's gang spawn density on foot. To spawn them in cars, use opcode 0152. By default, zones in gta3.zon
for GTA III and info.zon
for Vice City are used. 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, by default the default.ide file.
Example
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 else the game will not properly spawn the gang.
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