mvdevs / mvsdk

JK2MV - SDK
https://jk2mv.org
GNU General Public License v2.0
16 stars 20 forks source link

ClientBegin/SetTeam spam on Duel Tournament #7

Open DaemonSlayerZero opened 3 years ago

DaemonSlayerZero commented 3 years ago

I found a kind of bug on duel tournament mode, when a map change occurs, and one of the players takes a long time to load it, it causes a spam of the AddTournamentPlayer() function inside the if (level.numPlayingClients <2) condition, in the function that is executed in each frame CheckTournament()... I have tried this with bots and I think it is not good.

Steps to reproduce:

  1. Add two bots
  2. Let one of them to win
  3. When you are ready to play with him, change the map
  4. See console (Image attached)

Apparently, since the bot i was fighting connects faster, the current slot of its opponent (me) is seems to be used, but due the map doesnt load yet for the opponent (me) the game tries to force the other player (already in spectator) to join until the opponent (me) gets the map loaded. I imagine this would happen with real people too, or people which has better load speeds (or already played the loaded map).

image

UNI-GR commented 3 years ago

It does the same with real players too