MantisBT - Zandronum
View Issue Details
0002025Zandronum[All Projects] Bugpublic2014-12-10 09:462016-10-30 20:29
Ch0wW 
 
normalminoralways
newopen 
Any
1.3 
 
0002025: Joining issues during a teamgame
During a teamgame, if someone joins a team, that the map is being changed, and the player is trying to rejoin AGAIN, they'll need to wait for no reason.
You have to do this in LESS than 10 seconds.

1) Go to DooM2 map01, on any team deathmatch gamemode. (any teamgame will work of course)

2a) Exit the map, and let the MAP02 run.
2b) Force change the map with map mapXX

3) Try to join. "You must wait 10 seconds before joining teams again" must appear.
I partially fixed it by adding this:

// Ch0wW: Fix the [you need to wait X seconds] after changemaping AND just the moment you joined.
CLIENT_ResetFloodTimers();

in function void client_DisconnectPlayer( BYTESTREAM_s *pByteStream ) , so that it resets the timers once someone disconnects.

However, after a normal changemap, I haven't yet found a way. Doing this at the end of void G_DoLoadLevel (int position, bool autosave) would have been a good idea, but the values aren't reset, even if it calls the function, for some reasons.
client, doom, player
Issue History
2014-12-10 09:46Ch0wWNew Issue
2016-10-30 20:29Torr SamahoNote Added: 0016125

Notes
(0016125)
Torr Samaho   
2016-10-30 20:29   
Sounds correct for the map change. Please submit a pull request at bitbucket so that I can look at and test the code change.