Difference between revisions of "Object.dat"

From GTAMods Wiki
Jump to navigation Jump to search
m (Spaceeinstein moved page Dynamic Object to Object.dat over redirect)
(format)
Line 1: Line 1:
 
{{file-stub}}
 
{{file-stub}}
 +
{{lowercase}}
 +
The '''<code>object.dat</code>''' file is located in the <code>.\data</code> directory of [[GTA III]], [[Vice City]], and [[San Andreas]], or the <code>.\common\data</code> directory of [[GTA IV]]. It allows objects defined in an [[IDE]] file to be dynamic and able to interact with the environment.
  
'''Dynamic objects''' are defined in the <code>object.dat</code> file. They must be defined in an [[IDE]] file first. With additionally defining them in the <code>object.dat</code> file they will have special abilities. Dynamic objects are used to create objects which are able to interact with their environment. For example they are able to explode or open when the player approaches them ([[Garage|garage doors]]).
+
== Format ==
 +
Documentation of the format already exists within the file itself.
  
{{N|4|SA}}
+
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
 +
!style="width: 3em;" |{{Icon|3}} {{Icon|VC}}
 +
!style="width: 3em;" |{{Icon|SA}}
 +
!style="width: 12em;" |Identifier
 +
!style="width: 6em;" |Type
 +
!Description
 +
|-
 +
|colspan="2" |A ||Object name ||string ||
 +
|-
 +
|colspan="2" |B ||Mass ||float ||
 +
|-
 +
|colspan="2" |C ||TurnMass ||float ||
 +
|-
 +
|colspan="2" |D ||Air Resistance ||float ||
 +
|-
 +
|colspan="2" |E ||Elasticity ||float ||
 +
|-
 +
|colspan="2" |F ||Percent Submerged ||float ||
 +
|-
 +
|colspan="2" |G ||Uproot Limit ||float ||
 +
|-
 +
|colspan="2" |H ||Collision Damage Multiplier ||float ||
 +
|-
 +
|colspan="2" |I ||Collision Damage Effect ||integer ||
 +
|-
 +
|colspan="2" |J ||Special Collision Response Cases ||integer ||
 +
|-
 +
|colspan="2" |K ||Camera to avoid this object ||integer ||
 +
|-
 +
| ||L ||{{a|c}} |Causes Explosion ||integer ||
 +
|-
 +
| ||M ||{{a|c}} |FX_TYPE ||integer ||
 +
|-
 +
| ||N,O,P ||{{a|c}} |FX_OFFSET ||float[3] ||
 +
|-
 +
| ||Q ||{{a|c}} |FX_NAME ||string ||
 +
|-
 +
| ||R ||{{a|c}} |B-SM ||float ||
 +
|-
 +
| ||S ||{{a|c}} |B-VX ||float ||
 +
|-
 +
| ||T ||{{a|c}} |B-VY ||float ||
 +
|-
 +
| ||U ||{{a|c}} |B-VZ ||float ||
 +
|-
 +
| ||V ||{{a|c}} |B-VR ||float ||
 +
|-
 +
| ||W ||{{a|c}} |B-GUN ||integer ||
 +
|-
 +
| ||X ||{{a|c}} |B_SPK ||integer ||
 +
|}
  
[[Category:Map_Formats]]
+
[[Category:Map Formats]]
 +
{{N|4|SA|VC|3}}

Revision as of 04:20, 12 September 2017

The object.dat file is located in the .\data directory of GTA III, Vice City, and San Andreas, or the .\common\data directory of GTA IV. It allows objects defined in an IDE file to be dynamic and able to interact with the environment.

Format

Documentation of the format already exists within the file itself.

GTA III Vice City San Andreas Identifier Type Description
A Object name string
B Mass float
C TurnMass float
D Air Resistance float
E Elasticity float
F Percent Submerged float
G Uproot Limit float
H Collision Damage Multiplier float
I Collision Damage Effect integer
J Special Collision Response Cases integer
K Camera to avoid this object integer
L Causes Explosion integer
M FX_TYPE integer
N,O,P FX_OFFSET float[3]
Q FX_NAME string
R B-SM float
S B-VX float
T B-VY float
U B-VZ float
V B-VR float
W B-GUN integer
X B_SPK integer