Difference between revisions of "Weapon.dat"

From GTAMods Wiki
Jump to navigation Jump to search
m
m (GTA IV: I'm getting old and oblivious)
Line 63: Line 63:
  
 
=== GTA IV ===
 
=== GTA IV ===
 +
 +
{{Incomplete}}
  
 
== See also ==
 
== See also ==

Revision as of 13:06, 12 December 2010

The weapon.dat is a file located in the data/ directory of all GTA games. 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

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.

GTA IV

This section is incomplete. You can help by fixing and expanding it.

See also