diff --git a/regamedll/dlls/multiplay_gamerules.cpp b/regamedll/dlls/multiplay_gamerules.cpp index 53501ac0f..ba71bcebb 100644 --- a/regamedll/dlls/multiplay_gamerules.cpp +++ b/regamedll/dlls/multiplay_gamerules.cpp @@ -5291,13 +5291,12 @@ int CHalfLifeMultiplay::GetRarityOfKill(CBaseEntity *pKiller, CBasePlayer *pVict iRarity |= KILLRARITY_HEADSHOT; CBasePlayer *pKillerPlayer = static_cast(pKiller); - if (pKillerPlayer && pKillerPlayer->IsPlayer()) + if (pKillerPlayer && pKillerPlayer->IsPlayer() && pKillerPlayer != pVictim) { WeaponClassType weaponClass = AliasToWeaponClass(killerWeaponName); - if (pKillerPlayer != pVictim - && weaponClass != WEAPONCLASS_NONE - && weaponClass != WEAPONCLASS_KNIFE - && weaponClass != WEAPONCLASS_GRENADE) + if (weaponClass != WEAPONCLASS_NONE && + weaponClass != WEAPONCLASS_KNIFE && + weaponClass != WEAPONCLASS_GRENADE) { // The killer player kills the victim through the walls if (pVictim->GetDmgPenetrationLevel() > 0)