Beispiel #1
0
//-----------------------------------------------------------------------------
// Purpose: Input handling
//-----------------------------------------------------------------------------
bool C_BaseHLPlayer::CreateMove( float flInputSampleTime, CUserCmd *pCmd )
{
	bool bResult = BaseClass::CreateMove( flInputSampleTime, pCmd );

	PerformClientSideObstacleAvoidance( TICK_INTERVAL, pCmd );
	PerformClientSideNPCSpeedModifiers( TICK_INTERVAL, pCmd );

	return bResult;
}
bool C_BaseHLPlayer::CreateMove( float flInputSampleTime, CUserCmd *pCmd )
#endif
{
#ifdef C17
	bool bResult = BaseClass::CreateMove(flInputSampleTime, pCmd, bVguiUpdate);
#else
	bool bResult = BaseClass::CreateMove( flInputSampleTime, pCmd );
#endif

	if ( !IsInAVehicle() )
	{
		PerformClientSideObstacleAvoidance( TICK_INTERVAL, pCmd );
		PerformClientSideNPCSpeedModifiers( TICK_INTERVAL, pCmd );
	}

	return bResult;
}