
// This file defines terrain feedback and special effects.
//
// Note that the dry/wet coefficients are only part of the grip equation ... the tyre
// grip also has dry/wet components, so that even if a terrain has equal dry and wet
// components, the tyre grip may be less in the wet, depending on the tyre.
//
// Rainspray parameters:
// Scale is the starting size.
// Growth is the size difference from start to end.
// GrowthVel is the increase in size difference due to velocity.
// Power defines the curve from start to ending size.
// RampSpeed reduces rainspray alpha under the given speed.
// OffsetVel is the starting position relative to the vehicle (in direction of velocity).
//
// Max number of effects can now be specified as either an explicit number, or
// the token "NumWaypoints" which equals the number of waypoints on the particular
// track.
//
// Enable sparks by increasing the "Max" variable for Reaction=spark.  Also set
// "Sparks=1" on appropriate terrains.  Also check player file entry "Vehicle Sparks".
//
// All texture maps and e-maps are assumed to be .BMP unless otherwise specified.
// We support .TGA, .JPG.
//
// All MTS files are assumed to be .MTS unless otherwise specified (and it probably
// won't work with any other extensions)
//
// NEW: some of these names may have changed
//
// Available: Shader=NoShade+FlatShade+GouraudShade+AlphaChannel+Specular+EnvirMap+GlobalShadow
//   Default: Shader=AlphaChannel+GouraudShade+GlobalShadow
//
// Available: Pixel=NoReduceDetail+ChromaKey
//   Default: Pixel=
//
//   Default: Chroma=0x00000000 (4-byte hexadecimal color value)
//   Default: Color=0x80ffffff (4-byte hexadecimal color value)
//
// Available: Particle=Plane+Box+Cross+MTSFile+Stamps+Billboards+Deformable+SingleSided+AlphaFade
//   Default: Particle=Plane+Stamps+SingleSided
//
// Note that MTSFile indicates you want to use an object instead of a map on a simple
// surface.  If using MTSFile, replace "Tex=<map>" with "MTS=<obj>".
//
// Available: DestBlend or SrcBlend=Zero/One/SrcColor/InvSrcColor/SrcAlpha/InvSrcAlpha/DstColor/InvDstColor/DstAlpha/InvDstAlpha
//   Default: DestBlend=InvSrcColor SrcBlend=One
//
// The "Materials" specifies what materials to apply this feedback to.  It matches the FIRST PART of the name,
// so the line "Materials=road" matches any material starting with "road", including "roada", "roadblock", etc.
//
// "Track variables" can be adjusted on a per-track basis by putting the value in the track GDB file.
// This section defines the track variable names and their default values, then the track variable
// names are used below in the FEEDBACK sections ... note that no spaces are allowed in the name nor
// around the equal sign.
[TRACKVARS]
RoadDryGrip=0.72
RoadWetGrip=0.72
RoadmetalGrip=0.72
RoadDustGrip=0.72
RoadBumpAmp=0.010
RoadBumpLen=13.0
RumbleDryGrip=0.40
RumbleWetGrip=0.40
RumbleBumpAmp=0.012
RumbleBumpLen=10.0
MiscBumpAmp=0.08
MiscBumpLen=4.0


////////////////////////////////////////////////////ROADS////////////////////////////////////////////////////////


// Roads
[FEEDBACK]
Dry=RoadDryGrip Wet=RoadWetGrip Resistance=0.0 BumpAmp=0.002 BumpWavelen=3.0 Legal=true Spring=1.0 Damper=1.5 CollFrict=0.1 Sparks=1 Scraping=1 Sound=dry
Reaction=dust AlphaVariability=70 DistBetweenParticles=1.0 Tex=rainspray.tga Max=1024 Scale=(1.0,1.0,1.0) Growth=(2.6,2.6,1.6) GrowthVel=(0.26,1.16,0.8) Power=0.35 RampSpeed=50.0 OffsetVel=0.0 ASDEnvelope=(2.0,4.4,4.0) DestBlend=InvSrcAlpha SrcBlend=SrcAlpha
Materials=road

// Road Cement Patchs
[FEEDBACK]
Dry=RoadDryGrip Wet=RoadWetGrip Resistance=0.0 BumpAmp=0.012 BumpWavelen=10.0 Legal=true Spring=1.0 Damper=1.5 CollFrict=0.1 Sparks=1 Scraping=1 Sound=dry
Reaction=dust AlphaVariability=70 DistBetweenParticles=1.0 Tex=rainspray.tga Max=1024 Scale=(1.0,1.0,1.0) Growth=(2.6,2.6,1.6) GrowthVel=(0.26,1.16,0.8) Power=0.35 RampSpeed=50.0 OffsetVel=0.0 ASDEnvelope=(2.0,4.4,4.0) DestBlend=InvSrcAlpha SrcBlend=SrcAlpha
Materials=rdcp


// Roads
[FEEDBACK]
Dry=0.80 Wet=0.80 Resistance=0.0 BumpAmp=RoadBumpAmp BumpWavelen=RoadBumpLen Legal=true Spring=1.5 Damper=1.5 CollFrict=0.1 Sparks=1 Scraping=1 Sound=dry
Reaction=dust AlphaVariability=70 DistBetweenParticles=1.0 Tex=rainspray.tga Max=1024 Scale=(1.0,1.0,1.0) Growth=(2.6,2.6,1.6) GrowthVel=(0.26,1.16,0.8) Power=0.35 RampSpeed=50.0 OffsetVel=0.0 ASDEnvelope=(2.0,4.4,4.0) DestBlend=InvSrcAlpha SrcBlend=SrcAlpha
Materials=rdgrip

// Roads
[FEEDBACK]
Dry=RoadWetGrip Wet=RoadWetGrip Resistance=0.0 BumpAmp=0.015 BumpWavelen=6.0 Legal=true Spring=0.0 Damper=0.0 CollFrict=0.4 Sparks=1 Scraping=1 Sound=dry
Reaction=dust AlphaVariability=70 DistBetweenParticles=1.0 Tex=rainspray.tga Max=1024 Scale=(1.0,1.0,1.0) Growth=(2.6,2.6,1.6) GrowthVel=(0.26,1.16,0.8) Power=0.35 RampSpeed=50.0 OffsetVel=0.0 ASDEnvelope=(2.0,4.4,4.0) DestBlend=InvSrcAlpha SrcBlend=SrcAlpha
Materials=rdbrake

///////////////////////////////////////////////Dirt and Grass////////////////////////////////////////////////

// Grass
[FEEDBACK]
Dry=0.50 Wet=0.50 Resistance=1500.0 BumpAmp=0.060 BumpWavelen=6.0 Legal=false Spring=0.0 Damper=0.0 CollFrict=0.8 Sparks=0 Scraping=0 Sink=0.014 Sound=grass
Reaction=dust AlphaVariability=70 DistBetweenParticles=0.25 Tex=rainspray.tga Max=1024 Scale=(0.5,0.5,0.5) Growth=(2.6,1.6,1.2) GrowthVel=(0.26,1.16,0.8) Power=0.35 RampSpeed=50.0 OffsetVel=1.0 ASDEnvelope=(2.0,1.2,3.5) DestBlend=InvSrcAlpha SrcBlend=SrcAlpha
Reaction=softskid Tex=skidbrown.tga Max=1024 Pixel=NoReduceDetail Particle=Plane+Deformable+SingleSided DestBlend=InvSrcAlpha SrcBlend=SrcAlpha
Materials=gras



//////////////////////////////////////////////////RUMBLE STRIPS//////////////////////////////////////////////////////


// Rumblestrips (fake bumping added)
[FEEDBACK]
Dry=RumbleDryGrip Wet=RumbleWetGrip Resistance=0.0 BumpAmp=RumbleBumpAmp BumpWavelen=RumbleBumpLen Legal=true Spring=0.0 Damper=0.0 CollFrict=0.4 Sparks=0 Scraping=1 Sound=rumble
Reaction=dust AlphaVariability=70 DistBetweenParticles=1.0 Tex=rainspray.tga Max=1024 Scale=(1.0,1.0,1.0) Growth=(2.6,2.6,1.6) GrowthVel=(0.26,1.16,0.8) Power=0.35 RampSpeed=50.0 OffsetVel=0.0 ASDEnvelope=(2.0,4.4,4.0) DestBlend=InvSrcAlpha SrcBlend=SrcAlpha
Materials=rmbl


/////////////////////////////////////////////////////WALLS//////////////////////////////////////////////////////////


// Tirewalls
[FEEDBACK]
Legal=false Spring=20000.0 Damper=10000.0 CollFrict=0.90 Sparks=0 Scraping=0 WallSkids=1 Sound=tirewall
Materials=twal

// Cementwalls (spring/damper = 0 for immovable objects)
[FEEDBACK]
Legal=false Spring=0.0 Damper=0.0 CollFrict=0.13 Sparks=0 Scraping=1 Wallskids=1 Sound=solidwall
Materials=cem,wall,cmwl

// Guardrails (spring/damper = 0 for immovable objects)
[FEEDBACK]
Legal=false Spring=0.0 Damper=0.0 CollFrict=0.11 Sparks=0 Scraping=1 Wallskids=1 Sound=guardrail
Materials=grdr

// SAFER Walls (spring/damper = 0 for immovable objects)
[FEEDBACK]
Legal=false Spring=0.0 Damper=0.0 CollFrict=0.11 Sparks=0 Scraping=1 Wallskids=1 Sound=guardrail
Materials=safer

// Other loose special effects
[LOOSE]
Reaction=spark Tex=spark.tga Max=256 Duration=0.6 Scale=(.08,.05,.05) Particle=Plane+Deformable DestBlend=InvSrcAlpha SrcBlend=SrcAlpha Shader=AlphaChannel+NoShade
Reaction=whitesmoke Tex=smokewhite.tga Max=256 Scale=(1.0,1.0,1.0) Growth=(2.0,2.0,2.0) ASDEnvelope=(2.0,0.2,3.5) DestBlend=InvSrcAlpha SrcBlend=SrcAlpha
Reaction=blacksmoke Tex=smokeblack.tga Max=1024 Scale=(1.0,1.0,1.0) Growth=(2.0,2.0,2.0) ASDEnvelope=(2.0,0.2,3.5) DestBlend=InvSrcAlpha SrcBlend=SrcAlpha
Reaction=flames Tex=fire.tga Max=256 Scale=(0.40,0.40,0.40) Growth=(1.5,1.5,1.5) ASDEnvelope=(0.15,0.17,0.4) DestBlend=InvSrcAlpha SrcBlend=SrcAlpha Shader=AlphaChannel+NoShade
Reaction=groove Tex=gatgroovewet.tga Max=NumWaypoints Shader=NoShade+AlphaChannel Pixel=NoReduceDetail Particle=Plane+Deformable+SingleSided DestBlend=InvSrcAlpha SrcBlend=SrcAlpha
Reaction=wallskid Tex=skidwall.tga Max=128 Scale=(3.25,1.10,1.0) Pixel=NoReduceDetail Particle=Plane+Deformable+SingleSided DestBlend=InvSrcAlpha SrcBlend=SrcAlpha


