mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 07:05:38 +03:00
Crash fix
This commit is contained in:
parent
76daeb77f6
commit
fe0ea9a1bc
@ -116,7 +116,6 @@ GAMEHOOK_REGISTRY(ShowVGUIMenu);
|
||||
GAMEHOOK_REGISTRY(BuyGunAmmo);
|
||||
GAMEHOOK_REGISTRY(BuyWeaponByWeaponID);
|
||||
GAMEHOOK_REGISTRY(InternalCommand);
|
||||
GAMEHOOK_REGISTRY(IsPenetrableEntity);
|
||||
|
||||
GAMEHOOK_REGISTRY(CSGameRules_FShouldSwitchWeapon);
|
||||
GAMEHOOK_REGISTRY(CSGameRules_GetNextBestWeapon);
|
||||
@ -160,6 +159,7 @@ GAMEHOOK_REGISTRY(ThrowSmokeGrenade);
|
||||
GAMEHOOK_REGISTRY(PlantBomb);
|
||||
GAMEHOOK_REGISTRY(CBasePlayer_SetSpawnProtection);
|
||||
GAMEHOOK_REGISTRY(CBasePlayer_RemoveSpawnProtection);
|
||||
GAMEHOOK_REGISTRY(IsPenetrableEntity);
|
||||
|
||||
int CReGameApi::GetMajorVersion() {
|
||||
return REGAMEDLL_API_VERSION_MAJOR;
|
||||
|
@ -361,10 +361,6 @@ typedef IHookChainRegistryImpl<CBaseEntity *, CBasePlayer *, WeaponIdType> CReGa
|
||||
typedef IHookChainImpl<void, edict_t *, const char *, const char *> CReGameHook_InternalCommand;
|
||||
typedef IHookChainRegistryImpl<void, edict_t *, const char *, const char *> CReGameHookRegistry_InternalCommand;
|
||||
|
||||
// IsPenetrableEntity hook
|
||||
typedef IHookChainImpl<bool, Vector &, Vector &, entvars_t *, edict_t *> CReGameHook_IsPenetrableEntity;
|
||||
typedef IHookChainRegistryImpl<bool, Vector &, Vector &, entvars_t *, edict_t *> CReGameHookRegistry_IsPenetrableEntity;
|
||||
|
||||
// CHalfLifeMultiplay::FShouldSwitchWeapon hook
|
||||
typedef IHookChainClassImpl<BOOL, class CHalfLifeMultiplay, CBasePlayer *, CBasePlayerItem *> CReGameHook_CSGameRules_FShouldSwitchWeapon;
|
||||
typedef IHookChainRegistryClassEmptyImpl<BOOL, class CHalfLifeMultiplay, CBasePlayer *, CBasePlayerItem *> CReGameHookRegistry_CSGameRules_FShouldSwitchWeapon;
|
||||
@ -533,6 +529,10 @@ typedef IHookChainRegistryClassImpl<void, CBasePlayer, float> CReGameHookRegistr
|
||||
typedef IHookChainImpl<void, CBasePlayer> CReGameHook_CBasePlayer_RemoveSpawnProtection;
|
||||
typedef IHookChainRegistryClassImpl<void, CBasePlayer> CReGameHookRegistry_CBasePlayer_RemoveSpawnProtection;
|
||||
|
||||
// IsPenetrableEntity hook
|
||||
typedef IHookChainImpl<bool, Vector &, Vector &, entvars_t *, edict_t *> CReGameHook_IsPenetrableEntity;
|
||||
typedef IHookChainRegistryImpl<bool, Vector &, Vector &, entvars_t *, edict_t *> CReGameHookRegistry_IsPenetrableEntity;
|
||||
|
||||
class CReGameHookchains: public IReGameHookchains {
|
||||
public:
|
||||
// CBasePlayer virtual
|
||||
@ -595,7 +595,6 @@ public:
|
||||
CReGameHookRegistry_BuyGunAmmo m_BuyGunAmmo;
|
||||
CReGameHookRegistry_BuyWeaponByWeaponID m_BuyWeaponByWeaponID;
|
||||
CReGameHookRegistry_InternalCommand m_InternalCommand;
|
||||
CReGameHookRegistry_IsPenetrableEntity m_IsPenetrableEntity;
|
||||
|
||||
CReGameHookRegistry_CSGameRules_FShouldSwitchWeapon m_CSGameRules_FShouldSwitchWeapon;
|
||||
CReGameHookRegistry_CSGameRules_GetNextBestWeapon m_CSGameRules_GetNextBestWeapon;
|
||||
@ -640,6 +639,7 @@ public:
|
||||
CReGameHookRegistry_PlantBomb m_PlantBomb;
|
||||
CReGameHookRegistry_CBasePlayer_SetSpawnProtection m_CBasePlayer_SetSpawnProtection;
|
||||
CReGameHookRegistry_CBasePlayer_RemoveSpawnProtection m_CBasePlayer_RemoveSpawnProtection;
|
||||
CReGameHookRegistry_IsPenetrableEntity m_IsPenetrableEntity;
|
||||
public:
|
||||
virtual IReGameHookRegistry_CBasePlayer_Spawn *CBasePlayer_Spawn();
|
||||
virtual IReGameHookRegistry_CBasePlayer_Precache *CBasePlayer_Precache();
|
||||
@ -700,7 +700,6 @@ public:
|
||||
virtual IReGameHookRegistry_BuyGunAmmo *BuyGunAmmo();
|
||||
virtual IReGameHookRegistry_BuyWeaponByWeaponID *BuyWeaponByWeaponID();
|
||||
virtual IReGameHookRegistry_InternalCommand *InternalCommand();
|
||||
virtual IReGameHookRegistry_IsPenetrableEntity *IsPenetrableEntity();
|
||||
|
||||
virtual IReGameHookRegistry_CSGameRules_FShouldSwitchWeapon *CSGameRules_FShouldSwitchWeapon();
|
||||
virtual IReGameHookRegistry_CSGameRules_GetNextBestWeapon *CSGameRules_GetNextBestWeapon();
|
||||
@ -745,6 +744,7 @@ public:
|
||||
virtual IReGameHookRegistry_PlantBomb *PlantBomb();
|
||||
virtual IReGameHookRegistry_CBasePlayer_SetSpawnProtection *CBasePlayer_SetSpawnProtection();
|
||||
virtual IReGameHookRegistry_CBasePlayer_RemoveSpawnProtection *CBasePlayer_RemoveSpawnProtection();
|
||||
virtual IReGameHookRegistry_IsPenetrableEntity *IsPenetrableEntity();
|
||||
};
|
||||
|
||||
extern CReGameHookchains g_ReGameHookchains;
|
||||
|
@ -264,10 +264,6 @@ typedef IHookChainRegistry<class CBaseEntity *, class CBasePlayer *, WeaponIdTyp
|
||||
typedef IHookChain<void, edict_t *, const char *, const char *> IReGameHook_InternalCommand;
|
||||
typedef IHookChainRegistry<void, edict_t *, const char *, const char *> IReGameHookRegistry_InternalCommand;
|
||||
|
||||
// IsPenetrableEntity hook
|
||||
typedef IHookChain<bool, Vector &, Vector &, entvars_t *, edict_t *> IReGameHook_IsPenetrableEntity;
|
||||
typedef IHookChainRegistry<bool, Vector &, Vector &, entvars_t *, edict_t *> IReGameHookRegistry_IsPenetrableEntity;
|
||||
|
||||
// CHalfLifeMultiplay::FShouldSwitchWeapon hook
|
||||
typedef IHookChain<BOOL, class CBasePlayer *, class CBasePlayerItem *> IReGameHook_CSGameRules_FShouldSwitchWeapon;
|
||||
typedef IHookChainRegistry<BOOL, class CBasePlayer *, class CBasePlayerItem *> IReGameHookRegistry_CSGameRules_FShouldSwitchWeapon;
|
||||
@ -436,6 +432,10 @@ typedef IHookChainRegistryClass<void, class CBasePlayer, float> IReGameHookRegis
|
||||
typedef IHookChainClass<void, class CBasePlayer> IReGameHook_CBasePlayer_RemoveSpawnProtection;
|
||||
typedef IHookChainRegistryClass<void, class CBasePlayer> IReGameHookRegistry_CBasePlayer_RemoveSpawnProtection;
|
||||
|
||||
// IsPenetrableEntity hook
|
||||
typedef IHookChain<bool, Vector &, Vector &, entvars_t *, edict_t *> IReGameHook_IsPenetrableEntity;
|
||||
typedef IHookChainRegistry<bool, Vector &, Vector &, entvars_t *, edict_t *> IReGameHookRegistry_IsPenetrableEntity;
|
||||
|
||||
class IReGameHookchains {
|
||||
public:
|
||||
virtual ~IReGameHookchains() {}
|
||||
@ -500,7 +500,6 @@ public:
|
||||
virtual IReGameHookRegistry_BuyGunAmmo *BuyGunAmmo() = 0;
|
||||
virtual IReGameHookRegistry_BuyWeaponByWeaponID *BuyWeaponByWeaponID() = 0;
|
||||
virtual IReGameHookRegistry_InternalCommand *InternalCommand() = 0;
|
||||
virtual IReGameHookRegistry_IsPenetrableEntity *IsPenetrableEntity() = 0;
|
||||
|
||||
virtual IReGameHookRegistry_CSGameRules_FShouldSwitchWeapon *CSGameRules_FShouldSwitchWeapon() = 0;
|
||||
virtual IReGameHookRegistry_CSGameRules_GetNextBestWeapon *CSGameRules_GetNextBestWeapon() = 0;
|
||||
@ -544,6 +543,7 @@ public:
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user