mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 07:05:38 +03:00
fix incorrect player 3rd cam animations on death while frozen. (#815)
This commit is contained in:
parent
eb91f9280d
commit
d2ea0d342f
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user