Difference between revisions of "CARS (IDE Section)"

From GTAMods Wiki
Jump to navigation Jump to search
(GTA III - Vice City)
Line 6: Line 6:
 
'''CARS''' is a section in the [[item definition]] file. It is used to define vehicles and some their properties.
 
'''CARS''' is a section in the [[item definition]] file. It is used to define vehicles and some their properties.
  
==GTA III - Vice City==
+
==GTA III==
 
===Format===
 
===Format===
This section is mainly used in the <code>default.ide</code> file.
+
This section is mainly used in the <code>default.ide</code> file. Each type of vehicle has its own format.
  ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Level,
+
 
  Comprules, WheelID, WheelScale
+
''Car''
 +
  ID, ModelName, TxdName, Type, HandlingID, GameName, Class, Frequency, Level, Comprules, WheelID, WheelScale
 +
 
 +
''Boat and Train''
 +
ID, ModelName, TxdName, Type, HandlingID, GameName, Class, Frequency, Level, Comprules
 +
 
 +
''Plane''
 +
  ID, ModelName, TxdName, Type, HandlingID, GameName, Class, Frequency, Level, Comprules, LODModel
  
 
{|{{Prettytable}} width="100%"
 
{|{{Prettytable}} width="100%"
Line 22: Line 29:
 
|<center>TxdName</center>||Name of the .txd [[texture dictionary]], without extension
 
|<center>TxdName</center>||Name of the .txd [[texture dictionary]], without extension
 
|-
 
|-
|<center>Type</center>||Type of vehicle, which includes ''car'', ''boat'', ''plane'', and, for Vice City only, ''bike'' and ''heli''. ''Heli'' and ''plane'' are used only for NPC aircrafts.
+
|<center>Type</center>||Type of vehicle, which includes ''car'', ''boat'', ''train'', and ''plane''
 
|-
 
|-
 
|<center>HandlingID</center>||Name corresponding to its handling data in the [[handling.cfg]] file.
 
|<center>HandlingID</center>||Name corresponding to its handling data in the [[handling.cfg]] file.
Line 28: Line 35:
 
|<center>GameName</center>||Name corresponding to its [[GXT]] entry, must be seven characters or less
 
|<center>GameName</center>||Name corresponding to its [[GXT]] entry, must be seven characters or less
 
|-
 
|-
|<center>Anims</center>||Appropriate animation file mainly used on bikes
+
|<center>Class</center>||Class of the vehicle{{Ref|1|[*]}}
 
|-
 
|-
|<center>Class</center>||Class of the vehicle
+
|<center>Frequency</center>||Frequency of the vehicle spawning randomly on the streets
 
|-
 
|-
|<center>Frequency</center>||
+
|<center>Level</center>||unknown
 
|-
 
|-
|<center>Level</center>||
+
|<center>Comprules</center>||unknown
 
|-
 
|-
|<center>Comprules</center>||
+
|<center>WheelID</center>||ID number of wheel model{{Ref|2|[*]}}<br>Only available for type ''car'', has no effect if used on type ''boat''
 
|-
 
|-
|<center>WheelID</center>||Wheel model ID, not available for type "boat" and special for bikes
+
|<center>WheelScale</center>||Scale of wheel model, 1.0 for original size of wheel model<br>Only available for type ''car'', has no effect if used on type ''boat''
 
|-
 
|-
|<center>WheelScale</center>||not available for type "boat"
+
|<center>LODModel</center>||ID number of LOD model, can be any valid vehicle model<br>Only available for type ''plane''
 
|}
 
|}
  
===Class===
+
===Class{{Note|1}}===
 
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. These are 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. These are the classes that are available and used in the game.
  
GTA3
 
 
*big
 
*big
 
*executive
 
*executive
Line 55: Line 61:
 
*worker
 
*worker
  
Vice City
+
===Wheels{{Note|2}}===
 +
Wheel models are located in the <code>wheels.DFF</code> file in the <code>models\Generic</code> folder. Wheel textures are located in the <code>MISC.TXD</code> file in the <code>models</code> folder. Wheels are defined in the <code>default.ide</code> file.
 +
{|{{Prettytable}}
 +
!ID
 +
!Image
 +
|-
 +
|160
 +
|wheel_sport
 +
|-
 +
|161
 +
|wheel_saloon
 +
|-
 +
|162
 +
|wheel_lightvan
 +
|-
 +
|163
 +
|wheel_classic
 +
|-
 +
|164
 +
|wheel_alloy
 +
|-
 +
|165
 +
|wheel_lighttruck
 +
|-
 +
|166
 +
|wheel_smallcar
 +
|}
 +
 
 +
==Vice City==
 +
===Format===
 +
ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Level, Comprules, WheelID, WheelScale
 +
 
 +
{|{{Prettytable}} width="100%"
 +
!width="250px"|Identifier
 +
!Description
 +
|-
 +
|<center>ID</center>||Unique model ID
 +
|-
 +
|<center>ModelName</center>||Name of the .dff [[model file]], without extension
 +
|-
 +
|<center>TxdName</center>||Name of the .txd [[texture dictionary]], without extension
 +
|-
 +
|<center>Type</center>||Type of vehicle, which includes ''car'', ''boat'', ''plane'', ''bike'', and ''heli''. ''Heli'' and ''plane'' are used only for NPC aircrafts.
 +
|-
 +
|<center>HandlingID</center>||Name corresponding to its handling data in the [[handling.cfg]] file.
 +
|-
 +
|<center>GameName</center>||Name corresponding to its [[GXT]] entry, must be seven characters or less
 +
|-
 +
|<center>Anims</center>||Appropriate animation file mainly used on bikes
 +
|-
 +
|<center>Class</center>||Class of the vehicle
 +
|-
 +
|<center>Frequency</center>||Frequency of the vehicle spawning randomly on the streets
 +
|-
 +
|<center>Level</center>||unknown
 +
|-
 +
|<center>Comprules</center>||unknown
 +
|-
 +
|<center>WheelID</center>||Wheel model ID, not available for type "boat" and special for bikes
 +
|-
 +
|<center>WheelScale</center>||not available for type "boat"
 +
|}
 +
 
 +
===Class===
 +
The function of the class of a vehicle is almost exactly the same as in GTA3.
 +
 
 
*big
 
*big
 
*executive
 
*executive
Line 72: Line 143:
 
Wheel models and textures are located in the models folder in the game's directory.
 
Wheel models and textures are located in the models folder in the game's directory.
 
{|{{Prettytable}}
 
{|{{Prettytable}}
!align="center" colspan="2"|GTA3
 
!align="center" colspan="2"|Vice City
 
|-
 
!ID
 
!Image
 
 
!ID
 
!ID
 
!Image
 
!Image
 
|-
 
|-
|160
 
|wheel_sport
 
 
|237
 
|237
 
|wheel_rim
 
|wheel_rim
 
|-
 
|-
|161
 
|wheel_saloon
 
 
|238
 
|238
 
|wheel_offroad
 
|wheel_offroad
 
|-
 
|-
|162
 
|wheel_lightvan
 
 
|239
 
|239
 
|wheel_truck
 
|wheel_truck
 
|-
 
|-
|163
 
|wheel_classic
 
 
|250
 
|250
 
|wheel_sport
 
|wheel_sport
 
|-
 
|-
|164
 
|wheel_alloy
 
 
|251
 
|251
 
|wheel_saloon
 
|wheel_saloon
 
|-
 
|-
|165
 
|wheel_lighttruck
 
 
|252
 
|252
 
|wheel_lightvan
 
|wheel_lightvan
 
|-
 
|-
|166
 
|wheel_smallcar
 
 
|253
 
|253
 
|wheel_classic
 
|wheel_classic
 
|-
 
|-
|
 
|
 
 
|254
 
|254
 
|wheel_alloy
 
|wheel_alloy
 
|-
 
|-
|
 
|
 
 
|255
 
|255
 
|wheel_lighttruck
 
|wheel_lighttruck
 
|-
 
|-
|
 
|
 
 
|256
 
|256
 
|wheel_smallcar
 
|wheel_smallcar

Revision as of 04:50, 17 August 2009

CARS (IDE Section) (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.

GTA III

Format

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

Car

ID, ModelName, TxdName, Type, HandlingID, GameName, Class, Frequency, Level, Comprules, WheelID, WheelScale

Boat and Train

ID, ModelName, TxdName, Type, HandlingID, GameName, Class, Frequency, Level, Comprules

Plane

ID, ModelName, TxdName, Type, HandlingID, GameName, Class, Frequency, Level, Comprules, LODModel
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 car, boat, train, and plane
HandlingID
Name corresponding to its handling data in the handling.cfg file.
GameName
Name corresponding to its GXT entry, must be seven characters or less
Class
Class of the vehicle[*]
Frequency
Frequency of the vehicle spawning randomly on the streets
Level
unknown
Comprules
unknown
WheelID
ID number of wheel model[*]
Only available for type car, has no effect if used on type boat
WheelScale
Scale of wheel model, 1.0 for original size of wheel model
Only available for type car, has no effect if used on type boat
LODModel
ID number of LOD model, can be any valid vehicle model
Only available for type plane

Class^

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. These are the classes that are available and used in the game.

  • big
  • executive
  • ignore
  • poorfamily
  • richfamily
  • special
  • worker

Wheels^

Wheel models are located in the wheels.DFF file in the models\Generic folder. Wheel textures are located in the MISC.TXD file in the models folder. Wheels are defined in the default.ide file.

ID Image
160 wheel_sport
161 wheel_saloon
162 wheel_lightvan
163 wheel_classic
164 wheel_alloy
165 wheel_lighttruck
166 wheel_smallcar

Vice City

Format

ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Level, Comprules, WheelID, WheelScale
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 car, boat, plane, bike, and heli. Heli and plane are used only for NPC aircrafts.
HandlingID
Name corresponding to its handling data in the handling.cfg file.
GameName
Name corresponding to its GXT entry, must be seven characters or less
Anims
Appropriate animation file mainly used on bikes
Class
Class of the vehicle
Frequency
Frequency of the vehicle spawning randomly on the streets
Level
unknown
Comprules
unknown
WheelID
Wheel model ID, not available for type "boat" and special for bikes
WheelScale
not available for type "boat"

Class

The function of the class of a vehicle is almost exactly the same as in GTA3.

  • big
  • executive
  • ignore
  • leisureboat
  • moped
  • motorbike
  • normal
  • poorfamily
  • richfamily
  • taxi
  • worker
  • workerboat

Wheels

Wheel models and textures are located in the models folder in the game's directory.

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