We can calculate the total amount of damage done by every player(with a minimum threshold cause otherwise it won't be very fair either), damage received, and then divide it by the number of players we used in this calculation.
As such I was thinking more in the direction of :
Code:
{ (DamageGiven / AvDamageGiven) / (DamageReceived / AvDamageReceived) } * (Hits - Headshots) +
{ (DamageGiven / AvDamageGiven)² / (DamageReceived / AvDamageReceived) } * (Headshots)
Scarhand thanks for your suggestions they were useful, some pointers :
- Your left and right side of the formula aren't very proportionate. (Damage_Received / Damage_Given) will be really small and as such it won't have much influence in your calculation.
- Same thing in the right hand side: (HS / Hits) * (Hits / Shots) will become (HS / Shots) which is in most cases also quite small.
Even more so when we have to sum all the shots of all weapons that do headshots and all the produced headshots.
Still it was a great attempt with logical explanation! That's how we can solve this

.