CTF Scoring
#12
(13 Aug 14, 10:41AM)Marti Wrote: I say if you want it to happen, create the code so devs can check and implement it

Okay, sorry for the misunderstanding. I didn't know they'd do that. So… looking at the code, the server doesn't even have any kind of team data structure, but it just stores all the players' scores and teams. It sends all the players' scores and teams to the clients, who then count the number of flags per team.

This is one way to solve this:
- Add an extra "player" to each team that just represents the overall team score. (in server.cpp)
- Increment that "player"'s score each time a player on the same team scores. So far, easy to do.
- Scoreboard.cpp's teamscore class needs to only look at that one player's score instead of adding the others. Also needs to not show that one player in the score list. Not hard.
- Uhh, I don't know C++ (but learning as I look at it) or how this project works, so there might be other stuff I'm missing. Hopefully not.
- All the third-party clients need to be aware of this.

I'm going for it, but I doubt they'll accept it. EDIT: OK, actually no. There are client types and stuff that I don't want to spend time looking through unless I know they actually want this feature.
Thanks given by:


Messages In This Thread
CTF Scoring - by MorganKell - 12 Aug 14, 01:30AM
RE: CTF Scoring - by ExodusS - 12 Aug 14, 01:48AM
RE: CTF Scoring - by morshu9001 - 12 Aug 14, 10:47PM
RE: CTF Scoring - by Marti - 12 Aug 14, 11:14PM
RE: CTF Scoring - by morshu9001 - 13 Aug 14, 07:16AM
RE: CTF Scoring - by *H1TM4N* - 12 Aug 14, 11:40PM
RE: CTF Scoring - by Marti - 13 Aug 14, 10:41AM
RE: CTF Scoring - by morshu9001 - 13 Aug 14, 09:52PM
RE: CTF Scoring - by stef - 13 Aug 14, 10:55AM
RE: CTF Scoring - by ExodusS - 13 Aug 14, 12:26PM
RE: CTF Scoring - by stef - 13 Aug 14, 04:35PM
RE: CTF Scoring - by +f0r3v3r+ - 13 Aug 14, 08:07PM
RE: CTF Scoring - by MorganKell - 16 Aug 14, 06:24AM
RE: CTF Scoring - by morshu9001 - 18 Aug 14, 07:04AM
RE: CTF Scoring - by PhaNtom - 16 Aug 14, 04:30PM
RE: CTF Scoring - by MorganKell - 16 Aug 14, 04:47PM
RE: CTF Scoring - by ExodusS - 16 Aug 14, 05:14PM