Difference between revisions of "0152"

From GTAMods Wiki
Jump to navigation Jump to search
m
(page updates)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0152=13,%1s% %2b% %3h% %4h% %5h% %6h% %7h% %8h% %9h% %10h% %11h% %12h% %13h%
+
| games      = {{Icon|3}} {{Icon|VC}}
| description = Sets the zone's gang car spawn
+
| command    = SET_ZONE_CAR_INFO
| p1          = [[Zone]]'s name as defined in the <code>gta3.zon</code> file in GTA III and <code>info.zon</code> file in Vice City
+
| description = Sets the [[zone]]'s peds, [[gang]]s, and cops spawn density in car
| p2          = Time (0 = night: 19:00 - 8:00, 1 = day: 8:00 - 19:00)
+
| syntax1    = {{Icon|3}} 015C: set_zone_gang_info '[''string'']' [''int1''] [''int2''] [''int3''] [''int4''] [''int5''] [''int6''] [''int7''] [''int8''] [''int9''] [''int'']
| p3          = Density (unknown range)
+
| syntax2    = {{Icon|VC}} 015C: set_zone_gang_info '[''string'']' [''int1''] [''int2''] [''int3''] [''int4''] [''int5''] [''int6''] [''int7''] [''int8''] [''int9''] [''int10''] [''int11''] [''int'']
| p4          = {{Icon|VC}} Cubans
+
| p1t        = [''string'']
| p5          = {{Icon|VC}} Haitians
+
| 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
| p6          = {{Icon|VC}} Streetwannabe's
+
| p2t        = [''int1'']
| p7          = {{Icon|VC}} Diaz's gang
+
| p2d        = Time (0 = night: 19:00 - 8:00, 1 = day: 8:00 - 19:00)
| p8          = {{Icon|VC}} Security guards
+
| p3t        = [''int2'']
| p9          = {{Icon|VC}} Biker gang
+
| p3d        = Density of pedestrian cars to spawn (default 10)
| p10        = {{Icon|VC}} Vercetti gang
+
| p4t        = [''int3'']
| p11        = {{Icon|VC}} Golfers
+
| p4d        = Density of gang 0 car to spawn
| p12        = 0 (any other value crashes the game)
+
| p5t        = [''int4'']
| p13        = {{Icon|VC}} Cops
+
| p5d        = Density of gang 1 car to spawn
| game       = [[GTA 3]], [[Vice City]]
+
| p6t        = [''int5'']
 +
| p6d        = Density of gang 2 car to spawn
 +
| p7t        = [''int6'']
 +
| p7d        = Density of gang 3 car to spawn
 +
| p8t        = [''int7'']
 +
| p8d        = Density of gang 4 car to spawn
 +
| p9t        = [''int8'']
 +
| p9d        = Density of gang 5 car to spawn
 +
| p10t        = [''int9'']
 +
| p10d        = Density of gang 6 car to spawn
 +
| p11t        = [''int10'']
 +
| p11d        = Density of gang 7 car 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 cop cars to spawn
 
}}
 
}}
This opcode sets the zone's gang car spawn. This opcodes only spawns gang members as a driver and sometimes with a passenger in cars and is independent from opcode [[015C]], which spawns the gang on foot. In GTA III, this opcode has 17 parameters. Vice City has 13. Parameters 4 and up are integers from 0 to 1000. These set the density of the car spawn. 0 means the gang takes up 0% of the random cars in the area and 1000 means the gang takes up 100% of the random cars in the area. The numbers added up cannot exceed 1000 or else the game will not properly spawn the cars. The opcode is used in conjunction with [[0236]] but can be used without it. If no gang vehicle is defined, the gang will spawn in their preferred vehicle.
+
 
 +
This opcode sets the zone's peds, gangs, and cops spawn density in car. It allows gang members to spawn as a driver and sometimes also a passenger in cars and is independent from opcode [[015C]], which spawns the gang on foot. By default, GTA III's type 0, 1, or 2 zones are in <code>gta3.zon</code> and Vice City's type 2 zones are in <code>info.zon</code>. The spawned gang cars use [[hardcoded]] models by default if models are not set by opcode [[0236]]. 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 cars in the area and ''1000'' means they take up 100%.
 +
 
 +
== Keywords ==
 +
set, zone, gang, car, info
 +
 
 +
== See also ==
 +
* {{Icon|3}} {{Icon|VC}} [[015C]], set zone ped info

Revision as of 08:43, 2 December 2016

GTA III Vice City SET_ZONE_CAR_INFO


Description
Sets the zone's peds, gangs, and cops spawn density in car
Syntax
GTA III 015C: set_zone_gang_info '[string]' [int1] [int2] [int3] [int4] [int5] [int6] [int7] [int8] [int9] [int]
Vice City 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 pedestrian cars to spawn (default 10)
[int3]
Density of gang 0 car to spawn
[int4]
Density of gang 1 car to spawn
[int5]
Density of gang 2 car to spawn
[int6]
Density of gang 3 car to spawn
[int7]
Density of gang 4 car to spawn
[int8]
Density of gang 5 car to spawn
[int9]
Density of gang 6 car to spawn
[int10]
Density of gang 7 car to spawn (only for Vice City)
[int11]
0 (any other value crashes the game, only for Vice City)
[int]
Density of cop cars to spawn

This opcode sets the zone's peds, gangs, and cops spawn density in car. It allows gang members to spawn as a driver and sometimes also a passenger in cars and is independent from opcode 015C, which spawns the gang on foot. By default, GTA III's type 0, 1, or 2 zones are in gta3.zon and Vice City's type 2 zones are in info.zon. The spawned gang cars use hardcoded models by default if models are not set by opcode 0236. 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 cars in the area and 1000 means they take up 100%.

Keywords

set, zone, gang, car, info

See also

  • GTA III Vice City 015C, set zone ped info