Page 1 of 1

Sniper efficiency measurement

Posted: 23 Nov 2018, 18:54
by M4L4
Since my ai is way far from being optimized, i often switch tactics, aiming techniques and stuff, and it became quite difficult to measure improvements even by watching multiple matches, so i came up with a simple efficiency counter for the sniper.

Image

counter 3 keeps track of total ticks spent aiming during the match,
counter 4 checks if you actually aim for 12 consecutive ticks without switching target
counter 5 keeps track of how many shots have been fired during the match.

at the end of the match you can easily see how many ticks you've wasted aiming without firing,
[counter3 - (counter5 x 12)]
getting a more precise idea of your aim stability.

hope it can help :)

Re: Sniper efficiency measurement

Posted: 23 Nov 2018, 19:00
by ElvenMonk
It doesn't seem to take into account that sniper fires at the beginning of 13th tick rather then at the end of 12th.

Interesting and promising idea anyway.

Re: Sniper efficiency measurement

Posted: 23 Nov 2018, 19:26
by M4L4
ElvenMonk wrote:It doesn't seem to take into account that sniper fires at the beginning of 13th tick rather then at the end of 12th.


yes, i wasn't 100% sure about exact timing (and counter reset order), any idea on how to fix it?

ElvenMonk wrote:Interesting and promising idea anyway.


thanks, it can be easily adapted to every bot class, and maybe with some work, it may become some sort of personal HUD to check how you're doing in different situations (times your shield dropped to 0, time spent under attack while at 0 shield, what types of bot damaged you most, and so on).

Re: Sniper efficiency measurement

Posted: 23 Nov 2018, 20:11
by ElvenMonk
M4L4 wrote:
ElvenMonk wrote:It doesn't seem to take into account that sniper fires at the beginning of 13th tick rather then at the end of 12th.


yes, i wasn't 100% sure about exact timing (and counter reset order), any idea on how to fix it?

Oh, it actually works properly. My bad, I expected to see 13 somewhere, without closer look at the AI.

Re: Sniper efficiency measurement

Posted: 23 Nov 2018, 20:17
by M4L4
ElvenMonk wrote:Oh, it actually works properly. My bad, I expected to see 13 somewhere, without closer look at the AI.


good to know, there should never be a 13, nor a 0 after a target switch, the counter gets resetted and immediately increased to 1

Re: Sniper efficiency measurement

Posted: 26 Nov 2018, 11:19
by M4L4
do you guys have a way to detect target switch without using tags?

also, the condition "if counter3 = 0" can be removed, just use
"if less than 1sec time passed" >> "set counters 3-4-5 = 0"

Re: Sniper efficiency measurement

Posted: 26 Nov 2018, 18:04
by ElvenMonk
M4L4 wrote:do you guys have a way to detect target switch without using tags?

no
M4L4 wrote:also, the condition "if counter3 = 0" can be removed, just use
"if less than 1sec time passed" >> "set counters 3-4-5 = 0"

time passed=0 maybe?

Re: Sniper efficiency measurement

Posted: 26 Nov 2018, 19:00
by M4L4
ElvenMonk wrote:time passed=0 maybe?


yes, it should work aswell, but when i first made it, i just picked up the first setup condition that came through my mind, after all... what the fuck are you shooting at during the first 4 ticks? :D
so i never never thought about it again. there are probably still a couples of tweaks you can make to it.