PEDS: Difference between revisions

No edit summary
(contributions from myself, Aschratt, and Solom)
Line 1: Line 1:
{{Research}}
{{Research}}
{{IdeSection
{{IdeSection
| game        = [[Grand Theft Auto III|GTA III]], [[Grand Theft Auto: Vice City|GTA VC]], [[Grand Theft Auto: San Andreas|GTA SA]], [[Grand Theft Auto IV|GTA IV]]
|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 [[IDE|item definition]] file. It is used to define characters and pedestrians and some of their properties.
'''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 ===
===Format===
This section is mainly used in the <code>\data\default.ide</code> file.
ID, ModelName, TxdName, Pedtype, Behavior, Animation, VehClass
<pre>
peds
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask
end
</pre>


{|{{subst:Prettytable}} width="100%"
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!width="250px"|Identifier
!style="width: 3em;" |{{Icon-square|3}}
!style="width: 12em;" |Identifier
!style="width: 6em;" |Type
!Description
!Description
|-
|-
|<center>ID</center>||Unique model ID
|A ||Id ||integer ||Unique model ID
|-
|-
|<center>ModelName</center>||Name of the .dff [[DFF|model file]], without extension
|B ||ModelName ||string ||Name of the .dff model file, without extension
|-
|-
|<center>TxdName</center>||Name of the .txd [[TXD|texture dictionary]], without extension
|C ||TxdName ||string ||Name of the .txd texture dictionary, without extension
|-
|-
|<center>Pedtype</center>||The default [[ped type]] of the ped
|D ||Default pedtype ||string ||The default ped type of the ped
|-
|-
|<center>Behavior</center>||The behavior of the ped as defined in the pedstats.dat file
|E ||Behavior ||string ||The behavior of the ped as defined in the pedstats.dat file
|-
|-
|<center>Animation</center>||The animation file being used on the ped for movements ([[PEDS#Animations|see below]])
|F ||AnimGroup ||string ||The animation group for movements of the ped ([[#Animation groups|see below]])
|-
|-
|<center>VehClass</center>||The class of vehicle that the ped will drive ([[PEDS#Vehicle Class|see below]])<br>The value is in hex! It needs to be converted into decimal and back
|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]]).
|}
|}


===Animations===
==== Car groups ====
These are the available animations which are located in the ped.ifp file.
{|class="wikitable"
*busywoman
!rowspan="2" |Class ||colspan="2" |Flag
*fatman
|-
*fatwoman
!Hex ||Binary
*gang1
|-
*gang2
|''none'' ||0 ||<code>0000 0000</code>
*man
*oldfatman
*oldman
*oldwoman
*player
*sexywoman
*shopping
*shuffle
*woman
 
===Vehicle Class===
This is a list of vehicle class in decimal. Add them up to allow more than one class to be used. Then convert it into hex for it to be usable. The class of a vehicle is defined in the [[CARS_(IDE_Section)#Class|CARS]] section of the IDE file.
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;"
! Decimal
! Class
|-
|-
| 1 || poorfamily
|poorfamily ||1 ||<code>0000 0001</code>
|-
|-
| 2 || richfamily
|richfamily ||2 ||<code>0000 0010</code>
|-
|-
| 4 || executive
|executive ||4 ||<code>0000 0100</code>
|-
|-
| 8 || worker
|worker ||8 ||<code>0000 1000</code>
|-
|-
| 16 || special
|special ||10 ||<code>0001 0000</code>
|-
|-
| 32 || big
|big ||20 ||<code>0010 0000</code>
|-
|-
| 64 || taxi
|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.
===Format===
<pre>
ID, ModelName, TxdName, Pedtype, Behavior, Animation, VehClass, UnknownAnim, Radio1, Radio2
peds
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask, Animfile, Radio1, Radio2
end
</pre>


{|{{subst:Prettytable}} width="100%"
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!width="250px"|Identifier
!style="width: 3em;" |{{Icon-square|VC}}
!style="width: 12em;" |Identifier
!style="width: 6em;" |Type
!Description
!Description
|-
|-
|<center>ID</center>||Unique model ID
|A ||Id ||integer ||Unique model ID
|-
|B ||ModelName ||string ||Name of the .dff model file, without extension
|-
|-
|<center>ModelName</center>||Name of the .dff [[DFF|model file]], without extension
|C ||TxdName ||string ||Name of the .txd texture dictionary, without extension
|-
|-
|<center>TxdName</center>||Name of the .txd [[TXD|texture dictionary]], without extension
|D ||Default pedtype ||string ||The default ped type of the ped
|-
|-
|<center>Pedtype</center>||The default [[ped type]] of the ped
|E ||Behavior ||string ||The behavior of the ped as defined in the pedstats.dat file
|-
|-
|<center>Behavior</center>||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]])
|-
|-
|<center>Animation</center>||The animation file being used on the ped for movements ([[PEDS#Animations 2|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]]).
|-
|-
|<center>VehClass</center>||The class of vehicle that the ped will drive ([[PEDS#Vehicle Class 2|see below]])<br>The value is in hex! It needs to be converted into decimal and back
|H ||Animfile ||string ||The animation file for secondary animations (like sunbathing)
|-
|-
|<center>Radio1, Radio2</center>||Ped's preferred radio station, only works if the ped is driving a vehicle with a working radio
|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]])
|}
|}


===Animations===
==== Car groups ====
These are the available animations which are located in the ped.ifp file.
{|class="wikitable"
*busywoman
!rowspan="2" |Class ||colspan="2" |Flag
*fatman
*fatwoman
*gang1
*gang2
*jogger
*jogwoman
*man
*oldfatman
*oldman
*oldwoman
*player
*sexywoman
*shopping
*shuffle
*skate
*woman
 
===Vehicle Class===
This is a list of vehicle class in decimal. Add them up to allow more than one class to be used. Then convert it into hex for it to be usable. The class of a vehicle is defined in the [[CARS_(IDE_Section)#Class_2|CARS]] section of the IDE file.
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;"
! Decimal
! Class
|-
| 1 || normal
|-
| 2 || poorfamily
|-
| 4 || richfamily
|-
| 8 || executive
|-
| 16 || worker
|-
| 32 || big
|-
| 64 || taxi
|-
| 128 || moped
|-
|-
| 256 || motorbike
!Hex ||Binary
|-
|-
| 512 || leisureboat
|''none'' ||0 ||<code>0000 0000 0000</code>
|-
| 1024 || workerboat
|}
 
===Radio Stations===
This is a list of available radio stations.
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;"
! Number
! Station
|-
|-
| 0 || Wildstyle
|normal ||1 ||<code>0000 0000 0001</code>
|-
|-
| 1 || Flash FM
|poorfamily ||2 ||<code>0000 0000 0010</code>
|-
|-
| 2 || KChat
|richfamily ||4 ||<code>0000 0000 0100</code>
|-
|-
| 3 || Fever 105
|executive ||8 ||<code>0000 0000 1000</code>
|-
|-
| 4 || VRock
|worker ||10 ||<code>0000 0001 0000</code>
|-
|-
| 5 || VCPR
|big ||20 ||<code>0000 0010 0000</code>
|-
|-
| 6 || Espantoso
|taxi ||40 ||<code>0000 0100 0000</code>
|-
|-
| 7 || Emotion 98.3
|moped ||80 ||<code>0000 1000 0000</code>
|-
|-
| 8 || Wave 103
|motorbike ||100 ||<code>0001 0000 0000</code>
|-
|-
| 9 || Default vehicle's station
|leisureboat ||200 ||<code>0010 0000 0000</code>
|-
|-
| 10 || Radio off
|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.
===Format===
<pre>
ID, ModelName, TxdName, Threat, Behavior, Animation, VehClass, Drugs, UnknownAnim, Radio1, Radio2, VoiceArchive, Voice1, Voice2
peds
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask, Flags, Animfile, Radio1, Radio2, VoiceArchive, Voice1, Voice2
end
</pre>


{|{{subst:Prettytable}} width="100%"
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!width="250px"|Identifier
!style="width: 3em;" |{{Icon-square|SA}}
!style="width: 12em;" |Identifier
!style="width: 6em;" |Type
!Description
!Description
|-
|-
|<center>ID</center>||Unique model ID
|A ||Id ||integer ||Unique model ID
|-
|B ||ModelName ||string ||Name of the .dff model file, without extension
|-
|-
|<center>ModelName</center>||Name of the .dff [[DFF|model file]], without extension
|C ||TxdName ||string ||Name of the .txd texture dictionary, without extension
|-
|-
|<center>TxdName</center>||Name of the .txd [[TXD|texture dictionary]], without extension
|D ||Default pedtype ||string ||The default ped type of the ped
|-
|-
|<center>Threat</center>||The threat of the ped as defined in the ped.dat file
|E ||Behavior ||string ||The behavior of the ped as defined in the pedstats.dat file
|-
|-
|<center>Behavior</center>||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]])
|-
|-
|<center>Animation</center>||The animation file being used on the ped for movements
|G ||Cars can drive mask ||hex ||The [[CARS (IDE Section)#Vehicle Classes|class of vehicle]] that the ped will drive as hex value.
|-
|-
|<center>VehClass</center>||The class of vehicle that the ped will drive<br>The value is in hex! It needs to be converted into decimal and back
|H ||Flags ||hex ||
|-
|-
|<center>Drugs</center>||1 sets the ped to buy drugs from drug dealers
|I ||Animfile ||string ||The animation file for secondary animations (like sunbathing)
|-
|-
|<center>Radio1, Radio2</center>||Ped's preferred radio station, only works if the ped is driving a vehicle with a working radio
|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]])
|-
|-
|<center>VoiceArchive</center>||The [[Audio stream|sound file]] for the ped's voices
|L ||VoiceArchive ||string ||The [[Audio stream|sound file]] for the ped's voices
|-
|-
|<center>Voice1, Voice2</center>||The ped's voices (its dialogue), doesn't include screams and pains
|M,N ||Voice1, Voice2 ||string[2] ||The ped's voices (its dialogue), doesn't include screams and pains
|}
|}


===Vehicle Class===
=== GTA IV ===
This is a list of vehicle class in decimal. Add them up to allow more than one class to be used. Then convert it into hex for it to be usable. The class of a vehicle is defined in the CARS section of the IDE file.
This section is mainly used in the <code>\common\data\peds.ide</code> file.
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;"
 
! Decimal
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
! Class
!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>
|-
|-
| 0 || none
|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
|-
|-
| 1 || normal
|C ||Pedtype ||string ||The default ped type of the ped
|-
|-
| 2 || poorfamily
|D ||Animgroup ||string ||
|-
|-
| 4 || richfamily
|E ||Gesturegroup ||string ||<code>GESTURES@MALE</code> or <code>GESTURES@FEMALE</code>
|-
|-
| 8 || executive
|F ||Gesturephonegroup ||string ||<code>GESTURES@M_PHONE</code> or <code>GESTURES@F_PHONE</code>
|-
|-
| 16 || worker
|G ||Facialgroup ||string ||Located in <code>anim.img</code>, supported files begin with <code>facials@</code>
|-
|-
| 32 || big
|H ||Visemegroup ||string ||Located in <code>anim.img</code>, supported files begin with <code>visemes@</code>
|-
|-
| 64 || taxi
|I ||Flags ||hex ||always 0
|-
|-
| 128 || moped
|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>
|-
|-
| 256 || motorbike
|K ||Blendshapefile ||string ||Used for cutscene models, otherwise <code>null</code>
|-
|-
| 512 || leisureboat
|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.
|-
|-
| 1024 || workerboat
|N ||Audiotype ||string ||always <code>PED_TYPE_PLAYER</code>
|-
|-
| 2048 || bicycle
|O ||Firstvoice ||string ||The audio bank for the ped's voice
|-
|-
| 4096 || on foot
|P ||Lastvoice ||string ||always <code>VOICE_PLY_CR</code>
|}
|}


===Radio Stations===
=== 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.
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;"
{|class="wikitable"
! Number
!rowspan="2" |Number
! Station
!colspan="2" |Station
|-
|-
| 0 || Playback FM
!{{Icon-square|VC}} ||{{Icon-square|SA}}
|-
|-
| 1 || K Rose
|0 ||Wildstyle ||Playback FM
|-
|-
| 2 || WCTR
|1 ||Flash FM ||K Rose
|-
|-
| 3 || K-DST
|2 ||KChat ||WCTR
|-
|-
| 4 || Bounce FM
|3 ||Fever 105 ||K-DST
|-
|-
| 5 || SF-UR
|4 ||VRock ||Bounce FM
|-
|-
| 6 || Radio Los Santos
|5 ||VCPR ||SF-UR
|-
|-
| 7 || Radio X
|6 ||Espantoso ||Radio Los Santos
|-
|-
| 8 || CSR 103.9
|7 ||Emotion 98.3 ||Radio X
|-
|-
| 9 || K-Jah West
|8 ||Wave 103 ||CSR 103.9
|-
|-
| 10 || Master Sounds 98.3
|9 ||Default vehicle's station ||K-Jah West
|-
|-
| 11 || User Track Player
|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

PEDS (IDE section)
Supported games:GTA III GTA Vice City GTA San Andreas GTA IV
Short description:Used to define characters and pedestrians
IDE Sections:
2DFX AMAT ANIM CARS HIER MLO OBJS
PATH PEDS TANM TOBJ TREE TXDP WEAP

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
GTA III 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
GTA Vice City 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
GTA San Andreas 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.

GTA IV Identifier Type Description
A Model string Unique model name without extension, located in \pc\models\cdimages\componentpeds.img
B Props string Unique prop (like helmets, glasses, hats) model name without extension, located in \pc\models\cdimages\componentpeds.img, use null for unavailable props
C Pedtype string The default ped type of the ped
D Animgroup string
E Gesturegroup string GESTURES@MALE or GESTURES@FEMALE
F Gesturephonegroup string GESTURES@M_PHONE or GESTURES@F_PHONE
G Facialgroup string Located in anim.img, supported files begin with facials@
H Visemegroup string Located in anim.img, supported files begin with visemes@
I Flags hex always 0
J Animfile string The animation file without extension for movements of the ped, located in anim.img, supported files begin with move_x@
K Blendshapefile string Used for cutscene models, otherwise null
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 PED_TYPE_PLAYER
O Firstvoice string The audio bank for the ped's voice
P Lastvoice string always VOICE_PLY_CR

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.

Number Station
GTA Vice City GTA San Andreas
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
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
Copyrighted

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.

GNU 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.