Difference between revisions of "PEDS"

From GTAMods Wiki
Jump to navigation Jump to search
(split iii and vc)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Research}}
 
{{Research}}
 
{{IdeSection
 
{{IdeSection
| game        = [[GTA III]], [[GTA VC]], [[GTA SA]], [[GTA IV]]
+
|game        = {{Icon|t}} {{Icon|4}}
| description = Used to define characters and pedestrians
+
|description = Used to define characters and pedestrians
 
}}
 
}}
'''PEDS''' is a section in the [[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 [[GTA III]], [[Vice City]], [[San Andreas]], and [[GTA IV]]. It is used to define characters and pedestrians and some of their properties.
  
==GTA III==
+
== Format ==
 +
=== GTA III ===
 
This section is mainly used in the <code>default.ide</code> file.
 
This section is mainly used in the <code>default.ide</code> file.
===Format===
+
{{Pre|
ID, ModelName, TxdName, Pedtype, Behavior, Animation, VehClass
+
peds
 +
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask
 +
end
 +
}}
  
{|{{Prettytable}} width="100%"
+
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!width="250px"|Identifier
+
!style="width: 3em;"|{{Icon|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 [[model file]], without extension
+
|B ||ModelName ||string ||Name of the .dff [[model file]], without extension
 
|-
 
|-
|<center>TxdName</center>||Name of the .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 [[CARS_(IDE_Section)|class of vehicle]] that the ped will drive as hex value.
+
|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
+
|poorfamily ||1 ||<code>0000 0001</code>
*oldman
+
|-
*oldwoman
+
|richfamily ||2 ||<code>0000 0010</code>
*player
+
|-
*sexywoman
+
|executive ||4 ||<code>0000 0100</code>
*shopping
+
|-
*shuffle
+
|worker ||8 ||<code>0000 1000</code>
*woman
+
|-
 +
|special ||10 ||<code>0001 0000</code>
 +
|-
 +
|big ||20 ||<code>0010 0000</code>
 +
|-
 +
|taxi ||40 ||<code>0100 0000</code>
 +
|}
  
==Vice City==
+
=== Vice City ===
 
This section is mainly used in the <code>default.ide</code> file.
 
This section is mainly used in the <code>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
 +
}}
  
{|{{Prettytable}} width="100%"
+
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!width="250px"|Identifier
+
!style="width: 3em;"|{{Icon|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
 +
|-
 +
|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
 +
|-
 +
!Hex ||Binary
 +
|-
 +
|''none'' ||0 ||<code>0000 0000 0000</code>
 +
|-
 +
|normal ||1 ||<code>0000 0000 0001</code>
 
|-
 
|-
|<center>ModelName</center>||Name of the .dff [[model file]], without extension
+
|poorfamily ||2 ||<code>0000 0000 0010</code>
 
|-
 
|-
|<center>TxdName</center>||Name of the .txd [[texture dictionary]], without extension
+
|richfamily ||4 ||<code>0000 0000 0100</code>
 
|-
 
|-
|<center>Pedtype</center>||The default [[ped type]] of the ped
+
|executive ||8 ||<code>0000 0000 1000</code>
 
|-
 
|-
|<center>Behavior</center>||The behavior of the ped as defined in the pedstats.dat file
+
|worker ||10 ||<code>0000 0001 0000</code>
 
|-
 
|-
|<center>Animation</center>||The animation file being used on the ped for movements ([[PEDS#Animations 2|see below]])
+
|big ||20 ||<code>0000 0010 0000</code>
 
|-
 
|-
|<center>VehClass</center>||The [[CARS_(IDE_Section)|class of vehicle]] that the ped will drive as hex value.
+
|taxi ||40 ||<code>0000 0100 0000</code>
 
|-
 
|-
|<center>Radio1, Radio2</center>||Ped's preferred radio station, only works if the ped is driving a vehicle with a working radio
+
|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>
 
|}
 
|}
  
===Animations===
+
=== San Andreas ===
These are the available animations which are located in the ped.ifp file.
+
This section is mainly used in the <code>peds.ide</code> file.
*busywoman
+
{{Pre|
*fatman
+
peds
*fatwoman
+
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask, Flags, Animfile, Radio1, Radio2, VoiceArchive, Voice1, Voice2
*gang1
+
end
*gang2
+
}}
*jogger
 
*jogwoman
 
*man
 
*oldfatman
 
*oldman
 
*oldwoman
 
*player
 
*sexywoman
 
*shopping
 
*shuffle
 
*skate
 
*woman
 
  
===Radio Stations===
+
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
This is a list of available radio stations.
+
!style="width: 3em;"|{{Icon|SA}}
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;"
+
!style="width: 12em;"|Identifier
! Number
+
!style="width: 6em;" |Type
! Station
+
!Description
 +
|-
 +
|A ||Id ||integer ||Unique model ID
 
|-
 
|-
| 0 || Wildstyle
+
|B ||ModelName ||string ||Name of the .dff [[model file]], without extension
 
|-
 
|-
| 1 || Flash FM
+
|C ||TxdName ||string ||Name of the .txd [[texture dictionary]], without extension
 
|-
 
|-
| 2 || KChat
+
|D ||Default pedtype ||string ||The default [[ped type]] of the ped
 
|-
 
|-
| 3 || Fever 105
+
|E ||Behavior ||string ||The behavior of the ped as defined in the pedstats.dat file
 
|-
 
|-
| 4 || VRock
+
|F ||AnimGroup ||string ||The animation group for movements of the ped ([[#Animation groups|see below]])
 
|-
 
|-
| 5 || VCPR
+
|G ||Cars can drive mask ||hex ||The [[CARS (IDE Section)#Vehicle Classes|class of vehicle]] that the ped will drive as hex value.
 
|-
 
|-
| 6 || Espantoso
+
|H ||Flags ||hex ||
 
|-
 
|-
| 7 || Emotion 98.3
+
|I ||Animfile ||string ||The animation file for secondary animations (like sunbathing)
 
|-
 
|-
| 8 || Wave 103
+
|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]])
 
|-
 
|-
| 9 || Default vehicle's station
+
|L ||VoiceArchive ||string ||The [[Audio stream|sound file]] for the ped's voices
 
|-
 
|-
| 10 || Radio off
+
|M,N ||Voice1, Voice2 ||string[2] ||The ped's voices (its dialogue), doesn't include screams and pains
 
|}
 
|}
  
==San Andreas==
+
=== GTA IV ===
This section is mainly used in the <code>peds.ide</code> file.
+
This section is mainly used in the <code>..\common\data\peds.ide</code> file.
===Format===
 
ID, ModelName, TxdName, Threat, Behavior, Animation, VehClass, Drugs, UnknownAnim, Radio1, Radio2, VoiceArchive, Voice1, Voice2
 
  
{|{{Prettytable}} width="100%"
+
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!width="250px"|Identifier
+
!style="width: 3em;"|{{Icon|4}}
 +
!style="width: 12em;"|Identifier
 +
!style="width: 6em;" |Type
 
!Description
 
!Description
 
|-
 
|-
|<center>ID</center>||Unique model ID
+
|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#GTA IV|ped type]] of the ped
 +
|-
 +
|D ||Animgroup ||string ||
 +
|-
 +
|E ||Gesturegroup ||string ||<code>GESTURES@MALE</code> or <code>GESTURES@FEMALE</code>
 
|-
 
|-
|<center>ModelName</center>||Name of the .dff [[model file]], without extension
+
|F ||Gesturephonegroup ||string ||<code>GESTURES@M_PHONE</code> or <code>GESTURES@F_PHONE</code>
 
|-
 
|-
|<center>TxdName</center>||Name of the .txd [[texture dictionary]], without extension
+
|G ||Facialgroup ||string ||Located in <code>anim.img</code>, supported files begin with <code>facials@</code>
 
|-
 
|-
|<center>Threat</center>||The threat of the ped as defined in the ped.dat file
+
|H ||Visemegroup ||string ||Located in <code>anim.img</code>, supported files begin with <code>visemes@</code>
 
|-
 
|-
|<center>Behavior</center>||The behavior of the ped as defined in the pedstats.dat file
+
|I ||Flags ||hex ||always 0
 
|-
 
|-
|<center>Animation</center>||The animation file being used on the ped for movements
+
|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>
 
|-
 
|-
|<center>VehClass</center>||The [[CARS_(IDE_Section)|class of vehicle]] that the ped will drive as hex value.
+
|K ||Blendshapefile ||string ||Used for cutscene models, otherwise <code>null</code>
 
|-
 
|-
|<center>Drugs</center>||1 sets the ped to buy drugs from drug dealers
+
|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.
 
|-
 
|-
|<center>Radio1, Radio2</center>||Ped's preferred radio station, only works if the ped is driving a vehicle with a working radio
+
|N ||Audiotype ||string ||always <code>PED_TYPE_PLAYER</code>
 
|-
 
|-
|<center>VoiceArchive</center>||The [[Audio stream|sound file]] for the ped's voices
+
|O ||Firstvoice ||string ||The audio bank for the ped's voice
 
|-
 
|-
|<center>Voice1, Voice2</center>||The ped's voices (its dialogue), doesn't include screams and pains
+
|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|VC}} ||{{Icon|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
 
|}
 
|}
  
{{N|4|SA}}
+
== Statistics ==
 +
Total number of PEDS entries in:
 +
:GTA III: 83 (max 90)
 +
:Vice City: 126 (max 130)
 +
:San Andreas: 276
 +
 
 +
{{N|4|SA|VC|3}}
 +
 
 +
[[Category:Pedestrian_Formats]]

Latest revision as of 03:39, 2 April 2017

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

PEDS is a section in the item definition file in GTA III, Vice City, San Andreas, and GTA IV. It is used to define characters and pedestrians and some of their properties.

Format

GTA III

This section is mainly used in the 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

Vice City

This section is mainly used in the default.ide file.

peds
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask, Animfile, Radio1, Radio2
end
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

San Andreas

This section is mainly used in the peds.ide file.

peds
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask, Flags, Animfile, Radio1, Radio2, VoiceArchive, Voice1, Voice2
end
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
Vice City 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)
Vice City: 126 (max 130)
San Andreas: 276