PEDS: Difference between revisions
No edit summary |
(contributions from myself, Aschratt, and Solom) |
||
Line 1: | Line 1: | ||
{{Research}} | {{Research}} | ||
{{IdeSection | {{IdeSection | ||
| game = | |game = {{Icon-square|t}} {{Icon-square|4}} | ||
| description = Used to define characters and pedestrians | |description = Used to define characters and pedestrians | ||
}} | }} | ||
'''PEDS''' is a section in the [[ | '''PEDS''' is a section in the item definition file in [[Grand Theft Auto III]], [[Grand Theft Auto: Vice City]], [[Grand Theft Auto: San Andreas]], and [[Grand Theft Auto IV]]. It is used to define characters and pedestrians and some of their properties. | ||
==GTA III== | == Format == | ||
This section is mainly used in the <code>default.ide</code> file. | === GTA III === | ||
This section is mainly used in the <code>\data\default.ide</code> file. | |||
<pre> | |||
peds | |||
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask | |||
end | |||
</pre> | |||
{|{{ | {|class="wikitable center-col-1 center-col-2" style="width: 100%;" | ||
! | !style="width: 3em;" |{{Icon-square|3}} | ||
!style="width: 12em;" |Identifier | |||
!style="width: 6em;" |Type | |||
!Description | !Description | ||
|- | |- | ||
| | |A ||Id ||integer ||Unique model ID | ||
|- | |- | ||
| | |B ||ModelName ||string ||Name of the .dff model file, without extension | ||
|- | |- | ||
| | |C ||TxdName ||string ||Name of the .txd texture dictionary, without extension | ||
|- | |- | ||
| | |D ||Default pedtype ||string ||The default ped type of the ped | ||
|- | |- | ||
| | |E ||Behavior ||string ||The behavior of the ped as defined in the pedstats.dat file | ||
|- | |- | ||
| | |F ||AnimGroup ||string ||The animation group for movements of the ped ([[#Animation groups|see below]]) | ||
|- | |- | ||
| | |G ||Cars can drive mask ||hex ||The [[CARS (IDE Section)|classes of vehicle]] that the ped will drive in flag field representation as hex value ([[#Car groups|see below]]). | ||
|} | |} | ||
=== | ==== Car groups ==== | ||
{|class="wikitable" | |||
!rowspan="2" |Class ||colspan="2" |Flag | |||
|- | |||
!Hex ||Binary | |||
|- | |||
|''none'' ||0 ||<code>0000 0000</code> | |||
{| | |||
! | |||
|- | |- | ||
| 1 || | |poorfamily ||1 ||<code>0000 0001</code> | ||
|- | |- | ||
| 2 || | |richfamily ||2 ||<code>0000 0010</code> | ||
|- | |- | ||
| 4 || | |executive ||4 ||<code>0000 0100</code> | ||
|- | |- | ||
| 8 || | |worker ||8 ||<code>0000 1000</code> | ||
|- | |- | ||
| | |special ||10 ||<code>0001 0000</code> | ||
|- | |- | ||
| | |big ||20 ||<code>0010 0000</code> | ||
|- | |- | ||
| | |taxi ||40 ||<code>0100 0000</code> | ||
|} | |} | ||
==Vice City== | === GTA Vice City === | ||
This section is mainly used in the <code>default.ide</code> file. | This section is mainly used in the <code>\data\default.ide</code> file. | ||
<pre> | |||
peds | |||
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask, Animfile, Radio1, Radio2 | |||
end | |||
</pre> | |||
{|{{ | {|class="wikitable center-col-1 center-col-2" style="width: 100%;" | ||
! | !style="width: 3em;" |{{Icon-square|VC}} | ||
!style="width: 12em;" |Identifier | |||
!style="width: 6em;" |Type | |||
!Description | !Description | ||
|- | |- | ||
| | |A ||Id ||integer ||Unique model ID | ||
|- | |||
|B ||ModelName ||string ||Name of the .dff model file, without extension | |||
|- | |- | ||
| | |C ||TxdName ||string ||Name of the .txd texture dictionary, without extension | ||
|- | |- | ||
| | |D ||Default pedtype ||string ||The default ped type of the ped | ||
|- | |- | ||
| | |E ||Behavior ||string ||The behavior of the ped as defined in the pedstats.dat file | ||
|- | |- | ||
| | |F ||AnimGroup ||string ||The animation group for movements of the ped ([[#Animation groups|see below]]) | ||
|- | |- | ||
| | |G ||Cars can drive mask ||hex ||The [[CARS (IDE Section)|classes of vehicle]] that the ped will drive in flag field representation as hex value ([[#Car groups 2|see below]]). | ||
|- | |- | ||
| | |H ||Animfile ||string ||The animation file for secondary animations (like sunbathing) | ||
|- | |- | ||
| | |I,J ||Radio1, Radio2 ||integer[2] ||Ped's preferred radio station, only works if the ped is driving a vehicle with a working radio ([[#Radio stations|see below]]) | ||
|} | |} | ||
=== | ==== Car groups ==== | ||
{|class="wikitable" | |||
!rowspan="2" |Class ||colspan="2" |Flag | |||
=== | |||
{| | |||
| | |||
| 2 | | |||
|- | |- | ||
| | !Hex ||Binary | ||
|- | |- | ||
| | |''none'' ||0 ||<code>0000 0000 0000</code> | ||
|- | |- | ||
| | |normal ||1 ||<code>0000 0000 0001</code> | ||
|- | |- | ||
| | |poorfamily ||2 ||<code>0000 0000 0010</code> | ||
|- | |- | ||
| | |richfamily ||4 ||<code>0000 0000 0100</code> | ||
|- | |- | ||
| | |executive ||8 ||<code>0000 0000 1000</code> | ||
|- | |- | ||
| | |worker ||10 ||<code>0000 0001 0000</code> | ||
|- | |- | ||
| | |big ||20 ||<code>0000 0010 0000</code> | ||
|- | |- | ||
| | |taxi ||40 ||<code>0000 0100 0000</code> | ||
|- | |- | ||
| | |moped ||80 ||<code>0000 1000 0000</code> | ||
|- | |- | ||
| | |motorbike ||100 ||<code>0001 0000 0000</code> | ||
|- | |- | ||
| | |leisureboat ||200 ||<code>0010 0000 0000</code> | ||
|- | |- | ||
| | |workerboat ||400 ||<code>0100 0000 0000</code> | ||
|} | |} | ||
==San Andreas== | === GTA San Andreas === | ||
This section is mainly used in the <code>peds.ide</code> file. | This section is mainly used in the <code>\data\peds.ide</code> file. | ||
<pre> | |||
peds | |||
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask, Flags, Animfile, Radio1, Radio2, VoiceArchive, Voice1, Voice2 | |||
end | |||
</pre> | |||
{|{{ | {|class="wikitable center-col-1 center-col-2" style="width: 100%;" | ||
! | !style="width: 3em;" |{{Icon-square|SA}} | ||
!style="width: 12em;" |Identifier | |||
!style="width: 6em;" |Type | |||
!Description | !Description | ||
|- | |- | ||
| | |A ||Id ||integer ||Unique model ID | ||
|- | |||
|B ||ModelName ||string ||Name of the .dff model file, without extension | |||
|- | |- | ||
| | |C ||TxdName ||string ||Name of the .txd texture dictionary, without extension | ||
|- | |- | ||
| | |D ||Default pedtype ||string ||The default ped type of the ped | ||
|- | |- | ||
| | |E ||Behavior ||string ||The behavior of the ped as defined in the pedstats.dat file | ||
|- | |- | ||
| | |F ||AnimGroup ||string ||The animation group for movements of the ped ([[#Animation groups|see below]]) | ||
|- | |- | ||
| | |G ||Cars can drive mask ||hex ||The [[CARS (IDE Section)#Vehicle Classes|class of vehicle]] that the ped will drive as hex value. | ||
|- | |- | ||
| | |H ||Flags ||hex || | ||
|- | |- | ||
| | |I ||Animfile ||string ||The animation file for secondary animations (like sunbathing) | ||
|- | |- | ||
| | |J,K ||Radio1, Radio2 ||integer[2] ||Ped's preferred radio station, only works if the ped is driving a vehicle with a working radio ([[#Radio stations|see below]]) | ||
|- | |- | ||
| | |L ||VoiceArchive ||string ||The [[Audio stream|sound file]] for the ped's voices | ||
|- | |- | ||
| | |M,N ||Voice1, Voice2 ||string[2] ||The ped's voices (its dialogue), doesn't include screams and pains | ||
|} | |} | ||
=== | === GTA IV === | ||
This is | This section is mainly used in the <code>\common\data\peds.ide</code> file. | ||
{| | |||
! | {|class="wikitable center-col-1 center-col-2" style="width: 100%;" | ||
!style="width: 3em;" |{{Icon-square|4}} | |||
!style="width: 12em;" |Identifier | |||
!style="width: 6em;" |Type | |||
!Description | |||
|- | |||
|A ||Model ||string ||Unique model name without extension, located in <code>\pc\models\cdimages\componentpeds.img</code> | |||
|- | |- | ||
| | |B ||Props ||string ||Unique prop (like helmets, glasses, hats) model name without extension, located in <code>\pc\models\cdimages\componentpeds.img</code>, use <code>null</code> for unavailable props | ||
|- | |- | ||
| | |C ||Pedtype ||string ||The default ped type of the ped | ||
|- | |- | ||
| | |D ||Animgroup ||string || | ||
|- | |- | ||
| | |E ||Gesturegroup ||string ||<code>GESTURES@MALE</code> or <code>GESTURES@FEMALE</code> | ||
|- | |- | ||
| | |F ||Gesturephonegroup ||string ||<code>GESTURES@M_PHONE</code> or <code>GESTURES@F_PHONE</code> | ||
|- | |- | ||
| | |G ||Facialgroup ||string ||Located in <code>anim.img</code>, supported files begin with <code>facials@</code> | ||
|- | |- | ||
| | |H ||Visemegroup ||string ||Located in <code>anim.img</code>, supported files begin with <code>visemes@</code> | ||
|- | |- | ||
| | |I ||Flags ||hex ||always 0 | ||
|- | |- | ||
| | |J ||Animfile ||string ||The animation file without extension for movements of the ped, located in <code>anim.img</code>, supported files begin with <code>move_{{hint|x|m/f/gng}}@</code> | ||
|- | |- | ||
| | |K ||Blendshapefile ||string ||Used for cutscene models, otherwise <code>null</code> | ||
|- | |- | ||
| | |L,M ||Radio1, Radio2 ||integer[2] ||Ped's preferred radio station, only works if the ped is driving a vehicle with a working radio. Value '-1' - random radio stations, which listening a ped in the car. | ||
|- | |- | ||
| | |N ||Audiotype ||string ||always <code>PED_TYPE_PLAYER</code> | ||
|- | |- | ||
| | |O ||Firstvoice ||string ||The audio bank for the ped's voice | ||
|- | |- | ||
| | |P ||Lastvoice ||string ||always <code>VOICE_PLY_CR</code> | ||
|} | |} | ||
===Radio | === Animation groups === | ||
These are the animation groups that are used in the game (there are more player-specific). The definitions of these groups hardcoded. Most of these animations are located in the <code>ped.ifp</code> file. | |||
* busywoman | |||
* fatman | |||
* fatwoman | |||
* gang1 | |||
* gang2 | |||
* man | |||
* oldfatman | |||
* oldman | |||
* oldwoman | |||
* player | |||
* sexywoman | |||
* shopping | |||
* shuffle | |||
* woman | |||
Introduced in Vice City: | |||
* jogger | |||
* jogwoman | |||
* skate (Note: column H requires "skate" when using this else the game will crash upon spawning the ped) | |||
Introduced in San Andreas: | |||
* pro | |||
* swat | |||
=== Radio stations === | |||
This is a list of available radio stations. | This is a list of available radio stations. | ||
{| | {|class="wikitable" | ||
!rowspan="2" |Number | |||
!colspan="2" |Station | |||
|- | |- | ||
| | !{{Icon-square|VC}} ||{{Icon-square|SA}} | ||
|- | |- | ||
| | |0 ||Wildstyle ||Playback FM | ||
|- | |- | ||
| | |1 ||Flash FM ||K Rose | ||
|- | |- | ||
| | |2 ||KChat ||WCTR | ||
|- | |- | ||
| | |3 ||Fever 105 ||K-DST | ||
|- | |- | ||
| | |4 ||VRock ||Bounce FM | ||
|- | |- | ||
| | |5 ||VCPR ||SF-UR | ||
|- | |- | ||
| | |6 ||Espantoso ||Radio Los Santos | ||
|- | |- | ||
| | |7 ||Emotion 98.3 ||Radio X | ||
|- | |- | ||
| | |8 ||Wave 103 ||CSR 103.9 | ||
|- | |- | ||
| | |9 ||Default vehicle's station ||K-Jah West | ||
|- | |- | ||
| | |10 ||Radio off ||Master Sounds 98.3 | ||
|- | |- | ||
| 12 || Radio Off | |11 ||- ||User Track Player | ||
|- | |||
|12 ||- ||Radio Off | |||
|} | |} | ||
== Statistics == | |||
Total number of PEDS entries in: | |||
:GTA III: 83 (max 90) | |||
:GTA Vice City: 126 (max 130) | |||
:GTA San Andreas: 276 | |||
{{fdl}} | {{fdl}} |
Revision as of 17:41, 30 June 2018
This page requires more research. |
Supported games: | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Short description: | Used to define characters and pedestrians | ||||||||||||||
IDE Sections:
|
PEDS is a section in the item definition file in Grand Theft Auto III, Grand Theft Auto: Vice City, Grand Theft Auto: San Andreas, and Grand Theft Auto IV. It is used to define characters and pedestrians and some of their properties.
Format
GTA III
This section is mainly used in the \data\default.ide
file.
peds Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask end
Identifier | Type | Description | |
---|---|---|---|
A | Id | integer | Unique model ID |
B | ModelName | string | Name of the .dff model file, without extension |
C | TxdName | string | Name of the .txd texture dictionary, without extension |
D | Default pedtype | string | The default ped type of the ped |
E | Behavior | string | The behavior of the ped as defined in the pedstats.dat file |
F | AnimGroup | string | The animation group for movements of the ped (see below) |
G | Cars can drive mask | hex | The classes of vehicle that the ped will drive in flag field representation as hex value (see below). |
Car groups
Class | Flag | |
---|---|---|
Hex | Binary | |
none | 0 | 0000 0000
|
poorfamily | 1 | 0000 0001
|
richfamily | 2 | 0000 0010
|
executive | 4 | 0000 0100
|
worker | 8 | 0000 1000
|
special | 10 | 0001 0000
|
big | 20 | 0010 0000
|
taxi | 40 | 0100 0000
|
GTA Vice City
This section is mainly used in the \data\default.ide
file.
peds Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask, Animfile, Radio1, Radio2 end
Identifier | Type | Description | |
---|---|---|---|
A | Id | integer | Unique model ID |
B | ModelName | string | Name of the .dff model file, without extension |
C | TxdName | string | Name of the .txd texture dictionary, without extension |
D | Default pedtype | string | The default ped type of the ped |
E | Behavior | string | The behavior of the ped as defined in the pedstats.dat file |
F | AnimGroup | string | The animation group for movements of the ped (see below) |
G | Cars can drive mask | hex | The classes of vehicle that the ped will drive in flag field representation as hex value (see below). |
H | Animfile | string | The animation file for secondary animations (like sunbathing) |
I,J | Radio1, Radio2 | integer[2] | Ped's preferred radio station, only works if the ped is driving a vehicle with a working radio (see below) |
Car groups
Class | Flag | |
---|---|---|
Hex | Binary | |
none | 0 | 0000 0000 0000
|
normal | 1 | 0000 0000 0001
|
poorfamily | 2 | 0000 0000 0010
|
richfamily | 4 | 0000 0000 0100
|
executive | 8 | 0000 0000 1000
|
worker | 10 | 0000 0001 0000
|
big | 20 | 0000 0010 0000
|
taxi | 40 | 0000 0100 0000
|
moped | 80 | 0000 1000 0000
|
motorbike | 100 | 0001 0000 0000
|
leisureboat | 200 | 0010 0000 0000
|
workerboat | 400 | 0100 0000 0000
|
GTA San Andreas
This section is mainly used in the \data\peds.ide
file.
peds Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask, Flags, Animfile, Radio1, Radio2, VoiceArchive, Voice1, Voice2 end
Identifier | Type | Description | |
---|---|---|---|
A | Id | integer | Unique model ID |
B | ModelName | string | Name of the .dff model file, without extension |
C | TxdName | string | Name of the .txd texture dictionary, without extension |
D | Default pedtype | string | The default ped type of the ped |
E | Behavior | string | The behavior of the ped as defined in the pedstats.dat file |
F | AnimGroup | string | The animation group for movements of the ped (see below) |
G | Cars can drive mask | hex | The class of vehicle that the ped will drive as hex value. |
H | Flags | hex | |
I | Animfile | string | The animation file for secondary animations (like sunbathing) |
J,K | Radio1, Radio2 | integer[2] | Ped's preferred radio station, only works if the ped is driving a vehicle with a working radio (see below) |
L | VoiceArchive | string | The sound file for the ped's voices |
M,N | Voice1, Voice2 | string[2] | The ped's voices (its dialogue), doesn't include screams and pains |
GTA IV
This section is mainly used in the \common\data\peds.ide
file.
Animation groups
These are the animation groups that are used in the game (there are more player-specific). The definitions of these groups hardcoded. Most of these animations are located in the ped.ifp
file.
- busywoman
- fatman
- fatwoman
- gang1
- gang2
- man
- oldfatman
- oldman
- oldwoman
- player
- sexywoman
- shopping
- shuffle
- woman
Introduced in Vice City:
- jogger
- jogwoman
- skate (Note: column H requires "skate" when using this else the game will crash upon spawning the ped)
Introduced in San Andreas:
- pro
- swat
Radio stations
This is a list of available radio stations.
Statistics
Total number of PEDS entries in:
- GTA III: 83 (max 90)
- GTA Vice City: 126 (max 130)
- GTA San Andreas: 276
This page is licensed under the GNU Free Documentation Licence. This page has a separate license to the CC-BY-SA that applies to most of Grand Theft Wiki.
The full text of the GNU FDL v1.2 is here. Click the "History" button to see the full list of authors. See Grand Theft Wiki:Copyright for more detail on our copyright policy.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. See Grand Theft Wiki:Copyright for more information. |
Technical | IMG | DFF | TXD | IDE | GXT | Handling | Carcols | Dynamic Object |
Mods | Hot Coffee Modification | Create a Mission |
Tools | GGMM |
Game Files | Animviewer.dat/GTAVC | Bink | Default.dat/GTAVC | Chassis Vlo | Fistfite.dat/GTAVC | Flight.dat | Gta vc.dat | Object.dat/GTAVC | OpenGTA2 |Particle.cfg/GTAVC | Particle (SA) | Paths | Ped.dat/GTAVC | Pedgrp.dat/GTAVC | Pedstats.dat/GTAVC | Scenarios.dat | Scripted Path | Surface.dat/GTAVC | Surfaud.dat | TimeCyc Definition | Timecyc.dat/GTAVC | Train.dat/GTAVC | Train.dat/GTAVC | Train.dat/GTAVC | Train2.dat/GTAVC | WAD | WBD-WBN | WPFL | Water.dat | Water.dat/GTAVC | Weapon.dat/GTAVC Weaponinfo.xml |
Multiplayer | Multi Theft Auto, Vice City Multiplayer, San Andreas Multiplayer |