Vehicle.vehcardamage

The aim of this article is to breakdown the *.vehcardamage (vehicle durability) filetype, as to understand it better. *.vehcardamage files are essentially text or *.txt files with no formatting. They can be opened using bundled software that comes with Microsoft Windows such as Wordpad or Notepad, or alternatives such as Notepad++.

This file would typically located in vehicle.ar/tune/vehicle/basename.vehcardamage.

Example "vehicle.vehcardamage" file
Text from file;

type: a vehCarDamage { MaxDamage 470000.000000 MedDamage 375000.000000 ImpactThreshold 1600.000000 RegenerateRate 0.000000 SmokeOffset -0.180000	0.700000	-1.30000 TextelDamageRadius 1.000000 Position 112.373024	12.883195	-68.592262 PositionVar 0.000000	0.000000	0.000000 Velocity 0.000000	1.000000	0.000000 VelocityVar 1.000000	2.000000	1.000000 Life 0.800000 LifeVar 0.400000 Mass 0.338000 MassVar 0.222000 Radius 0.221000 RadiusVar 0.253000 Drag 1.000000 DragVar 0.000000 Damp 1.000000 DampVar 0.000000 DRadius 0.030000 DRadiusVar 0.000000 DAlpha -10 DAlphaVar 1 DRotation 0 DRotationVar 0 InitialBlast 0 SpewRate 0.000000 SpewTimeLimit 0.000000 Gravity 17.990047 TexFrameStart 1 TexFrameEnd 1 BirthFlags 0 Height 0.000000 Intensity 1.000000 Color -167772161 SmokeOffset2 0.180000	0.700000	-1.760000 DoublePivot 0 }

MaxDamage
This value refers to the maxium amount of damage the vehicle can recieve before it is destroyed or totalled. MaxDamage 470000.000000

MedDamage
MedDamage shouldn't be taken for the mid-point of damage. It actually tells the game how much damage a vehicle can recieve before it starts to exhibit damage smoke. MaxDamage 470000.000000

ImpactThreshold
ImpactThreshold is the minimum amount of impact force required to damage the vehicke.

ImpactThreshold 1600.000000

Color
This value affects the color of the emitted smoke, it can be set to any color in numeric form.

Color -167772161

TextelDamageRadius
The maximum radius ofa texture that can be chnaged from normal to damaged state. The higher the value, the bigger damage spots.

TextelDamageRadius 1.000000

SmokeOffset + SmokeOffset2
SmokeOffset is the offset of the smoke that is emitted when the MedDamage value is hit. If the line SmokeOffset2 exists within the file, smoke will emit from SmokeOffset as well as SmokeOffset2

SmokeOffset -0.180000	0.700000	-1.30000 SmokeOffset2 0.180000	0.700000	-1.760000