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

Players can be spawned while on the UNASSIGNED team #929

Open
Nord1cWarr1or opened this issue Jan 20, 2024 · 1 comment
Open

Players can be spawned while on the UNASSIGNED team #929

Nord1cWarr1or opened this issue Jan 20, 2024 · 1 comment

Comments

@Nord1cWarr1or
Copy link
Contributor

Nord1cWarr1or commented Jan 20, 2024

Players can be spawned while on the UNASSIGNED team, if there are less spawns on the map than slots on the server, and all slots in teams on the server are filled, and mp_auto_join_team and mp_forcerespawn CVars are active.

bug.mp4

An easy way to reproduce this bug with bots:

  1. Start a server with 21 or more slots, with the startup parameter -bots
  2. Change the map to the original de_nuke or cs_militia, or any other map with only 20 spawns.
  3. Set the CVar values as follows:
bot_quota 32; bot_stop 1; bot_join_after_player 0; bot_auto_vacate 0; mp_forcerespawn 1; mp_auto_join_team 1; humans_join_team any; mp_kill_filled_spawn 0; sv_restart 1
  1. Wait for the bots to take their places
  2. Connect to the server
  3. You will spawn for team 0 (TEAM_UNASSIGNED).
@justgo97
Copy link
Contributor

justgo97 commented Jan 20, 2024

The bug might be related to this line:

if (GetObserverMode() != OBS_NONE && (m_iTeam == UNASSIGNED || m_iTeam == SPECTATOR))

probably should become:

if (m_iTeam == UNASSIGNED || m_iTeam == SPECTATOR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants