2023-01-19 22:53:45 +01:00
|
|
|
|
//====== Copyright <20> 1996-2005, Valve Corporation, All rights reserved. =======//
|
|
|
|
|
//
|
|
|
|
|
// Purpose:
|
|
|
|
|
//
|
|
|
|
|
// $NoKeywords: $
|
|
|
|
|
//=============================================================================//
|
|
|
|
|
#ifndef PHYSICS_MAIN_H
|
|
|
|
|
#define PHYSICS_MAIN_H
|
|
|
|
|
|
2023-07-02 23:01:29 +02:00
|
|
|
|
inline void(*v_Physics_RunThinkFunctions)(bool bSimulating);
|
2023-01-19 22:53:45 +01:00
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
class VPhysics_Main : public IDetour
|
|
|
|
|
{
|
|
|
|
|
virtual void GetAdr(void) const
|
|
|
|
|
{
|
2024-01-02 15:21:36 +01:00
|
|
|
|
LogFunAdr("Physics_RunThinkFunctions", v_Physics_RunThinkFunctions);
|
2023-01-19 22:53:45 +01:00
|
|
|
|
}
|
|
|
|
|
virtual void GetFun(void) const
|
|
|
|
|
{
|
2024-01-02 15:21:36 +01:00
|
|
|
|
g_GameDll.FindPatternSIMD("88 4C 24 08 55 56 57 41 54 41 55 41 56 41 57 48 81 EC ?? ?? ?? ??").GetPtr(v_Physics_RunThinkFunctions);
|
2023-01-19 22:53:45 +01:00
|
|
|
|
}
|
|
|
|
|
virtual void GetVar(void) const { }
|
|
|
|
|
virtual void GetCon(void) const { }
|
2023-11-26 13:21:20 +01:00
|
|
|
|
virtual void Detour(const bool bAttach) const;
|
2023-01-19 22:53:45 +01:00
|
|
|
|
};
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#endif // PHYSICS_MAIN_H
|