SimUV4.1: Fixed Grip Factor when using Arcade/Rookie/Amateur player modes

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9348 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
harunasan 2024-02-29 05:54:03 +00:00
parent 2dc3ee6e4e
commit 3181234515
1 changed files with 6 additions and 1 deletions

View File

@ -662,11 +662,16 @@ void SimWheelUpdateForce(tCar *car, int index)
mu = wheel->mu * (wheel->lfMin + (wheel->lfMax - wheel->lfMin) * exp(wheel->lfK * wheel->forces.z / wheel->opLoad));
//temperature and degradation
if (car->features & FEAT_TIRETEMPDEG)
if (car->features & FEAT_TIRETEMPDEG && car->carElt->_skillLevel > 3)
{
tireCond = wheel->currentGripFactor;
mu *= tireCond;
}
else
{
tireCond = 1;
mu *= tireCond;
}
F *= wheel->forces.z * mu * wheel->trkPos.seg->surface->kFriction * (1.0f + 0.05f * sin((-wheel->staticPos.ax + camberDelta) * 18.0f)); /* coeff */