Ped type

From GTAMods Wiki
Jump to navigation Jump to search

Pedestrian types are groups that define the relationship between different pedestriants. For San Andreas the default type for each pedestrian is defined inside the peds.ide file. The type is also an additional parameter of the character-spawning opcodes (009A and similar).

Since GTA IV, pedestrian types are called relationship groups (See SET_CHAR_RELATIONSHIP_GROUP).

Pedestrian types

GTA III, Vice City, San Andreas

Supported games Number Name Description
GTA III Vice City San Andreas 0 GTA III Vice City San Andreas PLAYER1 Primary player definition.
GTA III Vice City San Andreas 1 PLAYER2 Secondary player definition.
GTA III Vice City San Andreas 2 GTA III Vice City PLAYER3 / San Andreas PLAYER_NETWORK Tertiary player definition.
GTA III Vice City San Andreas 3 GTA III Vice City PLAYER4 / San Andreas PLAYER_UNUSED Quarternary player definition.
GTA III Vice City San Andreas 4 CIVMALE Male civilian pedestrians.
GTA III Vice City San Andreas 5 CIVFEMALE Female civilian pedestrians.
GTA III Vice City San Andreas 6 COP Policemen.
GTA III Vice City San Andreas 7 GANG1 GTA III Mafia, Vice City Cubans, San Andreas Ballas
GTA III Vice City San Andreas 8 GANG2 GTA III Triads, Vice City Haitians, San Andreas Grove Street Families
GTA III Vice City San Andreas 9 GANG3 GTA III Diablos, Vice City Streetwannabe's, San Andreas Los Santos Vagos
GTA III Vice City San Andreas 10 GANG4 GTA III Yakuza, Vice City Diaz' gang, San Andreas San Fierro Rifa
GTA III Vice City San Andreas 11 GANG5 GTA III Yardies, Vice City Security guards, San Andreas Da Nang Boys
GTA III Vice City San Andreas 12 GANG6 GTA III Columbians, Vice City Biker gang, San Andreas Mafia
GTA III Vice City San Andreas 13 GANG7 GTA III Hoods, Vice City Vercetti gang, San Andreas Mountain Cloud Triads
GTA III Vice City San Andreas 14 GANG8 GTA III Unused, Vice City Golfers, San Andreas Varrio Los Aztecas
GTA III Vice City San Andreas 15 GANG9 GTA III Unused, Vice City Unused, San Andreas Unused
San Andreas 16 GANG10 Unused
San Andreas 17 DEALER Drug dealing pedestrians.
GTA III Vice City San Andreas GTA III Vice City 16 / San Andreas 18 EMERGENCY Abulance and emergency personnel.
GTA III Vice City San Andreas GTA III Vice City 17 / San Andreas 19 FIREMAN Firefighters.
GTA III Vice City San Andreas GTA III Vice City 18 / San Andreas 20 CRIMINAL Criminal pedestrians.
San Andreas 21 BUM -
GTA III Vice City San Andreas GTA III Vice City 19 / San Andreas 22 SPECIAL Additional pedestrians.
GTA III Vice City San Andreas GTA III Vice City 20 / San Andreas 23 PROSTITUTE Prostitutes.
GTA III Vice City 21 - Reserved for special peds.
San Andreas 24 MISSION1 Mission slot 1.
San Andreas 25 MISSION2 Mission slot 2.
San Andreas 26 MISSION3 Mission slot 3.
San Andreas 27 MISSION4 Mission slot 4.
San Andreas 28 MISSION5 Mission slot 5.
San Andreas 29 MISSION6 Mission slot 6.
San Andreas 30 MISSION7 Mission slot 7.
San Andreas 31 MISSION8 Mission slot 8.

GTA IV

Number Description
0 PLAYER
1 CIVMALE
2 CIVFEMALE
3 COP
4 GANG_ALBANIAN
5 GANG_BIKER_1
6 GANG_BIKER_2
7 GANG_ITALIAN
8 GANG_RUSSIAN
9 GANG_RUSSIAN_2
10 GANG_IRISH
11 GANG_JAMAICAN
12 GANG_AFRICAN_AMERICAN
13 GANG_KOREAN
14 GANG_CHINESE_JAPANESE
15 GANG_PUERTO_RICAN
16 DEALER
17 MEDIC
18 FIREMAN
19 CRIMINAL
20 BUM
21 PROSTITUTE
22 SPECIAL
23-30 MISSION(1-8)
31-62 NETWORK_PLAYER_(1-32)
62-69 NETWORK_TEAM_(1-8)

Relationship groups

Different pedestrian types can get a defined relationship to pedestrians of other types. Those relationships are grouped by keywords or indices and get defined inside the script for GTA III and GTA Vice City or can be predefined inside the ped.dat file for GTA San Andreas and GTA IV.

The following table shows a table of relationship groups:

GTA IV Description
1 Respect A relationship group respects another one.
2 Like A relationship group will not attack another one.
3 Ignore A relationship group will ignore another one.
4 Dislike A relationship group will react more aggressive towards another one.
5 Hate A relationship group will attack another one.

In addition it is possible to define threats and aspects or relationship groups the pedestrian type avoids. If a pedestrian type is defined to handle an aspect as threat he runs away as soon as such an situation happens near enought to him. If a pedestrian avoids a specified situation he acts more carefully in the same case. Threats or avoided situations can not only be other pedestrian types, also explosions, dead pedestrians, guns or vehicle groups.

See also