2022-09-21 02:38:58 +02:00
|
|
|
#ifndef CL_ENTS_PARSE_H
|
|
|
|
#define CL_ENTS_PARSE_H
|
|
|
|
|
|
|
|
inline CMemory p_CL_CopyExistingEntity;
|
2023-07-02 23:01:29 +02:00
|
|
|
inline bool(*v_CL_CopyExistingEntity)(__int64 a1, unsigned int* a2, char* a3);
|
2022-09-21 02:38:58 +02:00
|
|
|
|
2023-01-25 02:26:52 +01:00
|
|
|
bool CL_CopyExistingEntity(__int64 a1, unsigned int* a2, char* a3);
|
2022-09-21 02:38:58 +02:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
class V_CL_Ents_Parse : public IDetour
|
|
|
|
{
|
|
|
|
virtual void GetAdr(void) const
|
|
|
|
{
|
2023-01-25 02:26:52 +01:00
|
|
|
LogFunAdr("CL_CopyExistingEntity", p_CL_CopyExistingEntity.GetPtr());
|
2022-09-21 02:38:58 +02:00
|
|
|
}
|
|
|
|
virtual void GetFun(void) const
|
|
|
|
{
|
2022-12-01 22:44:55 +01:00
|
|
|
p_CL_CopyExistingEntity = g_GameDll.FindPatternSIMD("40 53 48 83 EC 70 4C 63 51 28");
|
2022-09-21 02:38:58 +02:00
|
|
|
v_CL_CopyExistingEntity = p_CL_CopyExistingEntity.RCast<bool (*)(__int64, unsigned int*, char*)>(); /*40 53 48 83 EC 70 4C 63 51 28*/
|
|
|
|
}
|
|
|
|
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-25 02:26:52 +01:00
|
|
|
{
|
2023-11-26 13:21:20 +01:00
|
|
|
DetourSetup(&v_CL_CopyExistingEntity, &CL_CopyExistingEntity, bAttach);
|
2023-01-25 02:26:52 +01:00
|
|
|
}
|
2022-09-21 02:38:58 +02:00
|
|
|
};
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#endif // !CL_ENTS_PARSE_H
|