Difference between revisions of "015C"

From GTAMods Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
<hr />
 
<hr />
 
'''Description'''
 
'''Description'''
: Sets the zone's [[gang]] spawn
+
: Sets the density of [[gang]] spawn 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 12: Line 12:
 
:: Time (0 = night: 19:00 - 8:00, 1 = day: 8:00 - 19:00)
 
:: Time (0 = night: 19:00 - 8:00, 1 = day: 8:00 - 19:00)
 
: [''int2'']
 
: [''int2'']
:: Density of pedestrians to spawn
+
:: Density of pedestrians to spawn?
 
: [''int3'']
 
: [''int3'']
:: Gang 0
+
:: Density of gang 0 to spawn
 
: [''int4'']
 
: [''int4'']
:: Gang 1
+
:: Density of gang 1 to spawn
 
: [''int5'']
 
: [''int5'']
:: Gang 2
+
:: Density of gang 2 to spawn
 
: [''int6'']
 
: [''int6'']
:: Gang 3
+
:: Density of gang 3 to spawn
 
: [''int7'']
 
: [''int7'']
:: Gang 4
+
:: Density of gang 4 to spawn
 
: [''int8'']
 
: [''int8'']
:: Gang 5
+
:: Density of gang 5 to spawn
 
: [''int9'']
 
: [''int9'']
:: Gang 6
+
:: Density of gang 6 to spawn
 
: [''int10'']
 
: [''int10'']
:: Gang 7
+
:: Density of gang 7 to spawn
 
: [''int11'']
 
: [''int11'']
:: Gang 8
+
:: Density of gang 8 to spawn
 
: [''int12'']
 
: [''int12'']
:: Gang 9
+
:: Density of gang 9 to spawn
  
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]]. 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.
  
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.
+
== 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.
 +
* <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 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 0 0 0 0 0 0 0 ...</code> - Some pedestrians will be gang 0
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Revision as of 04:12, 23 November 2011

GTA III Vice City


Description

Sets the density of gang spawn within the specified zone

Syntax

GTA III 015C: set_zone_gang_info '[string]' [int1] [int2] [int3] [int4] [int5] [int6] [int7] [int8] [int9] [int10]
Vice City 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/ZON file
[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]
Density of gang 8 to spawn
[int12]
Density of gang 9 to spawn

This opcode sets the zone's gang info. This opcodes only spawns them 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 0
  • 500 500 0 0 0 0 0 0 ... - All pedestrians will be gangs 0 and 1
  • 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
  • 500 0 0 0 0 0 0 0 ... - Some pedestrians will be gang 0