Skip to content

Commit

Permalink
Fix effect_die being called twice on players
Browse files Browse the repository at this point in the history
  • Loading branch information
greatguys1 committed Oct 11, 2023
1 parent 1f52dd1 commit 5a15368
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion game/server/player/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,8 @@ void CBasePlayer::Killed(entvars_t *pevAttacker, int iGib)

//pev->gaitsequence = 0;

//This already runs on CMSMonster
/*
//MiB Dec2007a - For removing effects on death
if (m_Scripts.size() > 0)
{
Expand All @@ -778,7 +780,7 @@ void CBasePlayer::Killed(entvars_t *pevAttacker, int iGib)
}
}
}
}
}*/

dbg("Call game_death");
CallScriptEvent("game_death");
Expand Down

0 comments on commit 5a15368

Please sign in to comment.