Template:Lowercase title/doc and ANIM: Difference between pages

(Difference between pages)
 
(contributions from myself, Aschratt, and Xmen)
 
Line 1: Line 1:
== Usage ==
{{IdeSection
Simply add the tag {{template|lowercase title}} at the beginning of a page (and optionally, at the beginning of its talk page). There are no parameters. The tag will only decapitalize the first letter of the page's name in the title at the beginning of the page. Examples:
|game        = {{Icon-square|sa}} {{Icon-square|4}}
{|class="wikitable"
|description = Defines animated map objects
!Page name !!Will display
}}
'''<code>anim</code>''' is a section in the item definition file in [[Grand Theft Auto: San Andreas]] and [[Grand Theft Auto IV]]. It is used to define standard map objects linked to an animation. Its format is almost exactly like [[OBJS|standard map objects]] but with one additional parameter for the animation file. GTA IV added a section <code>tanm</code> that supports time controlled objects linked to animations.
 
== Format ==
=== GTA San Andreas ===
{{Pre|
anim
Id, ModelName, TxdName, AnimationName, DrawDistance, Flags
end
}}
 
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!style="width: 3em;" |{{Icon-square|sa}}
!style="width: 12em;" |Identifier
!style="width: 6em;" |Type
!Description
|-
|-
|[[ECola]] ||eCola
|A ||Id ||integer ||Unique object ID.
|-
|-
|Talk:ECola ||Talk:eCola
|B ||ModelName ||string ||Name of the <code>.dff</code> model file without extension.
|-
|C ||TxdName ||string ||Name of the <code>.txd</code> texture dictionary without extension.
|-
|D ||AnimationName ||string ||Name of the <code>.ifp</code> animation file without extension.
|-
|E ||DrawDistance ||float ||Draw distance in [[unit]]s.
|-
|F ||Flags ||integer ||Object flags.
|}
 
Note that animated models still have static collisions. This means that the collision do not animate with the model since it does not contain bone information for the animation. If you want to move objects, you can do this using the script.
 
=== GTA IV ===
{{Pre|
anim
ModelName, TxdName, AnimationName, DrawDistance, Flag, unknown, MinX, MinY, MinZ, MaxX, MaxY, MaxZ, SphereX, SphereY, SphereZ, Radius, LODModel
end
}}
 
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!style="width: 3em;" |{{Icon-square|4}}
!style="width: 12em;" |Identifier
!style="width: 6em;" |Type
!Description
|-
|A ||ModelName ||string ||Name of the <code>[[WDR|.wdr]]</code> model file without extension.
|-
|B ||TxdName ||string ||Name of the <code>.wtd</code> texture dictionary without extension.
|-
|C ||AnimationName ||string ||Name of the <code>[[WAD|.wad]]</code> animation file without extension.
|-
|D ||DrawDistance ||float ||Draw distance in units.
|-
|E ||Flag ||integer ||Object flag.
|-
|F ||''unknown'' ||float ||Unknown integer (0 by default).
|-
|G,H,I ||MinX, MinY, MinZ ||float[3] ||Lower left corner of the bounding box for the object.
|-
|J,K,L ||MaxX, MaxY, MaxZ ||float[3] ||Upper right corner of the bounding box for the object.
|-
|M,N,O ||SphereX, SphereY, SphereZ ||float[3] ||Center of the bounding sphere for the object.
|-
|P ||Radius ||float ||Radius of the bounding sphere into all dimensions.
|-
|Q ||LODModel ||string ||Name of the <code>[[WDD|.wdd]]</code> file that contains the ''lod model'' for the defined modelname.
|}
|}
== Statistics ==
Total number of <code>anim</code> entries in:
:GTA San Andreas: 54
:GTA IV: 158

Latest revision as of 14:20, 14 July 2018

ANIM (IDE section)
Supported games:GTA San Andreas GTA IV
Short description:Defines animated map objects
IDE Sections:
2DFX AMAT ANIM CARS HIER MLO OBJS
PATH PEDS TANM TOBJ TREE TXDP WEAP

anim is a section in the item definition file in Grand Theft Auto: San Andreas and Grand Theft Auto IV. It is used to define standard map objects linked to an animation. Its format is almost exactly like standard map objects but with one additional parameter for the animation file. GTA IV added a section tanm that supports time controlled objects linked to animations.

Format

GTA San Andreas

anim
Id, ModelName, TxdName, AnimationName, DrawDistance, Flags
end
GTA San Andreas Identifier Type Description
A Id integer Unique object ID.
B ModelName string Name of the .dff model file without extension.
C TxdName string Name of the .txd texture dictionary without extension.
D AnimationName string Name of the .ifp animation file without extension.
E DrawDistance float Draw distance in units.
F Flags integer Object flags.

Note that animated models still have static collisions. This means that the collision do not animate with the model since it does not contain bone information for the animation. If you want to move objects, you can do this using the script.

GTA IV

anim
ModelName, TxdName, AnimationName, DrawDistance, Flag, unknown, MinX, MinY, MinZ, MaxX, MaxY, MaxZ, SphereX, SphereY, SphereZ, Radius, LODModel
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 DrawDistance float Draw distance in units.
E Flag integer Object flag.
F unknown float Unknown integer (0 by default).
G,H,I MinX, MinY, MinZ float[3] Lower left corner of the bounding box for the object.
J,K,L MaxX, MaxY, MaxZ float[3] Upper right corner of the bounding box for the object.
M,N,O SphereX, SphereY, SphereZ float[3] Center of the bounding sphere for the object.
P Radius float Radius of the bounding sphere into all dimensions.
Q LODModel string Name of the .wdd file that contains the lod model for the defined modelname.

Statistics

Total number of anim entries in:

GTA San Andreas: 54
GTA IV: 158