From d2ea0d342f92fb15b76ee4ad83f5e370aedc995b Mon Sep 17 00:00:00 2001 From: deprale <33827235+deprale@users.noreply.github.com> Date: Fri, 31 Mar 2023 18:53:04 +0100 Subject: [PATCH] fix incorrect player 3rd cam animations on death while frozen. (#815) --- regamedll/dlls/multiplay_gamerules.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/regamedll/dlls/multiplay_gamerules.cpp b/regamedll/dlls/multiplay_gamerules.cpp index 659d349e..c40af8fb 100644 --- a/regamedll/dlls/multiplay_gamerules.cpp +++ b/regamedll/dlls/multiplay_gamerules.cpp @@ -3916,7 +3916,9 @@ LINK_HOOK_CLASS_VOID_CUSTOM_CHAIN(CHalfLifeMultiplay, CSGameRules, PlayerKilled, void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(PlayerKilled)(CBasePlayer *pVictim, entvars_t *pKiller, entvars_t *pInflictor) { DeathNotice(pVictim, pKiller, pInflictor); - +#ifdef REGAMEDLL_FIXES + pVictim->pev->flags &= ~FL_FROZEN; +#endif pVictim->m_afPhysicsFlags &= ~PFLAG_ONTRAIN; pVictim->m_iDeaths++; pVictim->m_bNotKilled = false; @@ -3946,7 +3948,6 @@ void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(PlayerKilled)(CBasePlayer *pVictim, } FireTargets("game_playerdie", pVictim, pVictim, USE_TOGGLE, 0); - // Did the player kill himself? if (pVictim->pev == pKiller) {