Skip to content
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

Figure out how to place players onto teams during halftime periods #1

Closed
splewis opened this issue Jan 9, 2016 · 2 comments · Fixed by #736
Closed

Figure out how to place players onto teams during halftime periods #1

splewis opened this issue Jan 9, 2016 · 2 comments · Fixed by #736

Comments

@splewis
Copy link
Owner

splewis commented Jan 9, 2016

This is a relatively serious issue.

The complexity seems to come from the game's auto-swap at halftime. My expectation would be to just place the client onto the current team still (if first half team was ct, then put on ct in halftime), but that doesn't seem to always work.

I suspect clients are marked by the server in the announce_phase_end event or similar at halftime for a pending swap, and only those players get swapped. The netprop m_iPendingTeamNum is not being used for this, so maybe this is wrong.

Right now teamjoin commands are fully disabled during halftime events, so clients must wait for the 1st round freezetime to join.

@fayeinmay
Copy link

This is pretty annoying, indeed. Overtime ignored, you can just get the int value of current round and the value of maxRounds / 2 to determine if it's after halftime and then assign the players accordingly when they rejoin after halftime.

@nickdnk
Copy link
Collaborator

nickdnk commented Dec 31, 2021

@splewis Is this still a problem? I've never experienced this myself, and this issue is obviously quite old.

This was referenced Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants