//*****************************************************************************
// Descriptor file for the deformation bits and PCs
//
// Mega or shite tool can export this information
//
// Scripted by Martin Klusacek
//*****************************************************************************

//=============================================================================
// Deformation data
//=============================================================================
// This file just contains information about a deformable object (usually a car)
// This information is global to the car and the meshes have attributes on them
// in the userdata of their matrices

// This is the filename of the DCOL mesh used for a bent , use "None" if no DCOL is available
"limey_bend_data.dcol"

// Car bounding box crush limits (this is a global per mesh thing now so keep it generic)
// Right
	0.3
// Bottom
	0.3
// Back
	0.4
// Left
	0.3
// Top
	0.3
// Front
	0.4
// Have to tweak these numbers to better match the collision mesh or else the
// engine is never damaged in frontal impacts

// Ok here's the carma3 bending stuff, except the coords are now in carma3 car space
// (ie. Z is forward)
0.1                         // Bendability factor
-0.4                        // Bend point Z min
0.0                         // Bend point Z max

// Ok here's the carma3 splitting stuff.
1.000000                    // Snappability factor
0.0                         // Y split position


//*-=<(oOo)>=-* *-=<(oOo)>=-* *-=<(oOo)>=-* *-=<(oOo)>=-* *-=<(oOo)>=-* *-=<(oOo)>=-* *-=<(oOo)>=-* *-=<(oOo)>=-*
// Damage system text file stuff is the same in carma3 as in carma2
//*-=<(oOo)>=-* *-=<(oOo)>=-* *-=<(oOo)>=-* *-=<(oOo)>=-* *-=<(oOo)>=-* *-=<(oOo)>=-* *-=<(oOo)>=-* *-=<(oOo)>=-*

// Damage info for top impacts
1										// Number of clauses
"always"
1									// Systems count
"driver" 1.5						// Damage										// Number of clauses

// Damage info for bottom impacts
6										// Number of clauses
"always"
1									// Systems count
"transmission" 0.2					// Damage
"z>0.75"
1
"engine" 1.0
"z>0.75&x>0.75"						// Condition
3									// Systems count
"lf_wheel" 0.5					// Damage 
"lf_brake" 0.5					// Damage 
"steering" 0.3					// Damage 
"z>0.75&x<0.25"						// Condition
3									// Systems count
"rf_wheel" 0.5					// Damage 
"rf_brake" 0.5					// Damage 
"steering" 0.3					// Damage 
"z<0.25&x>0.75"						// Condition
2									// Systems count
"lr_wheel" 0.5					// Damage 
"lr_brake" 0.5					// Damage 
"z<0.25&x<0.25"						// Condition
2									// Systems count
"rr_wheel" 0.5					// Damage 
"rr_brake" 0.5					// Damage 

// Damage info for left impacts
3										// Number of clauses
"z>0.25&z<0.75"
1									// Systems count
"driver" 1.0						// Damage
"z>0.75"								// Condition
3									// Systems count	
"lf_wheel" 0.5					// Damage 
"lf_brake" 0.5					// Damage 
"steering" 0.3					// Damage 
"z<0.25"								// Condition
2									// Systems count
"lr_wheel" 0.5					// Damage 
"lr_brake" 0.5					// Damage 

// Damage info for right impacts
3										// Number of clauses
"z>0.25&z<0.75"
1									// Systems count
"driver" 1.0						// Damage
"z>0.75"								// Condition
3									// Systems count
"rf_wheel" 0.5					// Damage 
"rf_brake" 0.5					// Damage 
"steering" 0.3					// Damage 
"z<0.25"								// Condition
2									// Systems count
"rr_wheel" 0.5					// Damage 
"rr_brake" 0.5					// Damage 

// Damage info for front impacts
3										// Number of clauses
"always"								// Condition
2									// Systems count
"engine" 1.0						// Damage 
"transmission" 0.3				// Damage 
"x>0.75"								// Condition
3									// Systems count
"lf_wheel" 0.5					// Damage 
"lf_brake" 0.5					// Damage 
"steering" 0.5					// Damage 
"x<0.25"								// Condition
3									// Systems count
"rf_wheel" 0.5					// Damage 
"rf_brake" 0.5					// Damage 
"steering" 0.5					// Damage 

// Damage info for rear impacts
3										// Number of clauses
"always"								// Condition
1									// Systems count
"transmission" 0.5				// Damage 
"x>0.75"								// Condition
2									// Systems count
"lr_wheel" 0.5					// Damage 
"lr_brake" 0.5					// Damage 
"x<0.25"								// Condition
2									// Systems count
"rr_wheel" 0.5					// Damage 
"rr_brake" 0.5					// Damage 

