Jump to content

Change the behavior of headshot stats - Only count confirm kills

Pending 2.2.0

A suggestion to change the behavior of headshot stats.

Change the PVPheadshot stat to only count a headshot if a player is killed. some what like CS:GO and other games.
That way it will be more realistic, and a headshot % can be added 🙂

Share this comment


Link to comment

Hi,
Yes, I can do that.
I've already added the option to only count real player headshots (not npcs), which I think you requested,
and a check to make sure the player lost health, so headshot stat can't be abused when there is no damage for whatever reason.

I've now added an additional config option to check if player health is zero and only award headshot stat if that's the case. 🙂

  • Like 1

Share this comment


Link to comment

If you were willing to test, that'd be really helpful!

The two new options in config > Options are
PVPHeadshotsOnly = true;                 ( excludes headshotting npcs )
CountHeadshotsOnlyIfKill = false;     ( excludes headshots were victim survived )

PlayerRanks.cs

Share this comment


Link to comment

Looks like it works, I tested it by shooting 7 shoots in the head. Healing up again, and then killing by headshot two times. And it counted as two headshots, so it must work 🙂

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.3k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.