Jump to content

Change the behavior of headshot stats - Only count confirm kills

Pending 2.2.0

BjarkeH
BjarkeH

Posted

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 🙂

  • Administrator
Steenamaroo

Posted

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
  • Administrator
Steenamaroo

Posted

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

BjarkeH

Posted

That sounds great, really nice work 🙂
I will see if I can find a way to test it

BjarkeH

Posted

Is the new version released so I can download it?
The newest one I can see is the one from 06 or may

  • Administrator
Steenamaroo

Posted

It's attached to my last reply. 🙂

BjarkeH

Posted

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 🙂

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

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.