MantisBT - Zandronum
View Issue Details
0000165Zandronum[All Projects] Bugpublic2010-11-03 02:232018-09-30 22:33
unknownna 
 
normalminoralways
closedfixed 
98d 
 
0000165: The "team" command isn't disabled if "sv_noteamselect" is 1
You can still select which team you wish to join if sv_noteamselect is 1.
1. skulltag.exe -host +teamplay 1 +sv_noteamselect 1
2. Connect a client to the server.
3. "team blue" in the console.
No tags attached.
Issue History
2010-11-03 02:23unknownnaNew Issue
2010-11-03 02:34unknownnaNote Added: 0000536
2010-11-03 02:36unknownnaNote Edited: 0000536bug_revision_view_page.php?rev_id=273
2012-04-20 08:24unknownnaNote Deleted: 0000536
2012-04-20 08:37unknownnaSeveritymajor => minor
2012-04-20 08:37unknownnaReproducibilityN/A => always
2012-04-20 08:37unknownnaStatusnew => confirmed
2012-04-20 08:37unknownnaCategorySuggestion => Bugs
2012-04-20 08:37unknownnaProduct Version => 98d
2012-04-20 08:37unknownnaSummarydisable "team" command if "sv_noteamselect" is set to true || make "join" print "<name> joined the <team> team." in team modes => The "team" command isn't disabled if "sv_noteamselect" is 1
2012-04-20 08:37unknownnaDescription Updatedbug_revision_view_page.php?rev_id=1781#r1781
2012-04-20 08:37unknownnaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1783#r1783
2012-04-20 08:37unknownnaAdditional Information Updatedbug_revision_view_page.php?rev_id=1785#r1785
2012-04-29 02:03TIHanAssigned To => TIHan
2012-04-29 02:03TIHanStatusconfirmed => assigned
2012-04-29 19:10TIHanNote Added: 0003494
2012-04-29 19:10TIHanStatusassigned => needs review
2012-04-30 00:01Torr SamahoNote Added: 0003498
2012-04-30 00:02Torr SamahoStatusneeds review => feedback
2012-04-30 00:02Torr SamahoStatusfeedback => assigned
2012-05-01 10:12unknownnaNote Added: 0003526
2012-05-01 10:14unknownnaNote Edited: 0003526bug_revision_view_page.php?bugnote_id=3526#r1907
2012-05-01 13:38TIHanNote Added: 0003539
2012-05-01 15:00unknownnaNote Added: 0003541
2012-05-01 15:04unknownnaNote Edited: 0003541bug_revision_view_page.php?bugnote_id=3541#r1916
2012-05-01 15:48TIHanNote Added: 0003542
2012-05-02 09:33unknownnaNote Added: 0003557
2012-05-02 14:21TIHanNote Added: 0003558
2012-05-02 16:54unknownnaNote Added: 0003559
2012-05-02 16:55unknownnaNote Edited: 0003559bug_revision_view_page.php?bugnote_id=3559#r1924
2012-05-02 17:22TIHanNote Added: 0003560
2012-06-09 13:22Torr SamahoCategoryGeneral => Bug
2017-05-20 02:27Ru5tK1ngAssigned ToTIHan =>
2017-05-20 02:27Ru5tK1ngStatusassigned => resolved
2017-05-20 02:27Ru5tK1ngResolutionopen => fixed
2018-09-30 22:33Blzut3Statusresolved => closed

Notes
(0003494)
TIHan   
2012-04-29 19:10   
Fixed.
'https://bitbucket.org/TIHan/tst/changeset/980084fd8a1f [^]'
(0003498)
Torr Samaho   
2012-04-30 00:01   
Patch added.
(0003526)
unknownna   
2012-05-01 10:12   
(edited on: 2012-05-01 10:14)
It seems to have fixed the issue, but the "changeteam" message for spectators is now changed. It used to be "You can only toggle your team if you are on a team.". Now it is "You are not allowed to choose your team!".

(0003539)
TIHan   
2012-05-01 13:38   
> Now it is "You are not allowed to choose your team!".

Anything wrong with that? The purpose of the flag itself is to not allow the spectator to choose his/her team.
(0003541)
unknownna   
2012-05-01 15:00   
(edited on: 2012-05-01 15:04)
Quote from Torr Samaho
Quote from unknownna
Quote from Torr Samaho
Quote from unknownna
Quote from Torr Samaho
Quote from unknownna
but I'm not put in the queue with the changeteam command

"changeteam teamname" work fine for me. changeteam without argument is supposed to put you on the next team, i.e. if you are on team one you are put on team two and so forth. In particular, it always puts you on the other team, if there are only two teams.

I see. I only used "changeteam".

If you are not on a team, there is no "next" or "other" team, so the command simply does nothing in this case. If you think that this behavior is unexpected, I can add a message that tells the spectator that it can't toggle its team without being on a team.

That'd be nice.

Done.


(0003542)
TIHan   
2012-05-01 15:48   
The purpose of sv_noteamselect as I said before was to not allow the spectator to choose his/her team. I don't see how this is related to toggling your team.
(0003557)
unknownna   
2012-05-02 09:33   
We need 2 messages for spectators when they use the changeteam command, one when using "changeteam teamname" and one when using "changeteam" without any arguments.

The new message, i.e., "You are not allowed to choose your team!", should be displayed when using "changeteam teamname".
The old 98e message, i.e., You can only toggle your team if you are on a team.", should be displayed when using "changeteam".
(0003558)
TIHan   
2012-05-02 14:21   
You should get "You can only toggle your team if you are on a team.", should be displayed when using "changeteam" if you have sv_noteamselect set to 0. IMO, I don't see a problem with displaying "You are not allowed to choose your team!" message to appear instead when using sv_noteamselect to set 1.
(0003559)
unknownna   
2012-05-02 16:54   
(edited on: 2012-05-02 16:55)
I think it should work like this when you're a spectator:

sv_noteamselect 0

changeteam = You can only toggle your team if you are on a team.
changeteam teamname = Playername joined the teamname team.
team = Playername joined the teamname team.

sv_noteamselect 1

changeteam = You can only toggle your team if you are on a team.
changeteam teamname = You are not allowed to change/choose your team!
team = You are not allowed to choose your team!

What do you think, Torr?

(0003560)
TIHan   
2012-05-02 17:22   
I see your point, but TBH this would require some work due to the logic behind these messages. In the end, I don't see us getting any benefit out of it other than more work. The functionality would still be the same, and the message is fine anyway.