mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-28 22:48:02 +03:00
KillOfRarity: Add feature in-air kill
This commit is contained in:
parent
8706cc5a10
commit
9f66264562
@ -252,7 +252,8 @@ enum KillRarity
|
|||||||
KILLRARITY_ASSISTEDFLASH = 0x020, // Assister helped with a flash
|
KILLRARITY_ASSISTEDFLASH = 0x020, // Assister helped with a flash
|
||||||
KILLRARITY_DOMINATION_BEGAN = 0x040, // Killer player began dominating the victim (NOTE: this flag is set once)
|
KILLRARITY_DOMINATION_BEGAN = 0x040, // Killer player began dominating the victim (NOTE: this flag is set once)
|
||||||
KILLRARITY_DOMINATION = 0x080, // Continues domination by the killer
|
KILLRARITY_DOMINATION = 0x080, // Continues domination by the killer
|
||||||
KILLRARITY_REVENGE = 0x100 // Revenge by the killer
|
KILLRARITY_REVENGE = 0x100, // Revenge by the killer
|
||||||
|
KILLRARITY_INAIR = 0x200 // Killer was in the air (skill to deal with high inaccuracy)
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
@ -5314,6 +5314,10 @@ int CHalfLifeMultiplay::GetRarityOfKill(CBaseEntity *pKiller, CBasePlayer *pVict
|
|||||||
const Vector inEyePos = pKillerPlayer->EyePosition();
|
const Vector inEyePos = pKillerPlayer->EyePosition();
|
||||||
if (TheCSBots()->IsLineBlockedBySmoke(&inEyePos, &pVictim->pev->origin))
|
if (TheCSBots()->IsLineBlockedBySmoke(&inEyePos, &pVictim->pev->origin))
|
||||||
iRarity |= KILLRARITY_THRUSMOKE;
|
iRarity |= KILLRARITY_THRUSMOKE;
|
||||||
|
|
||||||
|
// The killer player kills the victim while in air
|
||||||
|
if (!(pKillerPlayer->pev->flags & FL_ONGROUND))
|
||||||
|
iRarity |= KILLRARITY_INAIR;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate # of unanswered kills between killer & victim
|
// Calculate # of unanswered kills between killer & victim
|
||||||
|
Loading…
x
Reference in New Issue
Block a user