sp/src/game/server/lab/npc_shadow_walker.cpp
float CNPC_ShadowWalker::GetSequenceGroundSpeed(CStudioHdr *pStudioHdr, int iSequence)
{
	float t = SequenceDuration(pStudioHdr, iSequence);

	if (t > 0)
	{
		return (GetSequenceMoveDist(pStudioHdr, iSequence) * m_flSpeedModifier / t);
	}
	else
	{
		return 0;
	}
}
//-----------------------------------------------------------------------------
// Purpose: Get movement speed, multipled by modifier
//-----------------------------------------------------------------------------
Get movement speed, multipled by modifier
Get movement speed multipled by modifier
float CNPC_ShadowWalker::GetSequenceGroundSpeed(CStudioHdr *pStudioHdr, int iSequence)
{
	float t = SequenceDuration(pStudioHdr, iSequence);
	if (t > 0)
	{
		return (GetSequenceMoveDist(pStudioHdr, iSequence) * m_flSpeedModifier / t);
	}
	else
	{
		return 0;
	}
}
float CNPC_ShadowWalker :: GetSequenceGroundSpeed ( CStudioHdr * pStudioHdr , int iSequence ) { float t = SequenceDuration ( pStudioHdr , iSequence ) ; if ( t > 0 ) { return ( GetSequenceMoveDist ( pStudioHdr , iSequence ) * m_flSpeedModifier / t ) ; } else { return 0 ; } }
Purpose: Get movement speed, multipled by modifier
Purpose : Get movement speed multipled by modifier