Difference between revisions of "WEAP"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
 
{{IdeSection
 
{{IdeSection
| game        = {{Icon|VC}} {{Icon|SA}} {{Icon|4}}
+
|game        = {{Icon|VC}} {{Icon|SA}} {{Icon|LCS}} {{Icon|4}}
| description = Used to define weapons
+
|description = Defines weapon objects
 
}}
 
}}
'''WEAP''' is a section in the [[item definition]] file in [[Vice City]], [[San Andreas]], and [[GTA IV]]. It is used to define weapons. In [[GTA III]] weapons 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.
+
'''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 ==
 
== Format ==
 
+
=== Vice City – Liberty City Stories ===
=== Vice City and San Andreas ===
 
 
{{Pre|
 
{{Pre|
 
weap
 
weap
Id, ModelName, TxdName, AnimationName, MeshCount, DrawDistance, Flags
+
Id, ModelName, TxdName, AnimationName, MeshCount, DrawDistance
 
end
 
end
 
}}
 
}}
  
 
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
 
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
! style="width: 3em;"| {{Icon|VC}} {{Icon|SA}}
+
!style="width: 4em;" |{{Icon|VC}} {{Icon|SA}} {{Icon|LCS}}
! style="width: 12em;"| Identifier
+
!style="width: 12em;" |Identifier
! style="width: 6em;" | Type
+
!style="width: 6em;" |Type
! Description
+
!Description
 
|-
 
|-
| A || Id || integer || Unique object ID.
+
|A ||Id ||integer ||Unique object identifier.
 
|-
 
|-
| B || ModelName || string || Name of the <code>.dff</code> [[model file]] without extension.
+
|B ||ModelName ||string ||Name of the [[model file]] without extension.
 
|-
 
|-
| C || TxdName || string || Name of the <code>.txd</code> [[texture dictionary]] without extension.
+
|C ||TxdName ||string ||Name of the [[texture dictionary]] without extension.
 
|-
 
|-
| D || AnimationName || string ||Name of the <code>.ifp</code> [[animation file]] without extension.
+
|D ||AnimationName ||string ||Name of the <code>.ifp</code> [[animation file]] without extension.
 
|-
 
|-
| E || MeshCount || integer || Number of meshes, always 1.
+
|E ||MeshCount ||integer ||Number of meshes, always 1.
 
|-
 
|-
| F || DrawDistance || float || [[Draw distance]] in [[unit]]s.
+
|F ||DrawDistance ||float ||[[Draw distance]] in [[unit]]s.
|-
 
| G || Flags || integer || Object flags (see [[#Object flags|below]]), doesn't seem to be read by the game.
 
 
|}
 
|}
 +
 +
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 ===
 
=== GTA IV ===
Line 43: Line 42:
  
 
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
 
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
! style="width: 3em;"| {{Icon|4}}
+
!style="width: 3em;" |{{Icon|4}}
! style="width: 12em;"| Identifier
+
!style="width: 12em;" |Identifier
! style="width: 6em;" | Type
+
!style="width: 6em;" |Type
! Description
+
!Description
 
|-
 
|-
| A || ModelName || string || Name of the <code>[[WDR|.wdr]]</code> model file without extension.
+
|A ||ModelName ||string ||Name of the <code>[[WDR|.wdr]]</code> model file without extension.
 
|-
 
|-
| B || TxdName || string || Name of the <code>[[WTD|.wtd]]</code> texture dictionary without extension.
+
|B ||TxdName ||string ||Name of the <code>[[WTD|.wtd]]</code> texture dictionary without extension.
 
|-
 
|-
| C || AnimationName || string || Name of the <code>[[WAD|.wad]]</code> animation file without extension.
+
|C ||AnimationName ||string ||Name of the <code>[[WAD|.wad]]</code> animation file without extension.
 
|-
 
|-
| D || ObjectCount || integer || Number of [[RenderWare_binary_stream_file|clumps]]? Apparently unused.
+
|D ||ObjectCount ||integer ||Number of [[RenderWare_binary_stream_file|clumps]]? Apparently unused.
 
|-
 
|-
| E || DrawDistance || float || Draw distance in units.
+
|E ||DrawDistance ||float ||Draw distance in units.
 
|-
 
|-
| F || Flag || integer || Object flag (seems to be unused).
+
|F ||Flag ||integer ||Object flag (seems to be unused).
 
|}
 
|}
 
== Object flags ==
 
{{Object-Flags}}
 
  
 
== Statistics ==
 
== Statistics ==
Line 71: Line 67:
  
 
== See also ==
 
== See also ==
 
* [[Item definition]]
 
 
* [[weapon.dat]]
 
* [[weapon.dat]]
  
 
{{N|4|SA|VC}}
 
{{N|4|SA|VC}}
 +
[[Category:GTA LCS]]

Revision as of 12:07, 19 July 2017

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