mirror of
https://github.com/rehlds/resemiclip.git
synced 2024-12-26 14:45:54 +03:00
add missing check penetfire
This commit is contained in:
parent
e4aa2a9487
commit
5d7a1c8379
@ -516,8 +516,12 @@ void CSGameRules_OnRoundFreezeEnd(IReGameHook_CSGameRules_OnRoundFreezeEnd *chai
|
|||||||
|
|
||||||
g_ReGameHookchains->CBasePlayer_Spawn()->unregisterHook(&CBasePlayer_Spawn);
|
g_ReGameHookchains->CBasePlayer_Spawn()->unregisterHook(&CBasePlayer_Spawn);
|
||||||
g_ReGameHookchains->CBasePlayer_Spawn()->registerHook(&CBasePlayer_Spawn, HC_PRIORITY_DEFAULT + 1);
|
g_ReGameHookchains->CBasePlayer_Spawn()->registerHook(&CBasePlayer_Spawn, HC_PRIORITY_DEFAULT + 1);
|
||||||
|
|
||||||
|
if (g_Config.GetPenetFire())
|
||||||
|
{
|
||||||
g_ReGameHookchains->CBasePlayer_TraceAttack()->unregisterHook(&CBasePlayer_TraceAttack);
|
g_ReGameHookchains->CBasePlayer_TraceAttack()->unregisterHook(&CBasePlayer_TraceAttack);
|
||||||
g_ReGameHookchains->CBasePlayer_TraceAttack()->registerHook(&CBasePlayer_TraceAttack, HC_PRIORITY_DEFAULT + 1);
|
g_ReGameHookchains->CBasePlayer_TraceAttack()->registerHook(&CBasePlayer_TraceAttack, HC_PRIORITY_DEFAULT + 1);
|
||||||
|
}
|
||||||
|
|
||||||
g_pFunctionTable->pfnPM_Move = PM_Move;
|
g_pFunctionTable->pfnPM_Move = PM_Move;
|
||||||
g_pNewFunctionTable->pfnShouldCollide = ShouldCollide;
|
g_pNewFunctionTable->pfnShouldCollide = ShouldCollide;
|
||||||
|
Loading…
Reference in New Issue
Block a user