Fix crithack desyncs
This commit is contained in:
parent
da1b8ed971
commit
45a5fc18b2
@ -922,7 +922,7 @@ public:
|
||||
else if (!strcmp(event->GetName(), "player_hurt"))
|
||||
{
|
||||
int victim = g_IEngine->GetPlayerForUserID(event->GetInt("userid"));
|
||||
CachedEntity *ent = ENTITY(g_IEngine->GetPlayerForUserID(victim));
|
||||
CachedEntity *ent = ENTITY(victim);
|
||||
int health = event->GetInt("health");
|
||||
|
||||
// Or Basically, Actual damage dealt
|
||||
|
Reference in New Issue
Block a user