Skip to content

Commit

Permalink
Resetting dmg_inflictor after Damage message is sent
Browse files Browse the repository at this point in the history
  • Loading branch information
dystopm committed Aug 23, 2023
1 parent 8864d12 commit 956905f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regamedll/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7358,6 +7358,10 @@ void EXT_FUNC CBasePlayer::__API_HOOK(UpdateClientData)()
{
damageOrigin = pEntity->Center();
}

#ifdef REGAMEDLL_FIXES
pev->dmg_inflictor = nullptr;
#endif
}

// only send down damage type that have hud art
Expand Down

0 comments on commit 956905f

Please sign in to comment.