Difference between revisions of "Weapon.dat"
m (→See also) |
(expanded iii/vc) |
||
Line 11: | Line 11: | ||
{{Incomplete}} | {{Incomplete}} | ||
+ | |||
+ | {|{{Prettytable}} width="100%" | ||
+ | ! width="56px"| {{Icon|3}} {{Icon|VC}} | ||
+ | ! width="150px"| Identifier | ||
+ | ! width="100px"| Type | ||
+ | ! Description | ||
+ | |- | ||
+ | | <center>A</center> || <center>Weapon Name</center> || string || | ||
+ | |- | ||
+ | | <center>B</center> || <center>Fire Type</center> || string || Available types include: <code>MELEE</code>, <code>INSTANT_HIT</code>, <code>PROJECTILE</code>, <code>AREA_EFFECT</code>, and <code>CAMERA</code> | ||
+ | |- | ||
+ | | <center>C</center> || <center>Range</center> || float || The range of the bullet in units | ||
+ | |- | ||
+ | | <center>D</center> || <center>Firing Rate</center> || integer || | ||
+ | |- | ||
+ | | <center>E</center> || <center>Reload</center> || integer || The time to reload in milliseconds, constrained by the animation being played | ||
+ | |- | ||
+ | | <center>F</center> || <center>Amount of Ammunition</center> || integer || The number of ammo per clip | ||
+ | |- | ||
+ | | <center>G</center> || <center>Damage</center> || integer || Damage done to damageable objects, damage done to characters are within the range of the value while to others are accurate to the value | ||
+ | |- | ||
+ | | <center>H</center> || <center>Speed</center> || float || | ||
+ | |- | ||
+ | | <center>I</center> || <center>Radius</center> || float || | ||
+ | |- | ||
+ | | <center>J</center> || <center>Life span</center> || float || | ||
+ | |- | ||
+ | | <center>K</center> || <center>Spread</center> || float || | ||
+ | |- | ||
+ | | <center>L,M,N</center> || <center>Fire Offset Vector</center> || float[3] || The x,y,z offset of the gunflash | ||
+ | |- | ||
+ | | <center>O</center> || <center>Animation to Play</center> || string || | ||
+ | |- | ||
+ | | <center>W</center> || <center>Model ID</center> || integer || | ||
+ | |- | ||
+ | | <center>X</center> || <center>Model2 ID</center> || integer || | ||
+ | |- | ||
+ | | <center>Y</center> || <center>Flags</center> || hex || | ||
+ | |- | ||
+ | | <center>Z</center> || <center>Weapon Slot</center> || integer || 0: Fist<br>1: Melee<br>2: Thrown<br>3: Pistol<br>4: Shotgun<br>5: Submachine gun<br>6: Assault rifle<br>7: Heavy<br>8: Sniper rifle<br>9: Special | ||
+ | |} | ||
=== San Andreas === | === San Andreas === |
Revision as of 22:28, 22 January 2011
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.
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.
GTA IV
This section is incomplete. You can help by fixing and expanding it.
See also
- OBJS – IDE section to define weapons in GTA III and Vice City
- WEAP – IDE section to define weapons in San Andreas
- List of all data files
Grand Theft Auto IV | |
---|---|
File Formats | .dat • .gxt • .ide • .img • .ipl • .nod • .sco • .rpf • .rrr • .wad • .wbd/.wbn • .wdd • .wdr • .wft • .whm • .wpl • .wtd |
Documentation | Audio • Bink Video • Cryptography • Cutscenes • GXT Text • Image listing • Keycodes • Map Listing • Native functions • Paths • Radar Blips • Radio Stations • Saves • Scenarios • VTable • Weapons |
Tools | ASI Loader • ENBSeries • G-Texture • GIMS IV • Ingame WPL Editor • IV Needle • OpenIV • SparkIV • XLiveLess • WPL Manager • X Mod Installer Alice • C++ Script Hook • .NET Script Hook • Scocl |
Tutorials | Importing Textures with OpenIV • Importing Textures with SparkIV |
Modifications | GTA Connected • Gostown IV • Four Multiplayer • IV Multiplayer • CitizenMP:IV Reloaded |
Useful links | Community portal • Discussion forums • Modding forums • Mods on GTAGarage.com |