WEAP

From GTAMods Wiki
Revision as of 23:37, 11 January 2019 by GTAKid667 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
WEAP (IDE section)
Supported games:Vice City San Andreas Liberty City Stories GTA IV
Brief description:Defines weapon objects
IDE Sections:
2DFX AMAT ANIM CARS HIER HAND MLO OBJS
PATH PEDS TANM TOBJ TREE TXDP WEAP

WEAP is a section in the item definition file in Vice City, San Andreas, Liberty City Stories, and GTA IV. It is used to define weapon objects. In GTA 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

Vice City – Liberty City Stories

weap
Id, ModelName, TxdName, AnimationName, MeshCount, DrawDistance
end
Vice City San Andreas Liberty City Stories 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:

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

See also