Skip to content

Force spawn at start of round#608

Merged
AdamTadeusz merged 1 commit intoNeotokyoRebuild:masterfrom
AdamTadeusz:040_forceRespawnAtStartOfRound
Sep 19, 2024
Merged

Force spawn at start of round#608
AdamTadeusz merged 1 commit intoNeotokyoRebuild:masterfrom
AdamTadeusz:040_forceRespawnAtStartOfRound

Conversation

@AdamTadeusz
Copy link
Copy Markdown
Contributor

Description

Use spawn instead of respawn to spawn players at start of a round, omitting the checks whether a player can spawn

Toolchain

  • Windows MSVC VS2022
  • Linux GCC Distro Native [Specify distro + GCC version]
  • Linux GCC 10 Sniper 3.0

Linked Issues

@nullsystem nullsystem requested a review from a team September 18, 2024 17:27
@nullsystem nullsystem added the Release priority Pull request is a priority for the next release label Sep 18, 2024
@nullsystem nullsystem added this to the v8.1-prealpha milestone Sep 18, 2024
Copy link
Copy Markdown
Member

@Rainyan Rainyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work. Tested with:

  • Spawn a bot
  • Wait for a new round to start
  • Use host_timescale 5 to get well into the round, past whatever strange respawning mechanic(?) is going on initially
  • Revert back to host_timescale 1
  • Shoot the bot to win the round
  • Wait for approximately mp_chattime-1 seconds
  • Press kill bind to suicide at the last moment

With this change, you can still spawn into the next round, whereas before you'd sit out the next round.

We should also figure out how to prevent the player from materializing before they've chosen their loadout, but that's kind of orthogonal to this PR.

@Rainyan Rainyan requested a review from a team September 18, 2024 19:05
@AdamTadeusz AdamTadeusz merged commit e0b4914 into NeotokyoRebuild:master Sep 19, 2024
@AdamTadeusz AdamTadeusz deleted the 040_forceRespawnAtStartOfRound branch January 24, 2025 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Release priority Pull request is a priority for the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dying right before warmup/round ends and a new round begins results the player being dead for the next round

4 participants