Jump to content

CARS (IDE Section): Difference between revisions

no edit summary
m (1 revision: Imported from gtamodding.com - under GNU FDL)
No edit summary
(5 intermediate revisions by 3 users not shown)
Line 2: Line 2:
{{IdeSection
{{IdeSection
| name        = CARS
| name        = CARS
| game        = [[GTA III]], [[GTA VC]], [[GTA SA]], [[GTA IV]]
| game        = [[Grand Theft Auto III|GTA III]], [[Grand Theft Auto: Vice City|GTA VC]], [[Grand Theft Auto: San Andreas|GTA SA]], [[Grand Theft Auto IV|GTA IV]]
| description = Used to define vehicles
| description = Used to define vehicles
}}
}}
'''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 [[IDE|item definition]] file. It is used to define vehicles and some their properties.


==GTA III==
== GTA III ==
===Format===
=== Format ===
This section is mainly used in the <code>default.ide</code> file. Each type of vehicle has its own format.
This section is mainly used in the <code>default.ide</code> file. Each type of vehicle has its own format.


Line 20: Line 20:
  ID, ModelName, TxdName, Type, HandlingID, GameName, Class, Frequency, Level, Comprules, LODModel
  ID, ModelName, TxdName, Type, HandlingID, GameName, Class, Frequency, Level, Comprules, LODModel


{|{{Prettytable}} width="100%"
{| {{subst:Prettytable}} width="100%"
!width="250px"|Identifier
! width="250px"| Identifier
!Description
! Description
|-
|-
|<center>ID</center>||Unique model ID
| <center>ID</center> || Unique model ID.
|-
|-
|<center>ModelName</center>||Name of the .dff [[model file]], without extension
| <center>ModelName</center> || Name of the .dff [[DFF|model file]], without extension.
|-
|-
|<center>TxdName</center>||Name of the .txd [[texture dictionary]], without extension
| <center>TxdName</center> || Name of the .txd [[TXD|texture dictionary]], without extension.
|-
|-
|<center>Type</center>||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
| <center>Type</center> || 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
|-
|-
|<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.
|-
|-
|<center>GameName</center>||Name corresponding to its [[GXT]] entry, case sensitive and must be seven characters or less!<br>Invalid name will show up as ''NAME missing''
| <center>GameName</center> || Name corresponding to its [[GXT]] entry; it is case sensitive and must be seven characters or less!<br>Invalid name will show up as ''NAME missing''.
|-
|-
|<center>Class</center>||Class of the vehicle
| <center>Class</center> || Class of the vehicle.
|-
|-
|<center>Frequency</center>||Frequency of the vehicle spawning randomly on the streets
| <center>Frequency</center> || Frequency of the vehicle spawning randomly on the streets.
|-
|-
|<center>Level</center>||unknown
| <center>Level</center> || Unknown.
|-
|-
|<center>Comprules</center>||unknown
| <center>Comprules</center> || Unknown.
|-
|-
|<center>WheelID</center>||ID number of wheel model<br>Only available for type ''car'', has no effect if used on type ''boat''
| <center>WheelID</center> || ID number of wheel model.<br>Only available for type ''car'', has no effect if used on type ''boat''.
|-
|-
|<center>WheelScale</center>||Scale of wheel and [[Collision File|collision]] models, 1.0 for original size of wheel and collision models<br>Only available for type ''car'', has no effect if used on type ''boat''
| <center>WheelScale</center> || Scale of wheel and [[Collision File|collision]] models, 1.0 for original size of wheel and collision models.<br>Only available for type ''car'', has no effect if used on type ''boat''.
|-
|-
|<center>LODModel</center>||ID number of LOD model, can be any valid vehicle model<br>Only available for type ''plane''
| <center>LODModel</center> || ID number of LOD model, can be any valid vehicle model.<br>Only available for type ''plane''.
|}
|}


===Class===
=== 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#Vehicle_Class|PEDS]] section of the IDE file. 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. Peds can be assigned to drive a class of vehicle in the [[PEDS#Vehicle_Class|PEDS]] section of the IDE file. These are the classes that are available and used in the game.


*big
* big
*executive
* executive
*ignore
* ignore
*poorfamily
* poorfamily
*richfamily
* richfamily
*special
* special
*worker
* worker


===Wheels===
=== Wheels ===
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.
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.
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;"
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;"
!ID
! ID
!Image
! Image
|-
|-
|160
| 160
|wheel_sport
| wheel_sport
|-
|-
|161
| 161
|wheel_saloon
| wheel_saloon
|-
|-
|162
| 162
|wheel_lightvan
| wheel_lightvan
|-
|-
|163
| 163
|wheel_classic
| wheel_classic
|-
|-
|164
| 164
|wheel_alloy
| wheel_alloy
|-
|-
|165
| 165
|wheel_lighttruck
| wheel_lighttruck
|-
|-
|166
| 166
|wheel_smallcar
| wheel_smallcar
|}
|}


==Vice City==
== Vice City ==
===Format===
=== Format ===
This section is mainly used in the <code>default.ide</code> file. Each type of vehicle has its own format.
This section is mainly used in the <code>default.ide</code> file. Each type of vehicle has its own format.


Line 106: Line 107:
  ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Level, Comprules, LODModel
  ID, ModelName, TxdName, Type, HandlingID, GameName, Anims, Class, Frequency, Level, Comprules, LODModel


{|{{Prettytable}} width="100%"
{| {{subst:Prettytable}} width="100%"
!width="250px"|Identifier
! width="250px"| Identifier
!Description
! Description
|-
|-
|<center>ID</center>||Unique model ID
| <center>ID</center> || Unique model ID.
|-
|-
|<center>ModelName</center>||Name of the .dff [[model file]], without extension
| <center>ModelName</center> || Name of the .dff [[DFF|model file]], without extension.
|-
|-
|<center>TxdName</center>||Name of the .txd [[texture dictionary]], without extension
| <center>TxdName</center> || Name of the .txd [[TXD|texture dictionary]], without extension.
|-
|-
|<center>Type</center>||Type of vehicle, which includes ''car'', ''bike'', ''boat'', ''plane'', and ''heli''; flyable helicopters are type ''car''
| <center>Type</center> || Type of vehicle, which includes ''car'', ''bike'', ''boat'', ''plane'', and ''heli''; flyable helicopters are type ''car''.
|-
|-
|<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.
|-
|-
|<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
| <center>GameName</center> || Name corresponding to its [[GXT]] entry; it is case sensitive and must be seven characters or less!<br>Invalid name will not show up in the game.
|-
|-
|<center>Anims</center>||Appropriate animation file mainly used on bikes
| <center>Anims</center> || Appropriate animation file mainly used on bikes.
|-
|-
|<center>Class</center>||Class of the vehicle
| <center>Class</center> || Class of the vehicle.
|-
|-
|<center>Frequency</center>||Frequency of the vehicle spawning randomly on the streets
| <center>Frequency</center> || Frequency of the vehicle spawning randomly on the streets.
|-
|-
|<center>Level</center>||unknown
| <center>Level</center> || Unknown.
|-
|-
|<center>Comprules</center>||unknown
| <center>Comprules</center> || Unknown.
|-
|-
|<center>WheelID</center>||ID number of wheel model<br>Only available for type ''car'', has no effect if used on type ''boat''
| <center>WheelID</center> || ID number of wheel model<br>Only available for type ''car'', has no effect if used on type ''boat''.
|-
|-
|<center>WheelScale</center>||Scale of wheel and [[Collision File|collision]] models for type ''car'', scale of wheel collision model for type ''bike'', 1.0 for original size of wheel and collision models<br>Only available for types ''car'' and ''bike'', has no effect if used on type ''boat''
| <center>WheelScale</center> || Scale of wheel and [[Collision File|collision]] models for type ''car'', scale of wheel collision model for type ''bike'', 1.0 for original size of wheel and collision models.<br>Only available for types ''car'' and ''bike'', has no effect if used on type ''boat''.
|-
|-
|<center>LODModel</center>||ID number of LOD model, can be any valid vehicle model<br>Only available for type ''plane''
| <center>LODModel</center> || ID number of LOD model, can be any valid vehicle model.<br>Only available for type ''plane''.
|}
|}


===Class===
=== 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#Vehicle_Class_2|PEDS]] section of the IDE file. 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. Peds can be assigned to drive a class of vehicle in the [[PEDS#Vehicle_Class_2|PEDS]] section of the IDE file. These are the classes that are available and used in the game.


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


===Wheels===
=== Wheels ===
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>wheels.TXD</code> file in the <code>models\generic</code> folder. Wheels are defined in the <code>default.ide</code> file.
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>wheels.TXD</code> file in the <code>models\generic</code> folder. Wheels are defined in the <code>default.ide</code> file.
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;"
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; border: 1px #aaa solid; border-collapse: collapse;"
!ID
! ID
!Image
! Image
|-
|-
|237
| 237
|wheel_rim
| wheel_rim
|-
|-
|238
| 238
|wheel_offroad
| wheel_offroad
|-
|-
|239
| 239
|wheel_truck
| wheel_truck
|-
|-
|250
| 250
|wheel_sport
| wheel_sport
|-
|-
|251
| 251
|wheel_saloon
| wheel_saloon
|-
|-
|252
| 252
|wheel_lightvan
| wheel_lightvan
|-
|-
|253
| 253
|wheel_classic
| wheel_classic
|-
|-
|254
| 254
|wheel_alloy
| wheel_alloy
|-
|-
|255
| 255
|wheel_lighttruck
| wheel_lighttruck
|-
|-
|256
| 256
|wheel_smallcar
| wheel_smallcar
|}
|}


{{N|4|SA}}{{fdl}}
{{fdl}}
{{modding}}
 
[[Category:Modifications]]
1,184

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.