fokkonaut / F-DDrace

F-DDrace is a server-side modification of Teeworlds, developed by fokkonaut.
Other
10 stars 11 forks source link

Map change behaviour & designs #271

Closed fokkonaut closed 8 hours ago

fokkonaut commented 3 weeks ago

I dislike the current behaviour of map changes and designs. atm when you change a map, you have to reset sv_default_map_design because otherwise newly joining players cant fully connect, as the other map may not exist with the given design string. Only already connected players will receive a map change without the design attached. The same behaviour will apply when changing the map back, now the default version is sent, even though sv_default_map_design may be set. Newly joined players therefore will get the design again. Also worth mentioning that the account will reset the recently used design on map changes.

For the accounts we could store a comma separated list of mapname_designname format, so the server can match each and only update the correct one. For the map change itself, the server should always send the design if sv_default_map_design is set, also for already connected players, and maybe we can store a similar list to accounts for sv_default_map_design