Skip to content

ZS: Make sure to check for if the player is AFK...#838

Open
SpicyCombo wants to merge 1 commit intoClassiCube:masterfrom
SpicyCombo:master
Open

ZS: Make sure to check for if the player is AFK...#838
SpicyCombo wants to merge 1 commit intoClassiCube:masterfrom
SpicyCombo:master

Conversation

@SpicyCombo
Copy link

..when considering whether or not they are part of the game.

..when considering whether or not they are part of the game.
@SpicyCombo
Copy link
Author

this time without the change of new line endings

@Goodlyay
Copy link
Collaborator

Goodlyay commented Aug 8, 2025

What happens if there are 3 players in the game map and one of them is afk, then the round starts and the afk player comes back? I'm a little concerned that the game state might become invalid in some way since you can become afk and stop being afk at any time.

For instance, it seems to use your AFK check here

        void ResetPledges() {
            foreach (Player pl in GetPlayers())
            {
                Get(pl).PledgeSurvive = false;
            }
        }

If a player goes afk during a game, will their pledge not get reset correctly?

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.

2 participants

Comments