mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
31 lines
943 B
C++
31 lines
943 B
C++
|
//=============================================================================//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
// $NoKeywords: $
|
||
|
//=============================================================================//
|
||
|
#include "core/stdafx.h"
|
||
|
#include "public/include/studio.h"
|
||
|
#include "game/shared/animation.h"
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
//
|
||
|
//-----------------------------------------------------------------------------
|
||
|
int CStudioHdr::LookupSequence(CStudioHdr* pStudio, const char* pszName)
|
||
|
{
|
||
|
if (!pStudio->m_pMdlCacheVTable)
|
||
|
return -1; // animations are unavailable for missing dynamic props! (mdl/error.rmdl).
|
||
|
|
||
|
return v_CStudioHdr__LookupSequence(pStudio, pszName);
|
||
|
}
|
||
|
|
||
|
void Animation_Attach()
|
||
|
{
|
||
|
DetourAttach((LPVOID*)&v_CStudioHdr__LookupSequence, &CStudioHdr::LookupSequence);
|
||
|
}
|
||
|
|
||
|
void Animation_Detach()
|
||
|
{
|
||
|
DetourDetach((LPVOID*)&v_CStudioHdr__LookupSequence, &CStudioHdr::LookupSequence);
|
||
|
}
|