mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-06-01 08:27:37 +03:00
KillRarity Domination: Don't consider suicides to be unanswered killing
This commit is contained in:
parent
cabdc254c7
commit
8706cc5a10
@ -5291,13 +5291,12 @@ int CHalfLifeMultiplay::GetRarityOfKill(CBaseEntity *pKiller, CBasePlayer *pVict
|
|||||||
iRarity |= KILLRARITY_HEADSHOT;
|
iRarity |= KILLRARITY_HEADSHOT;
|
||||||
|
|
||||||
CBasePlayer *pKillerPlayer = static_cast<CBasePlayer *>(pKiller);
|
CBasePlayer *pKillerPlayer = static_cast<CBasePlayer *>(pKiller);
|
||||||
if (pKillerPlayer && pKillerPlayer->IsPlayer())
|
if (pKillerPlayer && pKillerPlayer->IsPlayer() && pKillerPlayer != pVictim)
|
||||||
{
|
{
|
||||||
WeaponClassType weaponClass = AliasToWeaponClass(killerWeaponName);
|
WeaponClassType weaponClass = AliasToWeaponClass(killerWeaponName);
|
||||||
if (pKillerPlayer != pVictim
|
if (weaponClass != WEAPONCLASS_NONE &&
|
||||||
&& weaponClass != WEAPONCLASS_NONE
|
weaponClass != WEAPONCLASS_KNIFE &&
|
||||||
&& weaponClass != WEAPONCLASS_KNIFE
|
weaponClass != WEAPONCLASS_GRENADE)
|
||||||
&& weaponClass != WEAPONCLASS_GRENADE)
|
|
||||||
{
|
{
|
||||||
// The killer player kills the victim through the walls
|
// The killer player kills the victim through the walls
|
||||||
if (pVictim->GetDmgPenetrationLevel() > 0)
|
if (pVictim->GetDmgPenetrationLevel() > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user