get5 icon indicating copy to clipboard operation
get5 copied to clipboard

Score Stats Per Half

Open bgilbert6 opened this issue 4 years ago • 3 comments

I noticed the end game stats CFG doesn't include any per half information. How hard would this be to add? Such as "team1" { "firsthalf" "t" "firsthalfscore "8" }

"team2" { "firsthalf" "ct" "firsthalfscore "7" }

Thoughts?

bgilbert6 avatar May 04 '20 14:05 bgilbert6

I haven't tried writing in SourcePawn so I don't know how hard it would be to implement, but half time scores are already stored in backups if you have them enabled. Though I would think that it would be possible to fetch them through the plugin, or simply store the score when round 16 begins.

VictorABoye avatar May 09 '20 16:05 VictorABoye

I actually have it about 90% done since Get5 already had a "halftime" hook. Not sure if they want me to pull request.

Although overall I'm not sure I'll use it since I'd rather have per round info for all players stats which is much more complicated.

bgilbert6 avatar May 10 '20 17:05 bgilbert6

It'd be easy to add additional fields under the 'team' level of stats: https://github.com/splewis/get5/blob/master/scripting/include/get5.inc#L166. They're set here: https://github.com/splewis/get5/blob/master/scripting/get5/stats.sp#L80-L86. PRs welcome.

splewis avatar May 17 '20 01:05 splewis