-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add button to allow players to change teams #872
Conversation
@F1F7Y This one is specially for you due to your Server Utilities :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you made the convar replicated, you could enable and disable the UI button based on if the server has the convar enabled. I think we should try to avoid using SendHudMessage for most things if possible
Alright, convar replicated and button visibility bound to it, now in regards to SendHudMessage, those i'll have to probably localize them eventually because would be quite frustrating to players trying to click the button and no info will ever pop in for those two specific cases they could appear. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Train WiFi review
Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good as far as I'm concerned
I agree information should be transmitted to player somehow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hate the thread thing but if it works it works
Might I suggest that this convar be set to zero automatically in some cases? This would mess with infection and the hidden pretty badly. |
If the server is fixed at those gamemodes then all you need to do is just add the convar to the launch arguments, disabling it, the other method is make the gamemode initialization function disable it as well. |
True, some people might not be running dedicated servers though so it might be worthwhile adding it to those functions like you said. |
Alright i'll probably make a proper toggle function instead of fiddling with the convar for gamemodes that does custom team switching. |
@Bobbyperson See if this is okay for you now. |
Looks great, only other changes I might suggest is to also disable it on competitive gamemodes like Fastball and Live fire, since changing teams in those gamemodes could cause big problems. It might also be worth adding a convar like |
@Zanieon what's blocking this PR atm? Just the changes @Bobbyperson suggested? |
Nothing really, just pondered a bit if i should implement Bobbyperson suggestion in regards to balance of teams or not, but at that point, trolls should be punishable with either a kick or warn for doing such thing, the intention of the button is not to handle all cases of all types of players. Fine for me to merge as is, if these cases of people joining one team way too much then it might be worth doing another PR specifically for said case. |
AFAIK, most Northstar servers do not have active moderators. In my opinion, if we add a feature like this we should make it as troll proof as possible as to not add an extra burden for server owners/moderators to manage. If you don't wanna do it I can make a PR for this later after merge. |
I'd prefer to see how this will test itself out first without it, so far all servers that allows team switching with FSU never had much issues with that, this button will also probably not bypass the decision made by the Better Team Balance mod (which is another thing that should eventually be integrated into northstar as an option). |
Fair point, sounds good. |
Aight, I'll stick it in the next minor release together with a bunch of other features soon™ o7 |
This a feature not related to vanilla behavior but rather QoL in regards to the very nature of the Northstar servers, as the only way of changing teams is using mods that gives these functionalities to the server, when it actually should be bundled in Northstar itself already, imo.
ns_allow_team_change