"Net caps per hour" statistic needs to be implemented
-
- Posts: 10
- Joined: Mon Jul 01, 2013 7:41 pm
Re: "Net caps per hour" statistic needs to be implemented
Ya, that's a good idea. Implementing the "percent wins" stat would make that easy. At the start of a match, the highest ranked player goes to team 1, next highest to team 2, then just keep alternating all the way down the list.
Re: "Net caps per hour" statistic needs to be implemented
You guys know this is a mod we're taking about? We're technically reinventing the entire game. Lets do this!
[NHOP]Virus
Re: "Net caps per hour" statistic needs to be implemented
Intriguing...
I'm not fond of logging "man hours". That sounds irrelevant and difficult to track.
Here's another theoretical approach...
In function Mission::init(), note each client currently on a team.
In function Server::onClientDisconnect( %cl ) and function processMenuTeams, clear the notation for that client.
In function ObjectiveMission::missionComplete( %nextMission ), check each client for the notation, to see if they have been there the whole map, then increase their team wins stat if their team won, or decrease if their team lost.
This way, they only get credit if they were on the team the whole time... Oh, and clear the notation if they change teams too.
This statistic should be stored with the player's IP address and/or registered account, so the stat persists after disconnecting.
Also, in function Mission::init(), while notating all of the clients currently not observing, sort players by team win/loss ratio, and then assign to teams as Texas_Crash suggested.
Do it in function Mission::init(), not when players initially join a team, because if they join mid game, the teams are probably already lopsided, and they will already be assigned to the team with less players.
I'm not fond of logging "man hours". That sounds irrelevant and difficult to track.
Here's another theoretical approach...
In function Mission::init(), note each client currently on a team.
In function Server::onClientDisconnect( %cl ) and function processMenuTeams, clear the notation for that client.
In function ObjectiveMission::missionComplete( %nextMission ), check each client for the notation, to see if they have been there the whole map, then increase their team wins stat if their team won, or decrease if their team lost.
This way, they only get credit if they were on the team the whole time... Oh, and clear the notation if they change teams too.
This statistic should be stored with the player's IP address and/or registered account, so the stat persists after disconnecting.
Also, in function Mission::init(), while notating all of the clients currently not observing, sort players by team win/loss ratio, and then assign to teams as Texas_Crash suggested.
Do it in function Mission::init(), not when players initially join a team, because if they join mid game, the teams are probably already lopsided, and they will already be assigned to the team with less players.