Skip to content

Fix sv_neo_ghost_spawn_bias#1687

Open
Rainyan wants to merge 1 commit intoNeotokyoRebuild:masterfrom
Rainyan:bug/ghost-bias
Open

Fix sv_neo_ghost_spawn_bias#1687
Rainyan wants to merge 1 commit intoNeotokyoRebuild:masterfrom
Rainyan:bug/ghost-bias

Conversation

@Rainyan
Copy link
Collaborator

@Rainyan Rainyan commented Feb 14, 2026

Description

Plugin-parity: shuffle ghost spawn list at match start, and then cycle through it in sequence of 2 rounds per spawn.

Toolchain

  • Windows MSVC VS2022

Linked Issues

Plugin-parity: shuffle ghost spawn list at match start, and then cycle
through it in sequence of 2 rounds per spawn.
@Rainyan Rainyan requested a review from a team February 14, 2026 19:22
// Round numbers are one-indexed, so we want to start incrementing on odd rounds 3, 5, 7...
else if (!roundNumberIsEven())
{
m_ghostSpawns_BiasHead = (m_ghostSpawns_BiasHead + 1) % m_ghostSpawns.Count();
Copy link
Contributor

Choose a reason for hiding this comment

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

I realize this is similar to what we were doing before but it made me kinda nervous that it wasn't just (roundNumber / 2) % spawns. Considering pauses or hypothetical features to rewind to a specific round and whatnot.

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

Successfully merging this pull request may close these issues.

Ghost should not spawn at the same spot over multiple rounds when sv_neo_ghost_spawn_bias is enabled

2 participants