13 Aug 14, 09:52PM
(This post was last modified: 13 Aug 14, 10:19PM by morshu9001.)
(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.