added missing code forced enabling

This commit is contained in:
Vaqtincha 2024-05-18 23:42:55 +05:00
parent 5d7a1c8379
commit eb027cc768

View File

@ -558,12 +558,7 @@ void SVR_SemiclipOption()
}
else
{
if (!strcasecmp(argv, "time"))
{
if (g_Config.GetTime()) {
g_ReGameHookchains->CSGameRules_OnRoundFreezeEnd()->registerHook(&CSGameRules_OnRoundFreezeEnd, HC_PRIORITY_DEFAULT + 1);
}
else
if (!strcasecmp(argv, "semiclip"))
{
ClearAllClients();
@ -574,9 +569,20 @@ void SVR_SemiclipOption()
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()) {
g_ReGameHookchains->CSGameRules_OnRoundFreezeEnd()->registerHook(&CSGameRules_OnRoundFreezeEnd, HC_PRIORITY_DEFAULT + 1);
}
}
else if (!strcasecmp(argv, "penetfire"))
{