Difference between revisions of "Pedstats.dat"

From GTAMods Wiki
Jump to navigation Jump to search
m
m
 
(One intermediate revision by one other user not shown)
Line 121: Line 121:
 
|-
 
|-
 
| {{a|c}} | K
 
| {{a|c}} | K
| {{a|c}} | Default decision maker
+
| {{a|c}} | [[Decision Maker#Default Decision Makers|Default decision maker]]
 
| integer
 
| integer
| 0: group member<br />1: cop<br />2: rand_norm<br />3: rand_tough<br />4: rand_weak
+
| 1 for cops; 2 for normal peds; 3 for tough peds; 4 for coward peds; 5 for fireman
 
|}
 
|}
  
 
== See also ==
 
== See also ==
 
* [[DAT|List of all data files]]
 
* [[DAT|List of all data files]]
 +
* [[Decision Maker]]
 
* [[0243]], opcode for GTA III and Vice City to set the personality of an individual character
 
* [[0243]], opcode for GTA III and Vice City to set the personality of an individual character
  
 
{{N|SA|VC|3}}
 
{{N|SA|VC|3}}
 
[[Category:Pedestrian Formats]]
 
[[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