Added various misc. stubs and utility code from the Alien Swarm SDK

This commit is contained in:
Blixibon
2021-05-11 10:45:48 -05:00
parent 051a217670
commit 6392d9ab7c
5 changed files with 24 additions and 2 deletions

View File

@@ -506,6 +506,11 @@ void CBaseAnimating::StudioFrameAdvanceInternal( CStudioHdr *pStudioHdr, float f
float flNewCycle = GetCycle() + flCycleDelta;
if (flNewCycle < 0.0 || flNewCycle >= 1.0)
{
if (flNewCycle >= 1.0f)
{
ReachedEndOfSequence();
}
if (m_bSequenceLoops)
{
flNewCycle -= (int)(flNewCycle);