diff --git a/regamedll/dlls/cbase.h b/regamedll/dlls/cbase.h index 146245c7..5199d75b 100644 --- a/regamedll/dlls/cbase.h +++ b/regamedll/dlls/cbase.h @@ -244,6 +244,7 @@ public: #ifdef REGAMEDLL_API CCSEntity *m_pEntity; + CCSEntity *CSEntity() const; #else // We use this variables to store each ammo count. // 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; } +#ifdef REGAMEDLL_API +inline CCSEntity *CBaseEntity::CSEntity() const +{ + return m_pEntity; +} +#endif + class CPointEntity: public CBaseEntity { public: virtual void Spawn(); diff --git a/regamedll/public/regamedll/API/CSEntity.h b/regamedll/public/regamedll/API/CSEntity.h index 92882bd8..57e97b9e 100644 --- a/regamedll/public/regamedll/API/CSEntity.h +++ b/regamedll/public/regamedll/API/CSEntity.h @@ -47,8 +47,9 @@ public: private: #if defined(_MSC_VER) -#pragma region reserve_vfuncs_Region +#pragma region reserve_data_Region #endif + int CCSEntity_Reserve[0x1000]; virtual void func_reserve1() {}; virtual void func_reserve2() {}; virtual void func_reserve3() {}; @@ -88,24 +89,32 @@ class CCSDelay: public CCSEntity { public: +private: + int CCSDelay_Reserve[0x100]; }; class CCSAnimating: public CCSDelay { public: +private: + int CCSAnimating_Reserve[0x100]; }; class CCSToggle: public CCSAnimating { public: +private: + int CCSToggle_Reserve[0x100]; }; class CCSMonster: public CCSToggle { public: +private: + int CCSMonster_Reserve[0x100]; }; -#define CSENTITY_API_INTERFACE_VERSION "CSENTITY_API_INTERFACE_VERSION002" +#define CSENTITY_API_INTERFACE_VERSION "CSENTITY_API_INTERFACE_VERSION003"