mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-03 05:49:41 +03:00
upload "kind" alien swarm
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//========= Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
@@ -533,7 +533,7 @@ IMotionEvent::simresult_e CMotorController::Simulate( IPhysicsMotionController *
|
||||
if ( deltaSpeed * accel > 0 )
|
||||
{
|
||||
float factor = deltaSpeed / m_lastAcceleration;
|
||||
factor = 1 - clamp( factor, 0.f, 1.f );
|
||||
factor = 1 - clamp( factor, 0, 1 );
|
||||
rotForce += m_lastForce * factor * m_restistanceDamping;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user