Difference between revisions of "CARS (IDE Section)"

From GTAMods Wiki
Jump to navigation Jump to search
m (GTA IV)
m (center style)
Line 14: Line 14:
 
This section is mainly used in the <code>{{Dir|3}}\data\default.ide</code> file. Each type of vehicle has its own format.
 
This section is mainly used in the <code>{{Dir|3}}\data\default.ide</code> file. Each type of vehicle has its own format.
  
{| class="wikitable" width="100%"
+
{| class="wikitable center-col-1 center-col-2" width="100%"
 
! width="36px"| {{Icon|3}}
 
! width="36px"| {{Icon|3}}
 
! width="150px"| Identifier
 
! width="150px"| Identifier
Line 20: Line 20:
 
! Description
 
! Description
 
|-
 
|-
| <center>A</center> || <center>Id</center> || integer || Unique object ID.
+
| A || Id || integer || Unique object ID.
 
|-
 
|-
| <center>B</center> || <center>ModelName</center> || string || Name of the <code>.dff</code> [[model file]] without extension.
+
| B || ModelName || string || Name of the <code>.dff</code> [[model file]] without extension.
 
|-
 
|-
| <center>C</center> || <center>TxdName</center> || string || Name of the <code>.txd</code> [[texture dictionary]] without extension.
+
| C || TxdName || string || Name of the <code>.txd</code> [[texture dictionary]] without extension.
 
|-
 
|-
| <center>D</center> || <center>Type</center> || string || Type of vehicle, which includes ''car'', ''boat'', ''train'', and ''plane''.<br>This data is related to hardcoded functions and must not be changed or else it might crash the game.
+
| D || Type || string || Type of vehicle, which includes ''car'', ''boat'', ''train'', ''heli'', and ''plane''.<br>This data is related to hardcoded functions and must not be changed or else it might crash the game.
 
|-
 
|-
| <center>E</center> || <center>HandlingId</center> || string || Name corresponding to its handling data in the <code>[[handling.cfg]]</code> file.
+
| E || HandlingId || string || Name corresponding to its handling data in the <code>[[handling.cfg]]</code> file.
 
|-
 
|-
| <center>F</center> || <center>GameName</center> || string || Name corresponding to its [[GXT]] entry, case sensitive and must be seven characters or less!<br>Invalid name will show up as ''MODEL missing''
+
| F || GameName || string || Name corresponding to its [[GXT]] entry, case sensitive and must be seven characters or less!<br>Invalid name will show up as ''MODEL missing''
 
|-
 
|-
| <center>G</center> || <center>Class</center> || string || Class of the vehicle (see [[#Vehicle Classes|below]]).
+
| G || Class || string || Class of the vehicle (see [[#Vehicle Classes|below]]).
 
|-
 
|-
| <center>H</center> || <center>Frq</center> || integer || Frequency of the vehicle spawning randomly on the streets.
+
| H || Frq || integer || Frequency of the vehicle spawning randomly on the streets.
 
|-
 
|-
| <center>I</center> || <center>Lvl</center> || integer || unknown <!--Island appearance-->
+
| I || Lvl || integer || unknown <!--Island appearance-->
 
|-
 
|-
| <center>J</center> || <center>Comprules</center> || hex || Component rules, alters how vehicle models' "extras" behave, [[#Comprules|see below]] for list
+
| J || Comprules || hex || Component rules, alters how vehicle models' "extras" behave, [[#Comprules|see below]] for list
 
|-
 
|-
| <center>K</center> || Type<br>''car'': WheelModelId<br>''boat'': unused<br>''train'': unused<br>''plane'': LODModel || integer || <br>ID number of wheel model.<br>-<br>-<br>ID number of [[LOD]] model &ndash; can be any valid [[OBJS|object]].
+
| K || Type<br>''car'': WheelModelId<br>''boat'': unused<br>''train'': unused<br>''heli'': unused<br>''plane'': LODModel || integer || <br>ID number of wheel model.<br>-<br>-<br>-<br>ID number of [[LOD]] model &ndash; can be any valid [[OBJS|object]].
 
|-
 
|-
| <center>L</center> || Type<br>''car'': WheelScale<br>''boat'': unused<br>''train'': unused<br>''plane'': unused || float || <br>Scale of wheel and [[Collision File|collision]] models, 1.0 for original size of wheel and collision models<br>-<br>-<br>-
+
| L || Type<br>''car'': WheelScale<br>''boat'': unused<br>''train'': unused<br>''heli'': unused<br>''plane'': unused || float || <br>Scale of wheel and [[Collision File|collision]] models, 1.0 for original size of wheel and collision models<br>-<br>-<br>-<br>-
 
|}
 
|}
  
Line 85: Line 85:
 
By default all cars are defined inside the <code>{{Dir|vc}}\data\default.ide</code> file. Unlike ''GTA III'' there are the types ''bike'' and ''heli'' but ''train'' is missing or unused.
 
By default all cars are defined inside the <code>{{Dir|vc}}\data\default.ide</code> file. Unlike ''GTA III'' there are the types ''bike'' and ''heli'' but ''train'' is missing or unused.
  
{| class="wikitable" width="100%"
+
{| class="wikitable center-col-1 center-col-2" width="100%"
 
! width="36px"| {{Icon|VC}}
 
! width="36px"| {{Icon|VC}}
 
! width="150px"| Identifier
 
! width="150px"| Identifier
Line 91: Line 91:
 
! Description
 
! Description
 
|-
 
|-
| <center>A</center> || <center>Id</center> || integer || Unique object ID.
+
| A || Id || integer || Unique object ID.
 
|-
 
|-
| <center>B</center> || <center>ModelName</center> || string || Name of the <code>.dff</code> [[model file]] without extension.
+
| B || ModelName || string || Name of the <code>.dff</code> [[model file]] without extension.
 
|-
 
|-
| <center>C</center> || <center>TxdName</center> || string || Name of the <code>.txd</code> [[texture dictionary]] without extension.
+
| C || TxdName || string || Name of the <code>.txd</code> [[texture dictionary]] without extension.
 
|-
 
|-
| <center>D</center> || <center>Type</center> || string || Type of vehicle, which includes ''car'', ''boat'', ''train'', ''heli'', ''plane'', and ''bike''. Flyable helicopters are of type ''car''.
+
| D || Type || string || Type of vehicle, which includes ''car'', ''boat'', ''train'', ''heli'', ''plane'', and ''bike''. Flyable helicopters are of type ''car''.
 
|-
 
|-
| <center>E</center> || <center>HandlingId</center> || string || Name corresponding to its handling data in the <code>handling.cfg</code> file.
+
| E || HandlingId || string || Name corresponding to its handling data in the <code>handling.cfg</code> file.
 
|-
 
|-
| <center>F</center> || <center>GameName</center> || string || Name corresponding to its ''GXT'' entry, case sensitive and must be seven characters or less.<br>Invalid name will not show up in the game.
+
| F || GameName || string || Name corresponding to its ''GXT'' entry, case sensitive and must be seven characters or less.<br>Invalid name will not show up in the game.
 
|-
 
|-
| <center>G</center> || <center>Anims</center> || string || Appropriate animation file mainly used on bikes.
+
| G || Anims || string || Appropriate animation file mainly used on bikes.
 
|-
 
|-
| <center>H</center> || <center>Class</center> || string || Class of the vehicle (see [[#Vehicle_Classes|below]]).
+
| H || Class || string || Class of the vehicle (see [[#Vehicle_Classes|below]]).
 
|-
 
|-
| <center>I</center> || <center>Frq</center> || integer || Frequency of the vehicle spawning randomly on the streets.
+
| I || Frq || integer || Frequency of the vehicle spawning randomly on the streets.
 
|-
 
|-
| <center>J</center> || <center>Lvl</center> || integer || unknown <!--Island appearance-->
+
| J || Lvl || integer || unknown <!--Island appearance-->
 
|-
 
|-
| <center>K</center> || <center>Comprules</center> || hex || Component rules, alters how vehicle models' "extras" behave, [[#Comprules_2|see below]] for list
+
| K || Comprules || hex || Component rules, alters how vehicle models' "extras" behave, [[#Comprules_2|see below]] for list
 
|-
 
|-
| <center>L</center> || Type<br>''car'': WheelID<br>''boat'': unused<br>''train'': unused<br>''heli'': unused<br>''plane'': LODModel<br>''bike'': unknown || integer || <br>ID number of wheel model.<br>-<br>-<br>-<br>ID number of ''LOD'' model &ndash; can be any valid [[OBJS|object]].<br>unknown
+
| L || {{a|l}} | Type<br>''car'': WheelID<br>''boat'': unused<br>''train'': unused<br>''heli'': unused<br>''plane'': LODModel<br>''bike'': unknown || integer || <br>ID number of wheel model.<br>-<br>-<br>-<br>ID number of ''LOD'' model &ndash; can be any valid [[OBJS|object]].<br>unknown
 
|-
 
|-
| <center>M</center> || Type<br>''car'': WheelScale<br>''boat'': unused<br>''train'': unused<br>''heli'': unused<br>''plane'': unused<br>''bike'': WheelScale || float || <br>Scale of wheel and collision models, 1.0 for original size of wheel and collision models<br>-<br>-<br>-<br>-<br>Scale of wheel collision model, 1.0 for original size of wheel collision models; wheel visually not affected
+
| M || {{a|l}} | Type<br>''car'': WheelScale<br>''boat'': unused<br>''train'': unused<br>''heli'': unused<br>''plane'': unused<br>''bike'': WheelScale || float || <br>Scale of wheel and collision models, 1.0 for original size of wheel and collision models<br>-<br>-<br>-<br>-<br>Scale of wheel collision model, 1.0 for original size of wheel collision models; wheel visually not affected
 
|}
 
|}
 
<!--
 
<!--
Line 187: Line 187:
 
  ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Flags, Comprules, WheelID, WheelScale_Front, WheelScale_Rear, Unknown_value
 
  ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Flags, Comprules, WheelID, WheelScale_Front, WheelScale_Rear, Unknown_value
  
{| class="wikitable" width="100%"
+
{| class="wikitable center-col-1" width="100%"
 
!width="250px"|Identifier
 
!width="250px"|Identifier
 
!Description
 
!Description
 
|-
 
|-
|<center>ID</center>||Unique model ID
+
|ID||Unique model ID
 
|-
 
|-
|<center>ModelName</center>||Name of the <code>.dff</code> ''model file'' without extension.
+
|ModelName||Name of the <code>.dff</code> ''model file'' without extension.
 
|-
 
|-
|<center>TxdName</center>||Name of the <code>.txd</code> ''texture dictionary'' without extension.
+
|TxdName||Name of the <code>.txd</code> ''texture dictionary'' without extension.
 
|-
 
|-
|<center>Type</center>||Type of vehicle, which includes ''trailer'', ''bmx'', ''bike'', ''train'', ''boat'', ''plane'', ''heli'', ''quad'', ''mtruck'' and ''car''
+
|Type||Type of vehicle, which includes ''trailer'', ''bmx'', ''bike'', ''train'', ''boat'', ''plane'', ''heli'', ''quad'', ''mtruck'' and ''car''
 
|-
 
|-
|<center>HandlingID</center>||Name corresponding to its handling data in the ''handling.cfg'' file.
+
|HandlingID||Name corresponding to its handling data in the ''handling.cfg'' file.
 
|-
 
|-
|<center>GameName</center>||Name corresponding to its ''GXT'' entry, case sensitive and must be seven characters or less.<br>Invalid name will not show up in the game.
+
|GameName||Name corresponding to its ''GXT'' entry, case sensitive and must be seven characters or less.<br>Invalid name will not show up in the game.
 
|-
 
|-
|<center>Anims</center>||Appropriate character animation
+
|Anims||Appropriate character animation
 
|-
 
|-
|<center>Class</center>||Class of the vehicle
+
|Class||Class of the vehicle
 
|-
 
|-
|<center>Frequency</center>||Frequency of the vehicle spawning randomly on the streets.
+
|Frequency||Frequency of the vehicle spawning randomly on the streets.
 
|-
 
|-
|<center>Flags</center>||Unknown integer.
+
|Flags||Unknown integer.
 
|-
 
|-
|<center>Comprules</center>||Component rules, alters how vehicle models' "extras" behave, [[#Comprules_3|see below]] for list
+
|Comprules||Component rules, alters how vehicle models' "extras" behave, [[#Comprules_3|see below]] for list
 
|-
 
|-
|<center>WheelID</center>||Wheel index, needs to be -1 for vehicles to use wheel model defined in the vehicle's model (wheels.dff is no longer used)
+
|WheelID||Wheel index, needs to be -1 for vehicles to use wheel model defined in the vehicle's model (wheels.dff is no longer used)
 
|-
 
|-
|<center>WheelScale_Front</center>||Scale of front wheels and collision models for types ''car'', ''trailer'', ''quad'', ''mtruck'', ''bmx'' and ''bike''
+
|WheelScale_Front||Scale of front wheels and collision models for types ''car'', ''trailer'', ''quad'', ''mtruck'', ''bmx'' and ''bike''
 
|-
 
|-
|<center>WheelScale_Rear</center>||Scale of rear wheels and collision models for types ''car'', ''trailer'', ''quad'', ''mtruck'', ''bmx'' and ''bike''
+
|WheelScale_Rear||Scale of rear wheels and collision models for types ''car'', ''trailer'', ''quad'', ''mtruck'', ''bmx'' and ''bike''
 
|-
 
|-
|<center>Wheel Upgrade Class</center>||The wheel set this vehicle relates to, the ids are equivalent to the ones defined in [[carmods.dat]]
+
|Wheel Upgrade Class||The wheel set this vehicle relates to, the ids are equivalent to the ones defined in [[carmods.dat]]
 
|}
 
|}
  
Line 269: Line 269:
 
By default all cars are defined inside the <code>..\common\data\vehicles.ide</code> file.
 
By default all cars are defined inside the <code>..\common\data\vehicles.ide</code> file.
  
{| class="wikitable" width="100%"
+
{| class="wikitable center-col-1 center-col-2" width="100%"
 
! width="36px"| {{Icon|4}}
 
! width="36px"| {{Icon|4}}
 
! width="150px"| Identifier
 
! width="150px"| Identifier
Line 275: Line 275:
 
! Description
 
! Description
 
|-
 
|-
| <center>A</center> || <center>ModelName</center> || 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.
 
|-
 
|-
| <center>B</center> || <center>TxdName</center> || 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.
 
|-
 
|-
| <center>C</center> || <center>Type</center> || string || Type of vehicle, which includes ''car'', ''bike'', ''boat'', ''train'', ''heli'', and ''plane''.
+
| C || Type || string || Type of vehicle, which includes ''car'', ''bike'', ''boat'', ''train'', ''heli'', and ''plane''.
 
|-
 
|-
| <center>D</center> || <center>HandlingId</center> || string || Name corresponding to its handling data in the <code>handling.dat</code> file.
+
| D || HandlingId || string || Name corresponding to its handling data in the <code>handling.dat</code> file.
 
|-
 
|-
| <center>E</center> || <center>GameName</center> || string || Name corresponding to its ''GXT'' entry (changing this will also change the sound of the vehicle)
+
| E || GameName || string || Name corresponding to its ''GXT'' entry (changing this will also change the sound of the vehicle)
 
|-
 
|-
| <center>F</center> || <center>Anims</center> || string || Name of the animation used while entering and driving a vehicle from <code>anim.img</code> file.
+
| F || Anims || string || Name of the animation used while entering and driving a vehicle from <code>anim.img</code> file.
 
*VEH@STD - Standard Car
 
*VEH@STD - Standard Car
 
*VEH@VAN - Van
 
*VEH@VAN - Van
Line 302: Line 302:
 
*VEH@TRAIN - Train
 
*VEH@TRAIN - Train
 
|-
 
|-
| <center>G</center> || <center>Anims2</center> || string || Name of the secondary vehicle animation used from <code>anim.img</code> file.
+
| G || Anims2 || string || Name of the secondary vehicle animation used from <code>anim.img</code> file.
 
*NULL - Ignored
 
*NULL - Ignored
 
*VEH@HELICOPTER_XX_H
 
*VEH@HELICOPTER_XX_H
Line 311: Line 311:
 
*VEH@TRUCK_BA_XX, _LE1_RI1, _LO1_LO1, _PHANTOM
 
*VEH@TRUCK_BA_XX, _LE1_RI1, _LO1_LO1, _PHANTOM
 
|-
 
|-
| <center>H</center> || <center>Frq</center> || integer || Frequency of the vehicle spawning randomly on the streets.
+
| H || Frq || integer || Frequency of the vehicle spawning randomly on the streets.
 
|-
 
|-
| <center>I</center> || <center>MaxNum</center> || integer || Maximum number of vehicles to exist at a time.
+
| I || MaxNum || integer || Maximum number of vehicles to exist at a time.
 
|-
 
|-
| <center>J,K</center> || <center>WheelRadius</center> || float[2] ||  
+
| J,K || WheelRadius || float[2] ||  
 
|-
 
|-
| <center>L</center> || <center>DefDirtLevel</center> || float || Dirt level of traffic vehicles that includes a range from set value to 1.0.<br>Supported values range from 0.0 (clean) to 1.0 (dirty).
+
| L || DefDirtLevel || float || Dirt level of traffic vehicles that includes a range from set value to 1.0.<br>Supported values range from 0.0 (clean) to 1.0 (dirty).
 
|-
 
|-
| <center>M</center> || <center>LodMult</center> || integer ||  
+
| M || LodMult || integer ||  
 
|-
 
|-
| <center>N</center> || <center>Swankness</center> || float ||  
+
| N || Swankness || float ||  
 
|-
 
|-
| <center>O</center> || <center>Flags</center> || string ||  
+
| O || Flags || string ||  
 
* noboot
 
* noboot
 
* smallworker
 
* smallworker
Line 358: Line 358:
 
The class of a vehicle helps determines where a vehicle should spawn, with the help of [[hardcoded]] features and the [[script]]. The ''ignore'' class is special for its ability to prevent vehicles assigned to that class from spawning as a regular NPC vehicle in traffic. Peds can be assigned to drive a class of vehicle in the [[PEDS#Vehicle_Class_2|PEDS]] section of the IDE file. The Mr Whoopee in ''GTA III'' uses the unique class ''special'' that no other vehicles have used. The following table shows the classes that are available and used in the game.
 
The class of a vehicle helps determines where a vehicle should spawn, with the help of [[hardcoded]] features and the [[script]]. The ''ignore'' class is special for its ability to prevent vehicles assigned to that class from spawning as a regular NPC vehicle in traffic. Peds can be assigned to drive a class of vehicle in the [[PEDS#Vehicle_Class_2|PEDS]] section of the IDE file. The Mr Whoopee in ''GTA III'' uses the unique class ''special'' that no other vehicles have used. The following table shows the classes that are available and used in the game.
  
{| class="wikitable collapsible" width="100%"
+
{| class="wikitable collapsible center-col-1 center-col-2 center-col-3" width="100%"
 
!width="120px"|Flag
 
!width="120px"|Flag
 
!width="100px"|Supported games
 
!width="100px"|Supported games
Line 364: Line 364:
 
!Description
 
!Description
 
|-
 
|-
|<center>0</center>||<center>{{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0000 0000 0000 0000</code></center>||ignore
+
| 0|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0000 0000 0000 0000</code>||ignore
 
|-
 
|-
|<center>1</center>||<center>{{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0000 0000 0000 0001</code></center>||normal
+
| 1|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0000 0000 0000 0001</code>||normal
 
|-
 
|-
|<center>2</center>||<center>{{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0000 0000 0000 0010</code></center>||poorfamily
+
| 2|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0000 0000 0000 0010</code>||poorfamily
 
|-
 
|-
|<center>4</center>||<center>{{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0000 0000 0000 0100</code></center>||richfamily
+
| 4|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0000 0000 0000 0100</code>||richfamily
 
|-
 
|-
|<center>8</center>||<center>{{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0000 0000 0000 1000</code></center>||executive
+
| 8|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0000 0000 0000 1000</code>||executive
 
|-
 
|-
|<center>16</center>||<center>{{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0000 0000 0001 0000</code></center>||worker
+
| 16|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0000 0000 0001 0000</code>||worker
 
|-
 
|-
|<center>32</center>||<center>{{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0000 0000 0010 0000</code></center>||big
+
| 32|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0000 0000 0010 0000</code>||big
 
|-
 
|-
|<center>64</center>||<center>{{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0000 0000 0100 0000</code></center>||taxi
+
| 64|| {{Icon|3}} {{Icon|VC}} {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0000 0000 0100 0000</code>||taxi
 
|-
 
|-
|<center>128</center>||<center>{{Icon|VC}} {{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0000 0000 1000 0000</code></center>||moped
+
| 128|| {{Icon|VC}} {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0000 0000 1000 0000</code>||moped
 
|-
 
|-
|<center>256</center>||<center>{{Icon|VC}} {{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0000 0001 0000 0000</code></center>||motorbike
+
| 256|| {{Icon|VC}} {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0000 0001 0000 0000</code>||motorbike
 
|-
 
|-
|<center>512</center>||<center>{{Icon|VC}} {{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0000 0010 0000 0000</code></center>||leisureboat
+
| 512|| {{Icon|VC}} {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0000 0010 0000 0000</code>||leisureboat
 
|-
 
|-
|<center>1024</center>||<center>{{Icon|VC}} {{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0000 0100 0000 0000</code></center>||workerboat
+
| 1024|| {{Icon|VC}} {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0000 0100 0000 0000</code>||workerboat
 
|-
 
|-
|<center>2048</center>||<center>{{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0000 1000 0000 0000</code></center>||bicycle
+
| 2048|| {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0000 1000 0000 0000</code>||bicycle
 
|-
 
|-
|<center>4096</center>||<center>{{Icon|SA}} {{Icon|4}}</center>||<center><code>0000 0000 0001 0000 0000 0000</code></center>||on foot  
+
| 4096|| {{Icon|SA}} {{Icon|4}}|| <code>0000 0000 0001 0000 0000 0000</code>||on foot  
 
|}  
 
|}  
  

Revision as of 19:36, 26 June 2015

CARS redirects here. For the IPL section see CARS (IPL Section)
CARS (IDE section)
Supported games:GTA III, GTA VC, GTA SA, GTA IV
Brief description:Used to define vehicles
IDE Sections:
2DFX AMAT ANIM CARS HIER HAND MLO OBJS
PATH PEDS TANM TOBJ TREE TXDP WEAP

CARS is a section in the item definition file. It is used to define vehicles and some their properties.

Format

GTA III

This section is mainly used in the .\data\default.ide file. Each type of vehicle has its own format.

GTA III 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 Type string Type of vehicle, which includes car, boat, train, heli, and plane.
This data is related to hardcoded functions and must not be changed or else it might crash the game.
E HandlingId string Name corresponding to its handling data in the handling.cfg file.
F GameName string Name corresponding to its GXT entry, case sensitive and must be seven characters or less!
Invalid name will show up as MODEL missing
G Class string Class of the vehicle (see below).
H Frq integer Frequency of the vehicle spawning randomly on the streets.
I Lvl integer unknown
J Comprules hex Component rules, alters how vehicle models' "extras" behave, see below for list
K Type
car: WheelModelId
boat: unused
train: unused
heli: unused
plane: LODModel
integer
ID number of wheel model.
-
-
-
ID number of LOD model – can be any valid object.
L Type
car: WheelScale
boat: unused
train: unused
heli: unused
plane: unused
float
Scale of wheel and collision models, 1.0 for original size of wheel and collision models
-
-
-
-

Comprules

This is a list of all non-zero values used in the column.

Non-Zero Value Effect Vehicle(s)
0x1f10 Forces vehicle to always spawn with one of its first two extras. If a vehicle has more than two extras, one of the first two will always spawn and another extra also may spawn with either of the first two extras. Very rarely (likely due to a glitch) these vehicles can spawn without an extra. Taxi, Hoods Rumpo XL
0x2ff0 When it is raining, vehicle will spawn with its first extra. Vehicle may also spawn with other extras (if present in the model) in addition to the first extra. Stinger, Stallion

Wheels

Wheel models are located in the ..\models\generic\wheels.DFF file. Their textures are located in the ..\models\misc.txd file. Just like the cars themselves they are defined inside the ..\data\default.ide file by default. The following table shows the different wheels and their ID's.

ID 160 161 162 163 164 165 166
Image wheel_sport64 wheel_saloon64 wheel_lightvan64 wheel_classic64 wheel_alloy64 wheel_lighttruck64 wheel_smallcar64

Vice City

By default all cars are defined inside the .\data\default.ide file. Unlike GTA III there are the types bike and heli but train is missing or unused.

Vice City 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 Type string Type of vehicle, which includes car, boat, train, heli, plane, and bike. Flyable helicopters are of type car.
E HandlingId string Name corresponding to its handling data in the handling.cfg file.
F GameName string Name corresponding to its GXT entry, case sensitive and must be seven characters or less.
Invalid name will not show up in the game.
G Anims string Appropriate animation file mainly used on bikes.
H Class string Class of the vehicle (see below).
I Frq integer Frequency of the vehicle spawning randomly on the streets.
J Lvl integer unknown
K Comprules hex Component rules, alters how vehicle models' "extras" behave, see below for list
L Type
car: WheelID
boat: unused
train: unused
heli: unused
plane: LODModel
bike: unknown
integer
ID number of wheel model.
-
-
-
ID number of LOD model – can be any valid object.
unknown
M Type
car: WheelScale
boat: unused
train: unused
heli: unused
plane: unused
bike: WheelScale
float
Scale of wheel and collision models, 1.0 for original size of wheel and collision models
-
-
-
-
Scale of wheel collision model, 1.0 for original size of wheel collision models; wheel visually not affected

Comprules

This is a list of all non-zero values used in the column.

Non-Zero Value Vehicle(s)
0x1f10 Taxi, Cabbie, Zebra Cab, Kaufman Cab
0x2ff0 Stinger, Stallion, Sabre, Sabre Turbo, Comet, Deluxo
0x4fff Flatbed, Hotring A, Hotring B, Bloodring Banger A, Bloodring Banger B
0x30123345 Caddy

Wheels

The location of the definition files, models and textures are just the same as for GTA III. However there are some different textures and models. The following table shows all Vice City wheels and their ID's.

ID 237 238 239 250 251 252 253 254 255 256
Image PC/PS2 wheel_rim wheel_offroad wheel_truck wheel_sport wheel_saloon wheel_lightvan wheel_classic wheel_alloy wheel_lighttruck wheel_smallcar
Xbox wheel_rim wheel_offroad wheel_truck wheel_sport wheel_saloon wheel_lightvan wheel_classic wheel_alloy wheel_lighttruck wheel_smallcar

San Andreas

By default all cars are defined inside the .\data\vehicles.ide file.

Car

ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Flags, Comprules, WheelID, WheelScale_Front, WheelScale_Rear, Unknown_value
Identifier Description
ID Unique model ID
ModelName Name of the .dff model file without extension.
TxdName Name of the .txd texture dictionary without extension.
Type Type of vehicle, which includes trailer, bmx, bike, train, boat, plane, heli, quad, mtruck and car
HandlingID Name corresponding to its handling data in the handling.cfg file.
GameName Name corresponding to its GXT entry, case sensitive and must be seven characters or less.
Invalid name will not show up in the game.
Anims Appropriate character animation
Class Class of the vehicle
Frequency Frequency of the vehicle spawning randomly on the streets.
Flags Unknown integer.
Comprules Component rules, alters how vehicle models' "extras" behave, see below for list
WheelID Wheel index, needs to be -1 for vehicles to use wheel model defined in the vehicle's model (wheels.dff is no longer used)
WheelScale_Front Scale of front wheels and collision models for types car, trailer, quad, mtruck, bmx and bike
WheelScale_Rear Scale of rear wheels and collision models for types car, trailer, quad, mtruck, bmx and bike
Wheel Upgrade Class The wheel set this vehicle relates to, the ids are equivalent to the ones defined in carmods.dat

Flags

According to the vehicles.ide file, flag 0x01 streams a vehicle out after it has been spawned once, and flag 0x02 whis is "used internally". There are 3 vehicles that use flag 0x01, none that use flag 0x02, and one that uses 0x07, which is not mentioned at all.

Non-Zero Value Vehicle(s)
0x01 Dumper, Mr. Whoopee, Pizzaboy
0x07 Huntley

Comprules

This is a list of all non-zero values used in the column.

Non-Zero Value Vehicle(s)
0x1012 Tram
0x1f10 Taxi, Barracks Ol, Coach, Cabbie, Slamvan
0x2ff0 Sabre, Comet, Savanna, Broadway, Tornado
0x3012 Coast Guard
0x3210 Stallion
0x3f01 Reefer
0x3f10 Securicar
0x4fff Speeder, Tropic, Flatbed, Hotring Racer A, Hotring Racer B, Bloodring Banger, DFT30
0x1f341210 NRG500
0x30123345 Caddy
0x3f341210 FCR900, BF400

Wheels

Wheel models are now in the same model as the vehicle itself. The wheels.dff and wheels.txd are present but not used. If the "WheelID" is -1, the game will scale the wheel collision, but NOT the wheel model. If "WheelID" is 0, the game will scale the collision AND the wheel model, however this only works properly if the wheel model is set up properly before exporting.

GTA IV

By default all cars are defined inside the ..\common\data\vehicles.ide file.

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 Type string Type of vehicle, which includes car, bike, boat, train, heli, and plane.
D HandlingId string Name corresponding to its handling data in the handling.dat file.
E GameName string Name corresponding to its GXT entry (changing this will also change the sound of the vehicle)
F Anims string Name of the animation used while entering and driving a vehicle from anim.img file.
  • VEH@STD - Standard Car
  • VEH@VAN - Van
  • VEH@LOW - Low to the ground
  • VEH@TRUCK - Truck
  • VEH@BUS - Bus
  • VEH@BIKE_FREEWAY - Freeway Motorcycle
  • VEH@BIKE_SCOOTER - Scooter
  • VEH@BIKE_SPT - Sports Bike
  • VEH@BIKE_DIRT - Dirt Bike
  • VEH@BIKE_CHOPPER - Chopper Motor Cycle
  • VEH@HELICOPTER - Helicopter
  • veh@boat_speed - Speed Boat
  • veh@boat_STAND_BIG - Big Boat, player stands while driving
  • veh@boat_standing - Boat that player stands while driving
  • VEH@TRAIN - Train
G Anims2 string Name of the secondary vehicle animation used from anim.img file.
  • NULL - Ignored
  • VEH@HELICOPTER_XX_H
  • VEH@HELI_ANNIH
  • VEH@VAN_LL_LO, _LR1_LF1, _HL1_HI1, _FO2_FO2, _XX_LE1, _FO1_FO1, _RI1_LE1, _RI2_LE2, _RI3_LE3
  • VEH@STD_LO1_LO1, _LO2_LO2, _LO3_LO3, _LO4_LO4, _LO5_LO5, _LE1_RI1, _RI2_LE2, _DF8, _RI1, _RI3, _XX_RI1, _XX_RI2, _RI1_LO1, _RI2_LO2, _RI3_LO3, _FO1,
  • VEH@LOW_INFERNUS, _CONV, _LE1_RI1, _LE2_RI2, _LU1_RI1, _LU2_RI2, _HI_HI, _HI2_HI2, _HI3_HI3, _HI4_HI4, _XX_LO1
  • VEH@TRUCK_BA_XX, _LE1_RI1, _LO1_LO1, _PHANTOM
H Frq integer Frequency of the vehicle spawning randomly on the streets.
I MaxNum integer Maximum number of vehicles to exist at a time.
J,K WheelRadius float[2]
L DefDirtLevel float Dirt level of traffic vehicles that includes a range from set value to 1.0.
Supported values range from 0.0 (clean) to 1.0 (dirty).
M LodMult integer
N Swankness float
O Flags string
  • noboot
  • smallworker
  • big
  • onlyduringofficehours
  • bootinfront
  • isvan
  • avoidturns
  • livery
  • liveryextra
  • sports
  • delivery
  • noambocc
  • onlyonhighways - spawn only on .NOD path, who uses 'Highway' Flag in 3th section of Flags.
  • ext_gang
  • ext_conv
  • ext_taxi
  • ext_rare
  • ext_requi
  • ext_strong
  • ext_script
  • ext_all
  • ext_sunroof
  • tallship
  • truckfx
  • truckenginefx
  • truckexhaustfx
  • truckfirefx
  • bangerexhaustfx

Vehicle Classes

The class of a vehicle helps determines where a vehicle should spawn, with the help of hardcoded features and the script. The ignore class is special for its ability to prevent vehicles assigned to that class from spawning as a regular NPC vehicle in traffic. Peds can be assigned to drive a class of vehicle in the PEDS section of the IDE file. The Mr Whoopee in GTA III uses the unique class special that no other vehicles have used. The following table shows the classes that are available and used in the game.

Flag Supported games Binary Description
0 GTA III Vice City San Andreas GTA IV 0000 0000 0000 0000 0000 0000 ignore
1 GTA III Vice City San Andreas GTA IV 0000 0000 0000 0000 0000 0001 normal
2 GTA III Vice City San Andreas GTA IV 0000 0000 0000 0000 0000 0010 poorfamily
4 GTA III Vice City San Andreas GTA IV 0000 0000 0000 0000 0000 0100 richfamily
8 GTA III Vice City San Andreas GTA IV 0000 0000 0000 0000 0000 1000 executive
16 GTA III Vice City San Andreas GTA IV 0000 0000 0000 0000 0001 0000 worker
32 GTA III Vice City San Andreas GTA IV 0000 0000 0000 0000 0010 0000 big
64 GTA III Vice City San Andreas GTA IV 0000 0000 0000 0000 0100 0000 taxi
128 Vice City San Andreas GTA IV 0000 0000 0000 0000 1000 0000 moped
256 Vice City San Andreas GTA IV 0000 0000 0000 0001 0000 0000 motorbike
512 Vice City San Andreas GTA IV 0000 0000 0000 0010 0000 0000 leisureboat
1024 Vice City San Andreas GTA IV 0000 0000 0000 0100 0000 0000 workerboat
2048 San Andreas GTA IV 0000 0000 0000 1000 0000 0000 bicycle
4096 San Andreas GTA IV 0000 0000 0001 0000 0000 0000 on foot

See also

External link