mirror of
https://github.com/rehlds/resemiclip.git
synced 2025-02-20 02:21:02 +03:00
added missing code forced enabling
This commit is contained in:
parent
5d7a1c8379
commit
eb027cc768
36
src/main.cpp
36
src/main.cpp
@ -558,25 +558,31 @@ void SVR_SemiclipOption()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!strcasecmp(argv, "time"))
|
if (!strcasecmp(argv, "semiclip"))
|
||||||
|
{
|
||||||
|
ClearAllClients();
|
||||||
|
|
||||||
|
g_RehldsHookchains->SV_CreatePacketEntities()->unregisterHook(&SV_CreatePacketEntities);
|
||||||
|
g_RehldsHookchains->SV_CreatePacketEntities()->registerHook(&SV_CreatePacketEntities, HC_PRIORITY_HIGH);
|
||||||
|
|
||||||
|
g_ReGameHookchains->CBasePlayer_Spawn()->unregisterHook(&CBasePlayer_Spawn);
|
||||||
|
g_ReGameHookchains->CBasePlayer_Spawn()->registerHook(&CBasePlayer_Spawn, HC_PRIORITY_DEFAULT + 1);
|
||||||
|
g_ReGameHookchains->CSGameRules_OnRoundFreezeEnd()->unregisterHook(&CSGameRules_OnRoundFreezeEnd);
|
||||||
|
|
||||||
|
if (g_Config.GetPenetFire())
|
||||||
|
{
|
||||||
|
g_ReGameHookchains->CBasePlayer_TraceAttack()->unregisterHook(&CBasePlayer_TraceAttack);
|
||||||
|
g_ReGameHookchains->CBasePlayer_TraceAttack()->registerHook(&CBasePlayer_TraceAttack, HC_PRIORITY_DEFAULT + 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
g_pFunctionTable->pfnPM_Move = PM_Move;
|
||||||
|
g_pNewFunctionTable->pfnShouldCollide = ShouldCollide;
|
||||||
|
}
|
||||||
|
else if (!strcasecmp(argv, "time"))
|
||||||
{
|
{
|
||||||
if (g_Config.GetTime()) {
|
if (g_Config.GetTime()) {
|
||||||
g_ReGameHookchains->CSGameRules_OnRoundFreezeEnd()->registerHook(&CSGameRules_OnRoundFreezeEnd, HC_PRIORITY_DEFAULT + 1);
|
g_ReGameHookchains->CSGameRules_OnRoundFreezeEnd()->registerHook(&CSGameRules_OnRoundFreezeEnd, HC_PRIORITY_DEFAULT + 1);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
ClearAllClients();
|
|
||||||
|
|
||||||
g_RehldsHookchains->SV_CreatePacketEntities()->unregisterHook(&SV_CreatePacketEntities);
|
|
||||||
g_RehldsHookchains->SV_CreatePacketEntities()->registerHook(&SV_CreatePacketEntities, HC_PRIORITY_HIGH);
|
|
||||||
|
|
||||||
g_ReGameHookchains->CBasePlayer_Spawn()->unregisterHook(&CBasePlayer_Spawn);
|
|
||||||
g_ReGameHookchains->CBasePlayer_Spawn()->registerHook(&CBasePlayer_Spawn, HC_PRIORITY_DEFAULT + 1);
|
|
||||||
g_ReGameHookchains->CSGameRules_OnRoundFreezeEnd()->unregisterHook(&CSGameRules_OnRoundFreezeEnd);
|
|
||||||
|
|
||||||
g_pFunctionTable->pfnPM_Move = PM_Move;
|
|
||||||
g_pNewFunctionTable->pfnShouldCollide = ShouldCollide;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (!strcasecmp(argv, "penetfire"))
|
else if (!strcasecmp(argv, "penetfire"))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user