WEAP

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
WEAP (IDE section)
Supported games:GTA Vice City GTA San Andreas GTA IV
Short description:Defines weapon objects
IDE Sections:
2DFX AMAT ANIM CARS HIER MLO OBJS
PATH PEDS TANM TOBJ TREE TXDP WEAP

weap is a section in the item definition file in Grand Theft Auto: Vice City, Grand Theft Auto: San Andreas, and Grand Theft Auto IV. It is used to define weapon objects. In Grand Theft Auto III weapon objects are defined inside the objs section, so this section can be seen as an extension of that section. Additional weapon information are defined inside the weapon.dat file.

Format

GTA Vice City and GTA San Andreas

weap
Id, ModelName, TxdName, AnimationName, MeshCount, DrawDistance
end
GTA Vice City GTA San Andreas Identifier Type Description
A Id integer Unique object identifier.
B ModelName string Name of the model file without extension.
C TxdName string Name of the texture dictionary without extension.
D AnimationName string Name of the .ifp animation file without extension.
E MeshCount integer Number of meshes, always 1.
F DrawDistance float Draw distance in units.

The games' data files for this section have entries with an additional column G that doesn't seem to be read by the game.

GTA IV

weap
ModelName, TxdName, AnimationName, ObjectCount, DrawDistance, Flag
end
GTA IV Identifier Type Description
A ModelName string Name of the .wdr model file without extension.
B TxdName string Name of the .wtd texture dictionary without extension.
C AnimationName string Name of the .wad animation file without extension.
D ObjectCount integer Number of clumps? Apparently unused.
E DrawDistance float Draw distance in units.
F Flag integer Object flag (seems to be unused).

Statistics

Total number of weap entries in:

GTA Vice City: 37 (max 37)
GTA San Andreas: 50
GTA IV: 80
Copyrighted

This page is licensed under the GNU Free Documentation Licence. This page has a separate license to the CC-BY-SA that applies to most of Grand Theft Wiki.

The full text of the GNU FDL v1.2 is here. Click the "History" button to see the full list of authors. See Grand Theft Wiki:Copyright for more detail on our copyright policy.

GNU Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
See Grand Theft Wiki:Copyright for more information.