Skip to content

Players switching to spectator and back cannot spawn in current round #1223

@Rainyan

Description

@Rainyan

Build Info

23343df

Description

Players who switch to spectator, and then switch back to a playing team, cannot spawn for the current round.

To Reproduce

  • Create a new local listen server with map ntre_oilstain_ctg console command
  • Spawn bots on both teams by adjusting neo_bot_quota to be >1, and/or by using bot_add (requires sv_cheats 1)
  • Join Jinrai or NSF
  • Wait for the round to begin
  • Spawn in the freezetime
  • Press F1 (teammenu) and switch your team to spectator before freezetime ends
  • Press F1 (teammenu) and switch your team back to Jinrai or NSF before freezetime ends

Expected behavior

You are able to spawn in the freezetime and be a part of the round as a living player, just like a player who freshly joined the server would be, or a player who decided to join the match from spectator would be.

Additionally, it might be a good idea to remember & reserve the spawn position for that player for that round, so that players can't abuse team swap in hopes of a better spawn. At least until all other available spawn locations have been assigned. But this may be out of scope for this issue.

Actual behavior

You are left spectating the living players during the freezetime, and cannot spawn for the current round.

Operating System

  • Windows
  • Linux

Version/Distro

11

Machine's CPU

No response

Machine's GPU

No response

GPU's driver

No response

Build's compiler

No response

Additional context and Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug ReportBug Reports made through the "Report Issue" interface in GitHub.

    Type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions