Difference between revisions of "Weapon.dat"
Line 1: | Line 1: | ||
− | + | {{file-stub}} | |
− | + | The <code>weapon.dat</code> is a file located in the <code>data/</code> directory of all GTA games from [[GTA 3|GTA III]] to [[San Andreas]]. The file contains information about the weapons properties and settings. The weapons themselfes are defined inside the [[default.ide]] file located in the same folder. | |
− | { | + | == File format == |
− | + | ||
− | + | {{Incomplete}} | |
− | + | <!-- general information here (like each file gets terminated by the string "ENDWEAPONDATA" --> | |
− | + | ||
− | + | === GTA III & Vice City === | |
− | + | ||
− | + | {{Incomplete}} | |
− | + | ||
− | + | === San Andreas === | |
+ | |||
+ | {{Incomplete}} | ||
+ | |||
+ | ''San Andreas'' knows two different weapon types. Each weapon can be only one of those types. It gets defined by the first character of a line and defines the whole lines structure. The types are: | ||
− | + | Melee weapons | |
+ | * <code>$</code> – Guns | ||
− | {| {{prettytable}} class="collapsible" | + | {| {{prettytable}} width="100%" class="collapsible" |
− | ! Identifier | + | !width="150px"|Identifier |
− | ! | + | ! Description |
|- | |- | ||
| A | | A | ||
− | | | + | | The weapon type identifier (as descriped above). |
|- | |- | ||
| B | | B | ||
− | | Fire type | + | | Fire type enumeration. Can be: ''MELEE'', ''PROJECTILE'' (for uzis and pistols), ''INSTANT_HIT'' (for rifles), ''USE'', ''AFFECT_AREA'' and ''CAMERA''. |
|- | |- | ||
| C | | C | ||
− | | | + | | The range a target can be aimed. |
|- | |- | ||
| D | | D | ||
− | | | + | | The range of the bullets to cause damage. |
|- | |- | ||
| E | | E | ||
− | | Model | + | | Model identifier of the primary weapon (defined inside the [[default.ide]] file). |
|- | |- | ||
| F | | F | ||
− | | Model | + | | Model identifier of the secondary weapon (apparently unused, always -1). |
|- | |- | ||
| G | | G | ||
− | | | + | | The time the primary weapon requires to be reloaded. |
− | |||
− | |||
− | |||
|- | |- | ||
| I | | I | ||
− | | | + | | The slot the weapon requires in the game. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | ==== | + | ==== Melee weapon parameters ==== |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | === | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | {{Incomplete}} | ||
− | + | ==== Gun parameters ==== | |
− | |||
− | + | {{Incomplete}} | |
− | |||
− | + | ==== Weapon aiming offsets ==== | |
− | + | {{Incomplete}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 13:01, 12 December 2010
The weapon.dat
is a file located in the data/
directory of all GTA games from GTA III to San Andreas. The file contains information about the weapons properties and settings. The weapons themselfes are defined inside the default.ide file located in the same folder.
Contents
File format
This section is incomplete. You can help by fixing and expanding it.
GTA III & Vice City
This section is incomplete. You can help by fixing and expanding it.
San Andreas
This section is incomplete. You can help by fixing and expanding it.
San Andreas knows two different weapon types. Each weapon can be only one of those types. It gets defined by the first character of a line and defines the whole lines structure. The types are:
- < – Melee weapons
$
– Guns
Identifier | Description |
---|---|
A | The weapon type identifier (as descriped above). |
B | Fire type enumeration. Can be: MELEE, PROJECTILE (for uzis and pistols), INSTANT_HIT (for rifles), USE, AFFECT_AREA and CAMERA. |
C | The range a target can be aimed. |
D | The range of the bullets to cause damage. |
E | Model identifier of the primary weapon (defined inside the default.ide file). |
F | Model identifier of the secondary weapon (apparently unused, always -1). |
G | The time the primary weapon requires to be reloaded. |
I | The slot the weapon requires in the game. |
Melee weapon parameters
This section is incomplete. You can help by fixing and expanding it.
Gun parameters
This section is incomplete. You can help by fixing and expanding it.
Weapon aiming offsets
This section is incomplete. You can help by fixing and expanding it.