Added speed modifier to scanners and rollermines

This commit is contained in:
Blixibon
2021-09-28 12:09:29 -05:00
parent a1bc5196f2
commit 6d04c46dc0
3 changed files with 46 additions and 8 deletions

View File

@@ -2567,6 +2567,14 @@ void CNPC_CScanner::MoveToTarget( float flInterval, const Vector &vecMoveTarget
myZAccel = flDist / flInterval;
}
#ifdef MAPBASE
if (m_flSpeedModifier != 1.0f)
{
myAccel *= m_flSpeedModifier;
//myZAccel *= m_flSpeedModifier;
}
#endif
MoveInDirection( flInterval, targetDir, myAccel, myZAccel, myDecay );
// calc relative banking targets