Add reserve members for CCS Entity

Bump interface version up to CSENTITY_API_INTERFACE_VERSION003
This commit is contained in:
s1lentq 2023-08-24 17:09:50 +07:00
parent 02bb06a6ef
commit f3723d7a04
2 changed files with 19 additions and 2 deletions

View File

@ -244,6 +244,7 @@ public:
#ifdef REGAMEDLL_API #ifdef REGAMEDLL_API
CCSEntity *m_pEntity; CCSEntity *m_pEntity;
CCSEntity *CSEntity() const;
#else #else
// We use this variables to store each ammo count. // We use this variables to store each ammo count.
// let's sacrifice this unused member, for its own needs in favor of m_pEntity // let's sacrifice this unused member, for its own needs in favor of m_pEntity
@ -328,6 +329,13 @@ inline void CBaseEntity::SetBlocked(std::nullptr_t)
m_pfnBlocked = nullptr; m_pfnBlocked = nullptr;
} }
#ifdef REGAMEDLL_API
inline CCSEntity *CBaseEntity::CSEntity() const
{
return m_pEntity;
}
#endif
class CPointEntity: public CBaseEntity { class CPointEntity: public CBaseEntity {
public: public:
virtual void Spawn(); virtual void Spawn();

View File

@ -47,8 +47,9 @@ public:
private: private:
#if defined(_MSC_VER) #if defined(_MSC_VER)
#pragma region reserve_vfuncs_Region #pragma region reserve_data_Region
#endif #endif
int CCSEntity_Reserve[0x1000];
virtual void func_reserve1() {}; virtual void func_reserve1() {};
virtual void func_reserve2() {}; virtual void func_reserve2() {};
virtual void func_reserve3() {}; virtual void func_reserve3() {};
@ -88,24 +89,32 @@ class CCSDelay: public CCSEntity
{ {
public: public:
private:
int CCSDelay_Reserve[0x100];
}; };
class CCSAnimating: public CCSDelay class CCSAnimating: public CCSDelay
{ {
public: public:
private:
int CCSAnimating_Reserve[0x100];
}; };
class CCSToggle: public CCSAnimating class CCSToggle: public CCSAnimating
{ {
public: public:
private:
int CCSToggle_Reserve[0x100];
}; };
class CCSMonster: public CCSToggle class CCSMonster: public CCSToggle
{ {
public: public:
private:
int CCSMonster_Reserve[0x100];
}; };
#define CSENTITY_API_INTERFACE_VERSION "CSENTITY_API_INTERFACE_VERSION002" #define CSENTITY_API_INTERFACE_VERSION "CSENTITY_API_INTERFACE_VERSION003"