mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-14 23:58:06 +03:00
Do not reduce points for suicide due to a fatal fall
This commit is contained in:
parent
aec3ba2579
commit
0bbc4bd55d
@ -3960,11 +3960,20 @@ void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(PlayerKilled)(CBasePlayer *pVictim,
|
|||||||
}
|
}
|
||||||
|
|
||||||
FireTargets("game_playerdie", pVictim, pVictim, USE_TOGGLE, 0);
|
FireTargets("game_playerdie", pVictim, pVictim, USE_TOGGLE, 0);
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
// Did the player die from a fall?
|
||||||
|
if (pVictim->m_bitsDamageType & DMG_FALL)
|
||||||
|
{
|
||||||
|
// do nothing
|
||||||
|
}
|
||||||
|
else
|
||||||
|
#endif
|
||||||
// Did the player kill himself?
|
// Did the player kill himself?
|
||||||
if (pVictim->pev == pKiller)
|
if (pVictim->pev == pKiller)
|
||||||
{
|
{
|
||||||
// Players lose a frag for killing themselves
|
// Players lose a frag for killing themselves
|
||||||
pKiller->frags -= 1;
|
pVictim->pev->frags -= 1;
|
||||||
}
|
}
|
||||||
else if (peKiller && peKiller->IsPlayer())
|
else if (peKiller && peKiller->IsPlayer())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user