Difference between revisions of "015C"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<code>015C=11,%1s% %2b% %3h% %4h% %5h% %6h% %7h% %8h% %9h% %10h% %11h%</code><br>
+
{{Icon|3}} {{Icon|VC}}
<code>015C=13,%1s% %2b% %3h% %4h% %5h% %6h% %7h% %8h% %9h% %10h% %11h% %12h% %13d%</code><br>
+
<hr />
'''Description''': Sets the zone's gang spawn<br>
+
'''Description'''
'''Parameter 1''': Zone's name as defined in the [[ZONE]] section of an [[IPL|IPL/ZON]] file<br>
+
: Sets the zone's [[gang]] spawn
'''Parameter 2''': Time (0 = night: 19:00 - 8:00, 1 = day: 8:00 - 19:00)<br>
+
'''Syntax'''
'''Parameter 3''': Density of pedestrians to spawn.
+
: {{Icon|3}} 015C: set_zone_gang_info '[''string'']' [''int1''] [''int2''] [''int3''] [''int4''] [''int5''] [''int6''] [''int7''] [''int8''] [''int9''] [''int10'']
{| cellpadding="0" cellspacing="0"
+
: {{Icon|VC}} 015C: set_zone_gang_info '[''string'']' [''int1''] [''int2''] [''int3''] [''int4''] [''int5''] [''int6''] [''int7''] [''int8''] [''int9''] [''int10''] [''int11''] [''int12'']
!
+
'''Parameter'''
!{{Icon|3}}
+
: [''string'']
!{{Icon|VC}}
+
:: Zone's name as defined in the [[ZONE]] section of an [[IPL|IPL/ZON]] file
!{{Icon|LCS}}
+
: [''int1'']
!{{Icon|VCS}}
+
:: Time (0 = night: 19:00 - 8:00, 1 = day: 8:00 - 19:00)
|-
+
: [''int2'']
| '''Parameter 4''': || Mafia || Cubans || Leone || Umberto's guys
+
:: Density of pedestrians to spawn
|-
+
: [''int3'']
| '''Parameter 5''': || Triads || Haitians || Triad || Cholos
+
:: Gang 0
|-
+
: [''int4'']
| '''Parameter 6''': || Diablos || Streetwannabe's || Diablo || Sharks
+
:: Gang 1
|-
+
: [''int5'']
| '''Parameter 7''': || Yakuza || Diaz's gang || Yakuza || Army
+
:: Gang 2
|-
+
: [''int6'']
| '''Parameter 8''': || Yardies || Security guards || Yardie || Security
+
:: Gang 3
|-
+
: [''int7'']
| '''Parameter 9''': || Colombians || Biker gang || Columbian || Bikers
+
:: Gang 4
|-
+
: [''int8'']
| '''Parameter 10''': || Hoods || Vercetti gang || Hood || Vance
+
:: Gang 5
|-
+
: [''int9'']
| '''Parameter 11''': || Cops || Golfers || Forelli || Golfer
+
:: Gang 6
|-
+
: [''int10'']
| '''Parameter 12''': || || {{Hint|0|any other value crashes the game}} || Sindacco || Marty's
+
:: Gang 7
|-
+
: [''int11'']
| '''Parameter 13''': || || Cops || Cops || Cops
+
:: Gang 8
|}'''Supports''': [[GTA 3]], [[Vice City]], [[Liberty City Stories]] (0161), [[Vice City Stories]] (00B7)<br>
+
: [''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.
  
==Default settings==
 
 
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.
{| {{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]]
 
[[Category:OpCodes]]

Revision as of 03:36, 23 November 2011

GTA III Vice City


Description

Sets the zone's gang spawn

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]
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.