FrozenSand / UrbanTerror4

Official bug tracker for the game Urban Terror 4.x - www.urbanterror.info
77 stars 18 forks source link

Inconsistent g_inactivity behavior when current map is changed prematurely #414

Closed schroeder-lvb closed 6 years ago

schroeder-lvb commented 7 years ago

g_inactivity that moves AFK players to spectator exhibits random timing behavior (sometimes "forever") when current map is exited prematurely by the admin, or via /callvote cyclemap. This may be related to year 2014 fix https://github.com/FrozenSand/UrbanTerror4/issues/41

Test Environment:

UrT 4.3.2
g_inactivityaction 1   
g_inactivity 60
g_teamautojoin 0
g_teamforcebalance 1
g_maintainteam 1
set  g_allowvote  "536870927" 
Tested under CTF and TDM
Use standard maps or 3rd party maps already downloaded.

Test Sequence:

Connect to your test server
Join a team 
/callvote cyclemap
Observe map change and auto join to the same team - don't move your character and wait
Watch the clock and observe random inactivity time to move your character to spectator

This issue is very problematic for servers that allow cyclemap voting. Since the failure seems to be persistent, over time the server accumulates significant number of AFK players stuck in spawn. The condition clears when a player disconnects and reconnects back into the server.

Barbatos commented 6 years ago

Fixed in 4.3.3, thanks!