Difference between revisions of "PEDS"

From GTAMods Wiki
Jump to navigation Jump to search
m (GTA III, Vice City, and San Andreas)
(updating styles)
Line 1: Line 1:
__FORCETOC__
 
 
{{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.
  
 
== Format ==
 
== Format ==
 
=== GTA III, Vice City, and San Andreas ===
 
=== GTA III, Vice City, and San Andreas ===
 
In GTA III and Vice City this section is mainly used in the <code>default.ide</code> file, while in San Andreas it is mainly used in the <code>peds.ide</code> file.
 
In GTA III and Vice City this section is mainly used in the <code>default.ide</code> file, while in San Andreas it is mainly used in the <code>peds.ide</code> file.
 +
<pre<includeonly></includeonly> style="overflow-x: auto;">
 +
peds
 +
# GTA III
 +
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask
 +
# Vice City
 +
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask, Animfile, Radio1, Radio2
 +
# San Andreas
 +
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask, Animfile, Radio1, Radio2, VoiceArchive, Voice1, Voice2
 +
end
 +
</pre>
  
{|{{Prettytable}} width="100%"
+
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
! width="10px"| {{Icon|3}}
+
! style="width: 2em;"| {{Icon|3}}
! width="10px"| {{Icon|VC}}
+
! style="width: 2em;"| {{Icon|VC}}
! width="10px"| {{Icon|SA}}
+
! style="width: 2em;"| {{Icon|SA}}
! width="150px"| Identifier
+
! style="width: 12em;"| Identifier
! width="100px"| Type
+
! style="width: 6em;" | Type
 
! Description
 
! Description
 
|-
 
|-
| colspan="3"| <center>A</center> || <center>ModelId</center> || integer || Unique model ID
+
| colspan="3"| A || Id || integer || Unique model ID
 
|-
 
|-
| colspan="3"| <center>B</center> || <center>ModelName</center> || string || Name of the .dff [[model file]], without extension
+
| colspan="3"| B || ModelName || string || Name of the .dff [[model file]], without extension
 
|-
 
|-
| colspan="3"| <center>C</center> || <center>TxdName</center> || string || Name of the .txd [[texture dictionary]], without extension
+
| colspan="3"| C || TxdName || string || Name of the .txd [[texture dictionary]], without extension
 
|-
 
|-
| colspan="3"| <center>D</center> || <center>Default pedtype</center> || string || The default [[ped type]] of the ped
+
| colspan="3"| D || Default pedtype || string || The default [[ped type]] of the ped
 
|-
 
|-
| colspan="3"| <center>E</center> || <center>Behavior</center> || string || The behavior of the ped as defined in the pedstats.dat file
+
| colspan="3"| E || Behavior || string || The behavior of the ped as defined in the pedstats.dat file
 
|-
 
|-
| colspan="3"| <center>F</center> || <center>AnimGroup</center> || string || The animation group for movements of the ped ([[PEDS#Animation groups|see below]])
+
| colspan="3"| F || AnimGroup || string || The animation group for movements of the ped ([[PEDS#Animation groups|see below]])
 
|-
 
|-
| colspan="3"| <center>G</center> || <center>Cars can drive mask</center> || hex || The [[CARS (IDE Section)#Vehicle Classes|class of vehicle]] that the ped will drive as hex value.
+
| colspan="3"| G || Cars can drive mask || hex || The [[CARS (IDE Section)#Vehicle Classes|class of vehicle]] that the ped will drive as hex value.
 
|-
 
|-
| - || colspan="2"| <center>H</center> || <center>Animfile</center> || string || The animation file for secondary animations (like sunbathing)
+
| - || colspan="2"| H || {{a|c}} | Animfile || string || The animation file for secondary animations (like sunbathing)
 
|-
 
|-
| - || colspan="2"| <center>I,J</center> || <center>Radio1, Radio2</center> || integer[2] || Ped's preferred radio station, only works if the ped is driving a vehicle with a working radio ([[PEDS#Radio stations|see below]])
+
| - || colspan="2"| I,J || {{a|c}} | Radio1, Radio2 || integer[2] || Ped's preferred radio station, only works if the ped is driving a vehicle with a working radio ([[PEDS#Radio stations|see below]])
 
|-
 
|-
| - || - || <center>K</center> || <center>VoiceArchive</center> || string || The [[Audio stream|sound file]] for the ped's voices
+
| - || - || {{a|c}} | K || {{a|c}} | VoiceArchive || string || The [[Audio stream|sound file]] for the ped's voices
 
|-
 
|-
| - || - || <center>L,M</center> || <center>Voice1, Voice2</center> || string[2] || The ped's voices (its dialogue), doesn't include screams and pains
+
| - || - || {{a|c}} | L,M || {{a|c}} | Voice1, Voice2 || string[2] || The ped's voices (its dialogue), doesn't include screams and pains
 
|}
 
|}
  
Line 69: Line 78:
 
This section is mainly used in the <code>..\common\data\peds.ide</code> file.
 
This section is mainly used in the <code>..\common\data\peds.ide</code> file.
  
{|{{Prettytable}} width="100%"
+
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
! width="10px"| {{Icon|4}}
+
! style="width: 3em;"| {{Icon|4}}
! width="150px"| Identifier
+
! style="width: 12em;"| Identifier
! width="100px"| Type
+
! style="width: 6em;" | Type
 
! Description
 
! Description
 
|-
 
|-
| <center>A</center> || <center>Model</center> || string || Unique model name without extension, located in <code>..\pc\models\cdimages\componentpeds.img</code>
+
| A || Model || string || Unique model name without extension, located in <code>..\pc\models\cdimages\componentpeds.img</code>
 
|-
 
|-
| <center>B</center> || <center>Props</center> || 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
+
| 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
 
|-
 
|-
| <center>C</center> || <center>Pedtype</center> || string || The default [[Ped type#GTA IV|ped type]] of the ped
+
| C || Pedtype || string || The default [[Ped type#GTA IV|ped type]] of the ped
 
|-
 
|-
| <center>D</center> || <center>Animgroup</center> || string ||  
+
| D || Animgroup || string ||  
 
|-
 
|-
| <center>E</center> || <center>Gesturegroup</center> || string || <code>GESTURES@MALE</code> or <code>GESTURES@FEMALE</code>
+
| E || Gesturegroup || string || <code>GESTURES@MALE</code> or <code>GESTURES@FEMALE</code>
 
|-
 
|-
| <center>F</center> || <center>Gesturephonegroup</center> || string || <code>GESTURES@M_PHONE</code> or <code>GESTURES@F_PHONE</code>
+
| F || Gesturephonegroup || string || <code>GESTURES@M_PHONE</code> or <code>GESTURES@F_PHONE</code>
 
|-
 
|-
| <center>G</center> || <center>Facialgroup</center> || string || Located in <code>anim.img</code>, supported files begin with <code>facials@</code>
+
| G || Facialgroup || string || Located in <code>anim.img</code>, supported files begin with <code>facials@</code>
 
|-
 
|-
| <center>H</center> || <center>Visemegroup</center> || string || Located in <code>anim.img</code>, supported files begin with <code>visemes@</code>
+
| H || Visemegroup || string || Located in <code>anim.img</code>, supported files begin with <code>visemes@</code>
 
|-
 
|-
| <center>I</center> || <center>Flags</center> || hex || always 0
+
| I || Flags || hex || always 0
 
|-
 
|-
| <center>J</center> || <center>Animfile</center> || 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>
+
| 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>K</center> || <center>Blendshapefile</center> || string || Used for cutscene models, otherwise <code>null</code>
+
| K || Blendshapefile || string || Used for cutscene models, otherwise <code>null</code>
 
|-
 
|-
| <center>L,M</center> || <center>Radio1, Radio2</center> || 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.
+
| 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>N</center> || <center>Audiotype</center> || string || always <code>PED_TYPE_PLAYER</code>
+
| N || Audiotype || string || always <code>PED_TYPE_PLAYER</code>
 
|-
 
|-
| <center>O</center> || <center>Firstvoice</center> || string || The audio bank for the ped's voice
+
| O || Firstvoice || string || The audio bank for the ped's voice
 
|-
 
|-
| <center>P</center> || <center>Lastvoice</center> || string || always <code>VOICE_PLY_CR</code>
+
| P || Lastvoice || string || always <code>VOICE_PLY_CR</code>
 
|}
 
|}
  
 
+
=== Radio stations ===
==== Radio stations ====
+
This is a list of available radio stations.
This is a list of available radio stations. At the moment list contains only the radio stations from GTA VC & GTA SA.
+
{| class="wikitable"
{| {{prettytable}}
 
 
! Number
 
! Number
 
! colspan="2" | Station
 
! colspan="2" | Station
 
|-
 
|-
| || <center>{{Icon|VC}}</center> || <center>{{Icon|SA}}</center>
+
| || {{a|c}} | {{Icon|VC}} || {{a|c}} | {{Icon|SA}}
 
|-
 
|-
 
| 0 || Wildstyle || Playback FM
 
| 0 || Wildstyle || Playback FM
Line 144: Line 152:
 
== Statistics ==
 
== Statistics ==
 
Total number of PEDS entries in:
 
Total number of PEDS entries in:
:GTA III: 83
+
:GTA III: 83 (max 90)
:Vice City: 126
+
:Vice City: 126 (max 130)
 
:San Andreas: 276
 
:San Andreas: 276
  
{{N|4|SA|VC}}
+
{{N|4|SA|VC|3}}
  
 
[[Category:Pedestrian_Formats]]
 
[[Category:Pedestrian_Formats]]

Revision as of 22:20, 5 December 2015

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, Vice City, and San Andreas

In GTA III and Vice City this section is mainly used in the default.ide file, while in San Andreas it is mainly used in the peds.ide file.

peds
# GTA III
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask
# Vice City
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask, Animfile, Radio1, Radio2
# San Andreas
Id, ModelName, TxdName, Default pedtype, Behavior, AnimGroup, Cars can drive mask, Animfile, Radio1, Radio2, VoiceArchive, Voice1, Voice2
end
GTA III Vice City 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 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)
- - K VoiceArchive string The sound file for the ped's voices
- - L,M Voice1, Voice2 string[2] The ped's voices (its dialogue), doesn't include screams and pains

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

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

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