015C

From GTAMods Wiki
Revision as of 04:12, 23 November 2011 by Spaceeinstein (talk | contribs)
Jump to navigation Jump to search

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