Difference between revisions of "015C"
Line 1: | Line 1: | ||
− | + | {{Icon|3}} {{Icon|VC}} | |
− | < | + | <hr /> |
− | '''Description''': Sets the zone's gang spawn | + | '''Description''' |
− | '''Parameter | + | : Sets the zone's [[gang]] spawn |
− | '' | + | '''Syntax''' |
− | '' | + | : {{Icon|3}} 015C: set_zone_gang_info '[''string'']' [''int1''] [''int2''] [''int3''] [''int4''] [''int5''] [''int6''] [''int7''] [''int8''] [''int9''] [''int10''] |
− | + | : {{Icon|VC}} 015C: set_zone_gang_info '[''string'']' [''int1''] [''int2''] [''int3''] [''int4''] [''int5''] [''int6''] [''int7''] [''int8''] [''int9''] [''int10''] [''int11''] [''int12''] | |
− | + | '''Parameter''' | |
− | + | : [''string''] | |
− | + | :: Zone's name as defined in the [[ZONE]] section of an [[IPL|IPL/ZON]] file | |
− | + | : [''int1''] | |
− | + | :: Time (0 = night: 19:00 - 8:00, 1 = day: 8:00 - 19:00) | |
− | + | : [''int2''] | |
− | + | :: Density of pedestrians to spawn | |
− | + | : [''int3''] | |
− | + | :: Gang 0 | |
− | + | : [''int4''] | |
− | + | :: Gang 1 | |
− | + | : [''int5''] | |
− | + | :: Gang 2 | |
− | + | : [''int6''] | |
− | + | :: Gang 3 | |
− | + | : [''int7''] | |
− | + | :: Gang 4 | |
− | + | : [''int8''] | |
− | + | :: Gang 5 | |
− | + | : [''int9''] | |
− | + | :: Gang 6 | |
− | + | : [''int10''] | |
− | + | :: Gang 7 | |
− | + | : [''int11''] | |
− | + | :: Gang 8 | |
− | + | : [''int12''] | |
+ | :: Gang 9 | ||
+ | |||
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. By default, zones in <code>gta3.zon</code> for GTA III and <code>info.zon</code> for Vice City are used. 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. | 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. By default, zones in <code>gta3.zon</code> for GTA III and <code>info.zon</code> for Vice City are used. 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. | ||
− | |||
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. | 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. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:OpCodes]] | [[Category:OpCodes]] |
Revision as of 03:36, 23 November 2011
Description
- Sets the zone's gang spawn
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]
- Gang 0
- [int4]
- Gang 1
- [int5]
- Gang 2
- [int6]
- Gang 3
- [int7]
- Gang 4
- [int8]
- Gang 5
- [int9]
- Gang 6
- [int10]
- Gang 7
- [int11]
- Gang 8
- [int12]
- Gang 9
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. By default, zones in gta3.zon
for GTA III and info.zon
for Vice City are used. 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.
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.