OBJS: Difference between revisions

181 bytes added ,  27 August 2018
m
no edit summary
(contributions from myself, Aschratt, and LINK2012)
mNo edit summary
 
Line 1: Line 1:
{{Research}}
{{Research}}
{{IdeSection
{{IdeSection
|game        = {{Icon-square|t}} {{Icon-square|4}}
|game        = {{Icon|t}} {{Icon|4}}
|description = Defines simple objects
|description = Defines simple objects
}}
}}
'''<code>objs</code>''' is a section in the item definition file in [[Grand Theft Auto III]], [[Grand Theft Auto: Vice City]], [[Grand Theft Auto: San Andreas]], and [[Grand Theft Auto IV]]. It is used to define simple objects. There are also sections to extend default object definitions:
'''<code>objs</code>''' is a section in the [[Item Definition|item definition]] file in [[Grand Theft Auto III]], [[Grand Theft Auto: Vice City]], [[Grand Theft Auto: San Andreas]], and [[Grand Theft Auto IV]]. It is used to define simple objects. There are also sections to extend default object definitions:


* <code>[[TOBJ|tobj]]</code> for defining an additional ingame time range the object gets rendered in.
* <code>[[TOBJ|tobj]]</code> for defining an additional ingame time range the object gets rendered in.
Line 28: Line 28:
This is used for non-breakable objects.
This is used for non-breakable objects.
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!style="width: 4em;" |{{Icon-square|t}}
!style="width: 4em;" |{{Icon|t}}
!style="width: 12em;" |Identifier
!style="width: 12em;" |Identifier
!style="width: 6em;" |Type
!style="width: 6em;" |Type
Line 37: Line 37:
|B ||ModelName ||string ||Name of the <code>.dff</code> model file without extension.
|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.
|C ||TxdName ||string ||Name of the <code>.txd</code> [[Texture Archive|texture dictionary]] without extension.
|-
|-
|D ||MeshCount ||integer ||Number of meshes. 1 for this type.
|D ||MeshCount ||integer ||Number of meshes. 1 for this type.
Line 43: Line 43:
|E ||DrawDistance ||float ||Draw distance in [[unit]]s.
|E ||DrawDistance ||float ||Draw distance in [[unit]]s.
|-
|-
|F ||Flags ||integer ||Object flags.
|F ||Flags ||integer ||[[Item Definition#IDE Flags|Object flags]].
|}
|}


Line 49: Line 49:
This is used for breakable objects.
This is used for breakable objects.
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!style="width: 4em;" |{{Icon-square|t}}
!style="width: 4em;" |{{Icon|t}}
!style="width: 12em;" |Identifier
!style="width: 12em;" |Identifier
!style="width: 6em;" |Type
!style="width: 6em;" |Type
Line 58: Line 58:
|B ||ModelName ||string ||Name of the <code>.dff</code> model file without extension.
|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.
|C ||TxdName ||string ||Name of the <code>.txd</code> [[Texture Archive|texture dictionary]] without extension.
|-
|-
|D ||MeshCount ||integer ||Number of meshes. 2 for this type.
|D ||MeshCount ||integer ||Number of meshes. 2 for this type.
Line 64: Line 64:
|E,F ||DrawDistance1, DrawDistance2 ||float[2] ||Draw distance in [[unit]]s (one for each mesh, only the first is actually used).
|E,F ||DrawDistance1, DrawDistance2 ||float[2] ||Draw distance in [[unit]]s (one for each mesh, only the first is actually used).
|-
|-
|G ||Flags ||integer ||Object flags.
|G ||Flags ||integer ||[[Item Definition#IDE Flags|Object flags]].
|}
|}


Line 70: Line 70:
This is used for complex breakable objects.
This is used for complex breakable objects.
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
!style="width: 4em;" |{{Icon-square|t}}
!style="width: 4em;" |{{Icon|t}}
!style="width: 12em;" |Identifier
!style="width: 12em;" |Identifier
!style="width: 6em;" |Type
!style="width: 6em;" |Type
Line 79: Line 79:
|B ||ModelName ||string ||Name of the <code>.dff</code> model file without extension.
|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.
|C ||TxdName ||string ||Name of the <code>.txd</code> [[Texture Archive|texture dictionary]] without extension.
|-
|-
|D ||MeshCount ||integer ||Number of meshes. 3 for this type.
|D ||MeshCount ||integer ||Number of meshes. 3 for this type.
Line 85: Line 85:
|E,F,G ||DrawDistance1, DrawDistance2, DrawDistance3 ||float[3] ||Draw distance in [[unit]]s (one for each mesh, only the first is actually used).
|E,F,G ||DrawDistance1, DrawDistance2, DrawDistance3 ||float[3] ||Draw distance in [[unit]]s (one for each mesh, only the first is actually used).
|-
|-
|H ||Flags ||integer ||Object flags.
|H ||Flags ||integer ||[[Item Definition#IDE Flags|Object flags]].
|}
|}


Line 91: Line 91:
This is used for non-breakable objects and behaves equivalently to [[#Type 1|Type 1]].
This is used for non-breakable objects and behaves equivalently to [[#Type 1|Type 1]].
{|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-square|sa}}
!style="width: 3em;" |{{Icon|sa}}
!style="width: 12em;" |Identifier
!style="width: 12em;" |Identifier
!style="width: 6em;" |Type
!style="width: 6em;" |Type
Line 100: Line 100:
|B ||ModelName ||string ||Name of the <code>.dff</code> model file without extension.
|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.
|C ||TxdName ||string ||Name of the <code>.txd</code> [[Texture Archive|texture dictionary]] without extension.
|-
|-
|D ||DrawDistance ||float ||Draw distance in [[unit]]s.
|D ||DrawDistance ||float ||Draw distance in [[unit]]s.
|-
|-
|E ||Flags ||integer ||Object flags.
|E ||Flags ||integer ||[[Item Definition#IDE Flags|Object flags]].
|}
|}


Line 115: Line 115:
==== Type 1 ====
==== Type 1 ====
{|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-square|4}}
!style="width: 3em;" |{{Icon|4}}
!style="width: 12em;" |Identifier
!style="width: 12em;" |Identifier
!style="width: 6em;" |Type
!style="width: 6em;" |Type
Line 162: Line 162:


{{fdl}}
{{fdl}}
 
{{3-navi}}
{{modding}}
{{VC-navi}}
12,236

edits