From 6a18daf7362f933353bac39ac287b99d8f76885f Mon Sep 17 00:00:00 2001 From: Lozatto Date: Fri, 9 Aug 2024 09:04:24 -0300 Subject: [PATCH] CBreakable:: hooks adjust * and comments --- regamedll/dlls/API/CAPI_Impl.h | 16 ++++++++-------- regamedll/public/regamedll/regamedll_api.h | 14 +++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/regamedll/dlls/API/CAPI_Impl.h b/regamedll/dlls/API/CAPI_Impl.h index e0874eb66..52fea8b46 100644 --- a/regamedll/dlls/API/CAPI_Impl.h +++ b/regamedll/dlls/API/CAPI_Impl.h @@ -753,7 +753,7 @@ typedef IHookChainRegistryClassImpl CReGameHookRegistry typedef IHookChainClassImpl CReGameHook_CBreakable_Spawn; typedef IHookChainRegistryClassImpl CReGameHookRegistry_CBreakable_Spawn; -// CBreakable::Spawn hook +// CBreakable::Restart hook typedef IHookChainClassImpl CReGameHook_CBreakable_Restart; typedef IHookChainRegistryClassImpl CReGameHookRegistry_CBreakable_Restart; @@ -1107,13 +1107,13 @@ class CReGameHookchains: public IReGameHookchains { virtual IReGameHookRegistry_CBasePlayer_Observer_Think *CBasePlayer_Observer_Think(); virtual IReGameHookRegistry_CBasePlayer_RemoveAllItems *CBasePlayer_RemoveAllItems(); - virtual IReGameHookRegistry_CBreakable_Spawn* CBreakable_Spawn(); - virtual IReGameHookRegistry_CBreakable_Restart* CBreakable_Restart(); - virtual IReGameHookRegistry_CBreakable_TraceAttack* CBreakable_TraceAttack(); - virtual IReGameHookRegistry_CBreakable_TakeDamage* CBreakable_TakeDamage(); - virtual IReGameHookRegistry_CBreakable_Use* CBreakable_Use(); - virtual IReGameHookRegistry_CBreakable_Die* CBreakable_Die(); - virtual IReGameHookRegistry_CBreakable_BreakTouch* CBreakable_BreakTouch(); + virtual IReGameHookRegistry_CBreakable_Spawn *CBreakable_Spawn(); + virtual IReGameHookRegistry_CBreakable_Restart *CBreakable_Restart(); + virtual IReGameHookRegistry_CBreakable_TraceAttack *CBreakable_TraceAttack(); + virtual IReGameHookRegistry_CBreakable_TakeDamage *CBreakable_TakeDamage(); + virtual IReGameHookRegistry_CBreakable_Use *CBreakable_Use(); + virtual IReGameHookRegistry_CBreakable_Die *CBreakable_Die(); + virtual IReGameHookRegistry_CBreakable_BreakTouch *CBreakable_BreakTouch(); }; extern CReGameHookchains g_ReGameHookchains; diff --git a/regamedll/public/regamedll/regamedll_api.h b/regamedll/public/regamedll/regamedll_api.h index 9f0dcf0cf..0203fd6e9 100644 --- a/regamedll/public/regamedll/regamedll_api.h +++ b/regamedll/public/regamedll/regamedll_api.h @@ -819,13 +819,13 @@ class IReGameHookchains { virtual IReGameHookRegistry_CBasePlayer_Observer_Think *CBasePlayer_Observer_Think() = 0; virtual IReGameHookRegistry_CBasePlayer_RemoveAllItems *CBasePlayer_RemoveAllItems() = 0; - virtual IReGameHookRegistry_CBreakable_Spawn* CBreakable_Spawn() = 0; - virtual IReGameHookRegistry_CBreakable_Restart* CBreakable_Restart() = 0; - virtual IReGameHookRegistry_CBreakable_TraceAttack* CBreakable_TraceAttack() = 0; - virtual IReGameHookRegistry_CBreakable_TakeDamage* CBreakable_TakeDamage() = 0; - virtual IReGameHookRegistry_CBreakable_Use* CBreakable_Use() = 0; - virtual IReGameHookRegistry_CBreakable_Die* CBreakable_Die() = 0; - virtual IReGameHookRegistry_CBreakable_BreakTouch* CBreakable_BreakTouch() = 0; + virtual IReGameHookRegistry_CBreakable_Spawn *CBreakable_Spawn() = 0; + virtual IReGameHookRegistry_CBreakable_Restart *CBreakable_Restart() = 0; + virtual IReGameHookRegistry_CBreakable_TraceAttack *CBreakable_TraceAttack() = 0; + virtual IReGameHookRegistry_CBreakable_TakeDamage *CBreakable_TakeDamage() = 0; + virtual IReGameHookRegistry_CBreakable_Use *CBreakable_Use() = 0; + virtual IReGameHookRegistry_CBreakable_Die *CBreakable_Die() = 0; + virtual IReGameHookRegistry_CBreakable_BreakTouch *CBreakable_BreakTouch() = 0; }; struct ReGameFuncs_t {