CARS (IDE Section)

From GTAMods Wiki
Revision as of 09:23, 27 July 2010 by Aschratt (talk | contribs) (Cleanup rewrite)
Jump to navigation Jump to search
40px-Ambox rewrite orange.svg.png This article may need to be rewritten.
Please help improve this article. The discussion page may contain suggestions.
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.

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
This data is related to hardcoded functions and must not be changed or else it might crash the game
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 show up as NAME missing
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 and collision models, 1.0 for original size of wheel and collision models
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. Peds can be assigned to drive a class of vehicle in the PEDS section of the IDE file. 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 160 161 162 163 164 165 166
Image wheel_sport64 wheel_saloon64 wheel_lightvan64 wheel_classic64 wheel_alloy64 wheel_lighttruck64 wheel_smallcar64

Vice City

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, Anims, Class, Frequency, Level, Comprules, WheelID, WheelScale

Bike

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

Boat and Heli

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

Plane

ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, 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, bike, boat, plane, and heli; flyable helicopters are type 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 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
ID number of wheel model
Only available for type car, has no effect if used on type boat
WheelScale
Scale of wheel and collision models for type car, scale of wheel collision model for type bike, 1.0 for original size of wheel and collision models
Only available for types car and bike, 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. Peds can be assigned to drive a class of vehicle in the PEDS section of the IDE file. These are the classes that are available and used in the game.

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

Wheels

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

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