From f1237aa8635f27be0800dfb5607b9921e8d39c04 Mon Sep 17 00:00:00 2001 From: Asmodai Date: Tue, 10 Apr 2018 12:45:24 +0300 Subject: [PATCH] Update regamedll api version --- reapi/include/cssdk/dlls/regamedll_api.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/reapi/include/cssdk/dlls/regamedll_api.h b/reapi/include/cssdk/dlls/regamedll_api.h index 34e4769..224fa1e 100644 --- a/reapi/include/cssdk/dlls/regamedll_api.h +++ b/reapi/include/cssdk/dlls/regamedll_api.h @@ -38,7 +38,7 @@ #include #define REGAMEDLL_API_VERSION_MAJOR 5 -#define REGAMEDLL_API_VERSION_MINOR 6 +#define REGAMEDLL_API_VERSION_MINOR 8 // CBasePlayer::Spawn hook typedef IHookChainClass IReGameHook_CBasePlayer_Spawn; @@ -424,6 +424,18 @@ typedef IHookChainRegistry IReGameHook_PlantBomb; typedef IHookChainRegistry IReGameHookRegistry_PlantBomb; +// CBasePlayer::SetSpawnProtection hook +typedef IHookChainClass IReGameHook_CBasePlayer_SetSpawnProtection; +typedef IHookChainRegistryClass IReGameHookRegistry_CBasePlayer_SetSpawnProtection; + +// CBasePlayer::RemoveSpawnProtection hook +typedef IHookChainClass IReGameHook_CBasePlayer_RemoveSpawnProtection; +typedef IHookChainRegistryClass IReGameHookRegistry_CBasePlayer_RemoveSpawnProtection; + +// IsPenetrableEntity hook +typedef IHookChain IReGameHook_IsPenetrableEntity; +typedef IHookChainRegistry IReGameHookRegistry_IsPenetrableEntity; + class IReGameHookchains { public: virtual ~IReGameHookchains() {} @@ -529,6 +541,9 @@ public: virtual IReGameHookRegistry_ThrowFlashbang *ThrowFlashbang() = 0; virtual IReGameHookRegistry_ThrowSmokeGrenade *ThrowSmokeGrenade() = 0; virtual IReGameHookRegistry_PlantBomb *PlantBomb() = 0; + virtual IReGameHookRegistry_CBasePlayer_RemoveSpawnProtection *CBasePlayer_RemoveSpawnProtection() = 0; + virtual IReGameHookRegistry_CBasePlayer_SetSpawnProtection *CBasePlayer_SetSpawnProtection() = 0; + virtual IReGameHookRegistry_IsPenetrableEntity *IsPenetrableEntity() = 0; }; struct ReGameFuncs_t {