Difference between revisions of "Ped type"
(arrange by number rather than by name, sortable to make table better to use) |
m (→Relationship groups: Better description) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{I|The section for GTA IV needs to be changed to fit with the other table.|The ''ped.dat'' documentation needs some confirmation.}} | {{I|The section for GTA IV needs to be changed to fit with the other table.|The ''ped.dat'' documentation needs some confirmation.}} | ||
− | '''Pedestrian types''' are groups that define the relationship between different | + | '''Pedestrian types''' are groups that define the relationship between different pedestrians. For [[San Andreas]] the default type for each pedestrian is defined inside the [[PEDS|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]]). | Since [[GTA IV]], pedestrian types are called '''relationship groups''' (See [[SET_CHAR_RELATIONSHIP_GROUP]]). | ||
Line 6: | Line 6: | ||
== Pedestrian types == | == Pedestrian types == | ||
− | === GTA III | + | === GTA III – Liberty City Stories === |
− | {| class="mw-collapsible sortable wikitable" | + | {|class="mw-collapsible sortable wikitable" |
− | ! rowspan="2" | Number || colspan=" | + | !rowspan="2" |Number ||colspan="4" |Supported<br>games ||rowspan="2" |Name ||rowspan="2" |Description |
|- | |- | ||
− | ! {{Icon|3}} || {{Icon|VC}} || {{Icon|SA}} | + | !{{Icon|3}} ||{{Icon|VC}} ||{{Icon|SA}} ||{{Icon|LCS}} |
|- | |- | ||
− | | {{a|c}} | 0 || ✓ || ✓ || ✓ || PLAYER1 || Primary player definition | + | |{{a|c}} |0 ||✓ ||✓ ||✓ ||✓ ||PLAYER1 ||Primary player definition |
|- | |- | ||
− | | {{a|c}} | 1 || ✓ || ✓ || ✓ || PLAYER2 || Secondary player definition | + | |{{a|c}} |1 ||✓ ||✓ ||✓ ||✓ ||PLAYER2 ||Secondary player definition |
|- | |- | ||
− | | rowspan="2" {{a|c}} | 2 || ✓ || ✓ || ✗ || PLAYER3 || rowspan="2" | Tertiary player definition | + | |rowspan="2" {{a|c}} |2 ||✓ ||✓ ||✗ ||✓ ||PLAYER3 ||rowspan="2" |Tertiary player definition |
|- | |- | ||
− | | ✗ || ✗ || ✓ || PLAYER_NETWORK | + | |✗ ||✗ ||✓ ||✗ ||PLAYER_NETWORK |
|- | |- | ||
− | | rowspan="2" {{a|c}} | 3 || ✓ || ✓ || ✗ || PLAYER4 || rowspan="2" | Quarternary player definition | + | |rowspan="2" {{a|c}} |3 ||✓ ||✓ ||✗ ||✓ ||PLAYER4 ||rowspan="2" |Quarternary player definition |
|- | |- | ||
− | | ✗ || ✗ || ✓ || PLAYER_UNUSED | + | |✗ ||✗ ||✓ ||✗ ||PLAYER_UNUSED |
|- | |- | ||
− | | {{a|c}} | 4 || ✓ || ✓ || ✓ || CIVMALE || Male civilian pedestrians | + | |{{a|c}} |4 ||✓ ||✓ ||✓ ||✓ ||CIVMALE ||Male civilian pedestrians |
|- | |- | ||
− | | {{a|c}} | 5 || ✓ || ✓ || ✓ || CIVFEMALE || Female civilian pedestrians | + | |{{a|c}} |5 ||✓ ||✓ ||✓ ||✓ ||CIVFEMALE ||Female civilian pedestrians |
|- | |- | ||
− | | {{a|c}} | 6 || ✓ || ✓ || ✓ || COP || Policemen | + | |{{a|c}} |6 ||✓ ||✓ ||✓ ||✓ ||COP ||Policemen |
|- | |- | ||
− | | rowspan="3" {{a|c}} | 7 || ✓ || ✗ || ✗ || rowspan="3" | GANG1 || | + | |rowspan="3" {{a|c}} |7 ||✓ ||✗ ||✗ ||✓ ||rowspan="3" |GANG1 ||Leones |
|- | |- | ||
− | | ✗ || ✓ || ✗ || Cubans | + | |✗ ||✓ ||✗ ||✗ ||Cubans |
|- | |- | ||
− | | ✗ || ✗ || ✓ || Ballas | + | |✗ ||✗ ||✓ ||✗ ||Ballas |
|- | |- | ||
− | | rowspan="3" {{a|c}} | 8 || ✓ || ✗ || ✗ || rowspan="3" | GANG2 || Triads | + | |rowspan="3" {{a|c}} |8 ||✓ ||✗ ||✗ ||✓ ||rowspan="3" |GANG2 ||Triads |
|- | |- | ||
− | | ✗ || ✓ || ✗ || Haitians | + | |✗ ||✓ ||✗ ||✗ ||Haitians |
|- | |- | ||
− | | ✗ || ✗ || ✓ || Grove Street Families | + | |✗ ||✗ ||✓ ||✗ ||Grove Street Families |
|- | |- | ||
− | | rowspan="3" {{a|c}} | 9 || ✓ || ✗ || ✗ || rowspan="3" | GANG3 || Diablos | + | |rowspan="3" {{a|c}} |9 ||✓ ||✗ ||✗ ||✓ ||rowspan="3" |GANG3 ||Diablos |
|- | |- | ||
− | | ✗ || ✓ || ✗ || Streetwannabe's | + | |✗ ||✓ ||✗ ||✗ ||Streetwannabe's |
|- | |- | ||
− | | ✗ || ✗ || ✓ || Los Santos Vagos | + | |✗ ||✗ ||✓ ||✗ ||Los Santos Vagos |
|- | |- | ||
− | | rowspan="3" {{a|c}} | 10 || ✓ || ✗ || ✗ || rowspan="3" | GANG4 || Yakuza | + | |rowspan="3" {{a|c}} |10 ||✓ ||✗ ||✗ ||✓ ||rowspan="3" |GANG4 ||Yakuza |
|- | |- | ||
− | | ✗ || ✓ || ✗ || Diaz' gang | + | |✗ ||✓ ||✗ ||✗ ||Diaz' gang |
|- | |- | ||
− | | ✗ || ✗ || ✓ || San Fierro Rifa | + | |✗ ||✗ ||✓ ||✗ ||San Fierro Rifa |
|- | |- | ||
− | | rowspan="3" {{a|c}} | 11 || ✓ || ✗ || ✗ || rowspan="3" | GANG5 || Yardies | + | |rowspan="3" {{a|c}} |11 ||✓ ||✗ ||✗ ||✓ ||rowspan="3" |GANG5 ||Yardies |
|- | |- | ||
− | | ✗ || ✓ || ✗ || Security guards | + | |✗ ||✓ ||✗ ||✗ ||Security guards |
|- | |- | ||
− | | ✗ || ✗ || ✓ || Da Nang Boys | + | |✗ ||✗ ||✓ ||✗ ||Da Nang Boys |
|- | |- | ||
− | | rowspan="3" {{a|c}} | 12 || ✓ || ✗ || ✗ || rowspan="3" | GANG6 || | + | |rowspan="3" {{a|c}} |12 ||✓ ||✗ ||✗ ||✓ ||rowspan="3" |GANG6 ||Colombians |
|- | |- | ||
− | | ✗ || ✓ || ✗ || Biker gang | + | |✗ ||✓ ||✗ ||✗ ||Biker gang |
|- | |- | ||
− | | ✗ || ✗ || ✓ || Mafia | + | |✗ ||✗ ||✓ ||✗ ||Mafia |
|- | |- | ||
− | | rowspan="3" {{a|c}} | 13 || ✓ || ✗ || ✗ || rowspan="3" | GANG7 || Hoods | + | |rowspan="3" {{a|c}} |13 ||✓ ||✗ ||✗ ||✓ ||rowspan="3" |GANG7 ||Hoods |
|- | |- | ||
− | | ✗ || ✓ || ✗ || Vercetti gang | + | |✗ ||✓ ||✗ ||✗ ||Vercetti gang |
|- | |- | ||
− | | ✗ || ✗ || ✓ || Mountain Cloud Triads | + | |✗ ||✗ ||✓ ||✗ ||Mountain Cloud Triads |
|- | |- | ||
− | | rowspan=" | + | |rowspan="4" {{a|c}} |14 ||✓ ||✗ ||✗ ||✗ ||rowspan="4" |GANG8 ||''unused'' |
|- | |- | ||
− | | ✗ || ✓ || ✗ || Golfers | + | |✗ ||✓ ||✗ ||✗ ||Golfers |
|- | |- | ||
− | | ✗ || ✗ || ✓ || Varrio Los Aztecas | + | |✗ ||✗ ||✓ ||✗ ||Varrio Los Aztecas |
|- | |- | ||
− | | | + | |✗ ||✗ ||✗ ||✓ ||Forellis |
|- | |- | ||
− | | rowspan="2" {{a|c}} | | + | |rowspan="2" {{a|c}} |15 ||✓ ||✓ ||✓ ||✗ ||rowspan="2" |GANG9 ||''unused'' |
|- | |- | ||
− | | ✗ || ✗ || &# | + | |✗ ||✗ ||✗ ||✓ ||Sindaccos |
|- | |- | ||
− | | rowspan="2" {{a|c}} | | + | |rowspan="2" {{a|c}} |16 ||✓ ||✓ ||✗ ||✓ ||EMERGENCY ||Ambulance and emergency personnel |
|- | |- | ||
− | | ✗ || ✗ || ✓ || | + | |✗ ||✗ ||✓ ||✗ ||GANG10 ||''unused'' |
|- | |- | ||
− | | rowspan="2" {{a|c}} | | + | |rowspan="2" {{a|c}} |17 ||✓ ||✓ ||✗ ||✓ ||FIREMAN ||Firefighters |
|- | |- | ||
− | | ✗ || ✗ || ✓ || | + | |✗ ||✗ ||✓ ||✗ ||DEALER ||Drug dealing pedestrians |
|- | |- | ||
− | | rowspan="2" {{a|c}} | | + | |rowspan="2" {{a|c}} |18 ||✓ ||✓ ||✗ ||✓ ||CRIMINAL ||Criminal pedestrians |
|- | |- | ||
− | | ✗ || ✗ || ✓ || | + | |✗ ||✗ ||✓ ||✗ ||EMERGENCY ||Ambulance and emergency personnel |
|- | |- | ||
− | | rowspan="2" {{a|c}} | | + | |rowspan="2" {{a|c}} |19 ||✓ ||✓ ||✗ ||✓ ||- ||Additional pedestrians |
|- | |- | ||
− | | ✗ || ✗ || ✓ || | + | |✗ ||✗ ||✓ ||✗ ||FIREMAN ||Firefighters |
|- | |- | ||
− | | rowspan="2" {{a|c}} | | + | |rowspan="2" {{a|c}} |20 ||✓ ||✓ ||✗ ||✓ ||PROSTITUTE ||Prostitutes |
|- | |- | ||
− | | ✗ || ✗ || ✓ || | + | |✗ ||✗ ||✓ ||✗ ||CRIMINAL ||Criminal pedestrians |
|- | |- | ||
− | | {{a|c}} | | + | |rowspan="2" {{a|c}} |21 ||✓ ||✓ ||✗ ||✓ ||SPECIAL ||Reserved for [[023C|special characters]] |
|- | |- | ||
− | | | + | |✗ ||✗ ||✓ ||✗ ||BUM ||- |
|- | |- | ||
− | | {{a|c}} | | + | |{{a|c}} |22 ||✗ ||✗ ||✓ ||✗ ||SPECIAL ||Additional pedestrians |
|- | |- | ||
− | | {{a|c}} | | + | |{{a|c}} |23 ||✗ ||✗ ||✓ ||✗ ||PROSTITUTE ||Prostitutes |
|- | |- | ||
− | | {{a|c}} | | + | |{{a|c}} |24 ||✗ ||✗ ||✓ ||✗ ||MISSION1 ||Mission slot 1 |
|- | |- | ||
− | | {{a|c}} | | + | |{{a|c}} |25 ||✗ ||✗ ||✓ ||✗ ||MISSION2 ||Mission slot 2 |
|- | |- | ||
− | | {{a|c}} | | + | |{{a|c}} |26 ||✗ ||✗ ||✓ ||✗ ||MISSION3 ||Mission slot 3 |
|- | |- | ||
− | | {{a|c}} | | + | |{{a|c}} |27 ||✗ ||✗ ||✓ ||✗ ||MISSION4 ||Mission slot 4 |
|- | |- | ||
− | | {{a|c}} | | + | |{{a|c}} |28 ||✗ ||✗ ||✓ ||✗ ||MISSION5 ||Mission slot 5 |
|- | |- | ||
− | | {{a|c}} | 31 || ✗ || ✗ || ✓ || MISSION8 || Mission slot 8 | + | |{{a|c}} |29 ||✗ ||✗ ||✓ ||✗ ||MISSION6 ||Mission slot 6 |
+ | |- | ||
+ | |{{a|c}} |30 ||✗ ||✗ ||✓ ||✗ ||MISSION7 ||Mission slot 7 | ||
+ | |- | ||
+ | |{{a|c}} |31 ||✗ ||✗ ||✓ ||✗ ||MISSION8 ||Mission slot 8 | ||
|} | |} | ||
Line 220: | Line 224: | ||
!Description | !Description | ||
|- | |- | ||
− | |1||Respect||A relationship group respects another one. | + | |1||Respect/Like||A relationship group respects another one. |
|- | |- | ||
− | |2|| | + | |2||Ignore||A relationship group will not attack another one. |
|- | |- | ||
− | |3|| | + | |3||Dislike||A relationship group will react more aggressive towards another one. |
|- | |- | ||
− | |4|| | + | |4||Attack when hurt||They'll stay neutral, but will get triggered on the opponent pedtype when they're hit by anyone or anything. Similar to Dislike, just without hassles. |
|- | |- | ||
|5||Hate||A relationship group will attack another one. | |5||Hate||A relationship group will attack another one. | ||
Line 237: | Line 241: | ||
* [[PEDS|Pedestrian definition]] | * [[PEDS|Pedestrian definition]] | ||
− | {{N|4|SA|VC}} | + | {{N|4|SA|VC|3}} |
− | + | [[Category:Mission Script]] |
Latest revision as of 13:44, 6 November 2022
Article issues | |||
---|---|---|---|
|
Pedestrian types are groups that define the relationship between different pedestrians. 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).
Contents
Pedestrian types
GTA III – Liberty City Stories
Number | Supported games |
Name | Description | |||
---|---|---|---|---|---|---|
0 | ✓ | ✓ | ✓ | ✓ | PLAYER1 | Primary player definition |
1 | ✓ | ✓ | ✓ | ✓ | PLAYER2 | Secondary player definition |
2 | ✓ | ✓ | ✗ | ✓ | PLAYER3 | Tertiary player definition |
✗ | ✗ | ✓ | ✗ | PLAYER_NETWORK | ||
3 | ✓ | ✓ | ✗ | ✓ | PLAYER4 | Quarternary player definition |
✗ | ✗ | ✓ | ✗ | PLAYER_UNUSED | ||
4 | ✓ | ✓ | ✓ | ✓ | CIVMALE | Male civilian pedestrians |
5 | ✓ | ✓ | ✓ | ✓ | CIVFEMALE | Female civilian pedestrians |
6 | ✓ | ✓ | ✓ | ✓ | COP | Policemen |
7 | ✓ | ✗ | ✗ | ✓ | GANG1 | Leones |
✗ | ✓ | ✗ | ✗ | Cubans | ||
✗ | ✗ | ✓ | ✗ | Ballas | ||
8 | ✓ | ✗ | ✗ | ✓ | GANG2 | Triads |
✗ | ✓ | ✗ | ✗ | Haitians | ||
✗ | ✗ | ✓ | ✗ | Grove Street Families | ||
9 | ✓ | ✗ | ✗ | ✓ | GANG3 | Diablos |
✗ | ✓ | ✗ | ✗ | Streetwannabe's | ||
✗ | ✗ | ✓ | ✗ | Los Santos Vagos | ||
10 | ✓ | ✗ | ✗ | ✓ | GANG4 | Yakuza |
✗ | ✓ | ✗ | ✗ | Diaz' gang | ||
✗ | ✗ | ✓ | ✗ | San Fierro Rifa | ||
11 | ✓ | ✗ | ✗ | ✓ | GANG5 | Yardies |
✗ | ✓ | ✗ | ✗ | Security guards | ||
✗ | ✗ | ✓ | ✗ | Da Nang Boys | ||
12 | ✓ | ✗ | ✗ | ✓ | GANG6 | Colombians |
✗ | ✓ | ✗ | ✗ | Biker gang | ||
✗ | ✗ | ✓ | ✗ | Mafia | ||
13 | ✓ | ✗ | ✗ | ✓ | GANG7 | Hoods |
✗ | ✓ | ✗ | ✗ | Vercetti gang | ||
✗ | ✗ | ✓ | ✗ | Mountain Cloud Triads | ||
14 | ✓ | ✗ | ✗ | ✗ | GANG8 | unused |
✗ | ✓ | ✗ | ✗ | Golfers | ||
✗ | ✗ | ✓ | ✗ | Varrio Los Aztecas | ||
✗ | ✗ | ✗ | ✓ | Forellis | ||
15 | ✓ | ✓ | ✓ | ✗ | GANG9 | unused |
✗ | ✗ | ✗ | ✓ | Sindaccos | ||
16 | ✓ | ✓ | ✗ | ✓ | EMERGENCY | Ambulance and emergency personnel |
✗ | ✗ | ✓ | ✗ | GANG10 | unused | |
17 | ✓ | ✓ | ✗ | ✓ | FIREMAN | Firefighters |
✗ | ✗ | ✓ | ✗ | DEALER | Drug dealing pedestrians | |
18 | ✓ | ✓ | ✗ | ✓ | CRIMINAL | Criminal pedestrians |
✗ | ✗ | ✓ | ✗ | EMERGENCY | Ambulance and emergency personnel | |
19 | ✓ | ✓ | ✗ | ✓ | - | Additional pedestrians |
✗ | ✗ | ✓ | ✗ | FIREMAN | Firefighters | |
20 | ✓ | ✓ | ✗ | ✓ | PROSTITUTE | Prostitutes |
✗ | ✗ | ✓ | ✗ | CRIMINAL | Criminal pedestrians | |
21 | ✓ | ✓ | ✗ | ✓ | SPECIAL | Reserved for special characters |
✗ | ✗ | ✓ | ✗ | BUM | - | |
22 | ✗ | ✗ | ✓ | ✗ | SPECIAL | Additional pedestrians |
23 | ✗ | ✗ | ✓ | ✗ | PROSTITUTE | Prostitutes |
24 | ✗ | ✗ | ✓ | ✗ | MISSION1 | Mission slot 1 |
25 | ✗ | ✗ | ✓ | ✗ | MISSION2 | Mission slot 2 |
26 | ✗ | ✗ | ✓ | ✗ | MISSION3 | Mission slot 3 |
27 | ✗ | ✗ | ✓ | ✗ | MISSION4 | Mission slot 4 |
28 | ✗ | ✗ | ✓ | ✗ | MISSION5 | Mission slot 5 |
29 | ✗ | ✗ | ✓ | ✗ | MISSION6 | Mission slot 6 |
30 | ✗ | ✗ | ✓ | ✗ | MISSION7 | Mission slot 7 |
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:
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
Grand Theft Auto IV | |
---|---|
File Formats | .dat • .gxt • .ide • .img • .ipl • .nod • .sco • .rpf • .rrr • .wad • .wbd/.wbn • .wdd • .wdr • .wft • .whm • .wpl • .wtd |
Documentation | Audio • Bink Video • Cryptography • Cutscenes • GXT Text • Image listing • Keycodes • Map Listing • Native functions • Paths • Radar Blips • Radio Stations • Saves • Scenarios • VTable • Weapons |
Tools | ASI Loader • ENBSeries • G-Texture • GIMS IV • Ingame WPL Editor • IV Needle • OpenIV • SparkIV • XLiveLess • WPL Manager • X Mod Installer Alice • C++ Script Hook • .NET Script Hook • Scocl |
Tutorials | Importing Textures with OpenIV • Importing Textures with SparkIV |
Modifications | Gostown IV • Four Multiplayer • IV Multiplayer • CitizenMP:IV Reloaded |
Useful links | Community portal • Discussion forums • Modding forums • Mods on GTAGarage.com |