Difference between revisions of "Pedstats.dat"

From GTAMods Wiki
Jump to navigation Jump to search
m (cat)
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Pedstats.dat'''
+
{{lowercase}}
Data:
+
'''<code>pedstats.dat</code>''' is a file located in the <code>data</code> directory of many GTA games. The file contains information about pedestrian behavior and personality.
#
 
# A: PedStat type name (Ignored: MUST be in correct order)
 
#
 
# B: Flee distance (float)
 
# C: Heading change rate (float in degrees)
 
#
 
# D: Fear (0-100) 100=Scared of everything
 
# E: Temper (0-100) 100=Bad Tempered
 
# F: Lawfullness (0-100) 100=Boy Scout
 
# G: Sexiness (0-100)
 
# H: Attack strength (float multiplier to attack damages)
 
# I: Defend weakness (float multiplier to received damages)
 
#
 
# J: Stat flags -> 1:PunchOnly, 2:CanKneeHead, 4:CanKick, 8:CanRoundHse, 16:NoDive,
 
#                    32:1HitKnockdown, 64:ShoppingBags, 128:GunPanic
 
  
(Needs editing.)
+
== File format ==
 +
Documentation of the format already exists within the file itself.
  
 +
=== GTA III and Vice City ===
 +
{| class="wikitable"
 +
! style="width: 3em;"| {{Icon|3}} {{Icon|VC}}
 +
! style="width: 11em;"| Identifier
 +
! style="width: 7em;" | Type
 +
! Description
 +
|-
 +
| {{a|c}} | A
 +
| {{a|c}} | Type name
 +
| string
 +
| The string is ignored but the stats for the associated pedstat types must be in order
 +
|-
 +
| {{a|c}} | B
 +
| {{a|c}} | Flee distance
 +
| float
 +
|
 +
|-
 +
| {{a|c}} | C
 +
| {{a|c}} | Heading change rate
 +
| float
 +
| In degrees
 +
|-
 +
| {{a|c}} | D
 +
| {{a|c}} | Fear
 +
| integer
 +
| Range from 0 to 100, 100 denoting "scared of everything"
 +
|-
 +
| {{a|c}} | E
 +
| {{a|c}} | Temper
 +
| integer
 +
| Range from 0 to 100, 100 denoting "bad tempered"
 +
|-
 +
| {{a|c}} | F
 +
| {{a|c}} | Lawfulness
 +
| integer
 +
| Range from 0 to 100, 100 denoting "boy scout"
 +
|-
 +
| {{a|c}} | G
 +
| {{a|c}} | Sexiness
 +
| integer
 +
| Range from 0 to 100
 +
|-
 +
| {{a|c}} | H
 +
| {{a|c}} | Attack strength
 +
| float
 +
| Attack multiplier
 +
|-
 +
| {{a|c}} | I
 +
| {{a|c}} | Defend weakness
 +
| float
 +
| Defense multiplier
 +
|-
 +
| {{a|c}} | J
 +
| {{a|c}} | Stat flags
 +
| integer
 +
|
 +
|}
  
[[Category: File Formats]]
+
=== San Andreas ===
 +
{| class="wikitable"
 +
! style="width: 3em;"| {{Icon|SA}}
 +
! style="width: 11em;"| Identifier
 +
! style="width: 7em;" | Type
 +
! Description
 +
|-
 +
| {{a|c}} | A
 +
| {{a|c}} | Type name
 +
| string
 +
| The string is ignored but the stats for the associated pedstat types must be in order
 +
|-
 +
| {{a|c}} | B
 +
| {{a|c}} | Flee distance
 +
| float
 +
|
 +
|-
 +
| {{a|c}} | C
 +
| {{a|c}} | Heading change rate
 +
| float
 +
| In degrees
 +
|-
 +
| {{a|c}} | D
 +
| {{a|c}} | Fear
 +
| integer
 +
| Range from 0 to 100, 100 denoting "scared of everything"
 +
|-
 +
| {{a|c}} | E
 +
| {{a|c}} | Temper
 +
| integer
 +
| Range from 0 to 100, 100 denoting "bad tempered"
 +
|-
 +
| {{a|c}} | F
 +
| {{a|c}} | Lawfulness
 +
| integer
 +
| Range from 0 to 100, 100 denoting "boy scout"
 +
|-
 +
| {{a|c}} | G
 +
| {{a|c}} | Sexiness
 +
| integer
 +
| Range from 0 to 100
 +
|-
 +
| {{a|c}} | H
 +
| {{a|c}} | Attack strength
 +
| float
 +
| Attack multiplier
 +
|-
 +
| {{a|c}} | I
 +
| {{a|c}} | Defend weakness
 +
| float
 +
| Defense multiplier
 +
|-
 +
| {{a|c}} | J
 +
| {{a|c}} | Shooting rate
 +
| integer
 +
| Range from 0 to 100
 +
|-
 +
| {{a|c}} | K
 +
| {{a|c}} | [[Decision Maker#Default Decision Makers|Default decision maker]]
 +
| integer
 +
| 1 for cops; 2 for normal peds; 3 for tough peds; 4 for coward peds; 5 for fireman
 +
|}
 +
 
 +
== See also ==
 +
* [[DAT|List of all data files]]
 +
* [[Decision Maker]]
 +
* [[0243]], opcode for GTA III and Vice City to set the personality of an individual character
 +
 
 +
{{N|SA|VC|3}}
 +
[[Category:Pedestrian Formats]]

Latest revision as of 08:03, 2 February 2015

pedstats.dat is a file located in the data directory of many GTA games. The file contains information about pedestrian behavior and personality.

File format

Documentation of the format already exists within the file itself.

GTA III and Vice City

GTA III Vice City Identifier Type Description
A Type name string The string is ignored but the stats for the associated pedstat types must be in order
B Flee distance float
C Heading change rate float In degrees
D Fear integer Range from 0 to 100, 100 denoting "scared of everything"
E Temper integer Range from 0 to 100, 100 denoting "bad tempered"
F Lawfulness integer Range from 0 to 100, 100 denoting "boy scout"
G Sexiness integer Range from 0 to 100
H Attack strength float Attack multiplier
I Defend weakness float Defense multiplier
J Stat flags integer

San Andreas

San Andreas Identifier Type Description
A Type name string The string is ignored but the stats for the associated pedstat types must be in order
B Flee distance float
C Heading change rate float In degrees
D Fear integer Range from 0 to 100, 100 denoting "scared of everything"
E Temper integer Range from 0 to 100, 100 denoting "bad tempered"
F Lawfulness integer Range from 0 to 100, 100 denoting "boy scout"
G Sexiness integer Range from 0 to 100
H Attack strength float Attack multiplier
I Defend weakness float Defense multiplier
J Shooting rate integer Range from 0 to 100
K Default decision maker integer 1 for cops; 2 for normal peds; 3 for tough peds; 4 for coward peds; 5 for fireman

See also