Hi,
I'm working on implementing matchmaking features for Zandronum+Doomseeker and as part of it I'm developing a player rating system.
For the rating system I need to catch the moment when a duel/deathmatch match is finished and extract final score for that match. A match considered finished when a limit is hit or number of currently joined players is not enough anymore.
I'm not sure which methods I need to change, so I need help. My current work in progress for duels is here, check src/g_game.cpp file - https://github.com/TarCV/zandronum/comp ... bda411c18d
It would be really cool if it's not needed to change different code for each gamemode, but may be I ask too much
PS: I'm open for advices on implementing server-side demos in my other topic.
Getting final score for a match
Moderator: Developers
- NHG(N_HuyGamingVN)
- New User
- Posts: 17
- Joined: Sat Jul 14, 2018 5:55 am
- Clan: NewClanZ
- Clan Tag: NewClanZS
Re: Getting final score for a match
So what the multiplayer you're doing?
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
Re: Getting final score for a match
Sounds interesting.
Unfortunately, the handling of the different limits is not centralized. The fraglimit is handled in AActor::Die in p_interaction.cpp. Search for "// [RH] Implement fraglimit" to find the place.
To find more places where limits are handled search for "GAME_SetEndLevelDelay". If you have more questions, just let me know.