Difference between revisions of "Weapon.dat"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
 
{{file-stub}}
 
{{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.
+
The <code>weapon.dat</code> is a file located in the <code>data/</code> 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 ==
 
== File format ==
Line 61: Line 61:
  
 
{{Incomplete}}
 
{{Incomplete}}
 +
 +
=== GTA IV ===
  
 
== See also ==
 
== See also ==
Line 66: Line 68:
 
* [[OBJS]] &ndash; ''IDE'' section to define weapons in ''GTA III'' and ''Vice City''
 
* [[OBJS]] &ndash; ''IDE'' section to define weapons in ''GTA III'' and ''Vice City''
 
* [[WEAP]] &ndash; ''IDE'' section to define weapons in ''San Andreas''
 
* [[WEAP]] &ndash; ''IDE'' section to define weapons in ''San Andreas''
 +
* [[DAT|List of all data files]]
  
 
{{N|SA|VC}}
 
{{N|SA|VC}}
  
 
[[Category:File_Formats]][[Category:GTA_3]]
 
[[Category:File_Formats]][[Category:GTA_3]]

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

See also