//=============================================================================//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//
#include "core/stdafx.h"
#include "public/studio.h"
#include "game/shared/animation.h"

//-----------------------------------------------------------------------------
//	
//-----------------------------------------------------------------------------
int CStudioHdr::LookupSequence(CStudioHdr* pStudio, const char* pszName)
{
	if (!pStudio->m_pMDLCache)
		return -1; // animations are unavailable for missing dynamic props! (mdl/error.rmdl).

	return v_CStudioHdr__LookupSequence(pStudio, pszName);
}

void VAnimation::Attach() const
{
	DetourAttach(&v_CStudioHdr__LookupSequence, &CStudioHdr::LookupSequence);
}

void VAnimation::Detach() const
{
	DetourDetach(&v_CStudioHdr__LookupSequence, &CStudioHdr::LookupSequence);
}
