rtcwmp-com / rtcwPro

RtcwPro - Competition Mod for Return to Castle Wolfenstein
http://rtcwpro.com
GNU General Public License v3.0
26 stars 6 forks source link

#380 harden the reset triggers #383

Closed krazykaze81 closed 2 years ago

krazykaze81 commented 2 years ago

Keep the stats in sync with all players - do not use sess.rounds for stopwatch

donkz commented 2 years ago

What if some people have 1 round and some 2 - that means stats will reset 100% of the time, which i believe more and more is the exact issue

g_gametype.integer == GT_WOLF_STOPWATCH && level.clients[level.sortedClients[i]].sess.rounds >= 2

rtcw-nihi commented 2 years ago

keep the addition ((g_gametype.integer == GT_WOLF_STOPWATCH && g_currentRound.integer == 0) but for non-stopwatch we keep the original ( g_gametype.integer != GT_WOLF_STOPWATCH && level.clients[level.sortedClients[i]].sess.rounds >= 1 ) ) ) and the for loop

rtcw-nihi commented 2 years ago

i.e. for ( i = 0; !level.fResetStats && i < level.numConnectedClients; i++ ) { if ( ( g_gamestate.integer == GS_WARMUP_COUNTDOWN && ( (g_gametype.integer == GT_WOLF_STOPWATCH && g_currentRound.integer == 0) || ( g_gametype.integer != GT_WOLF_STOPWATCH && level.clients[level.sortedClients[i]].sess.rounds >= 1 ) ) ) ) { level.fResetStats = qtrue; } } // End

krazykaze81 commented 2 years ago

Made some changes for your review @rtcw-nihi