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

[fixed] Change class death bug #1970

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mugg91
Copy link
Contributor

@mugg91 mugg91 commented Mar 22, 2024

Status

  • READY: this PR is (to the best of your knowledge) ready to be incorporated into the game.

Description

[fixed] Change class death bug

Fixes #1968

When playing online, you could change class by clicking on a button at a respawn point while dying from taking damage.
In TDM, this caused a new blob to be created even though you were already rendered dead and removed from the match.

This PR adds a check to StandardRespawnCommand.as in onRespawnCommand() to see if the caller has tag "dead" and if he does, it doesn't proceed.

After applying this solution, the bug doesn't happen anymore.

Steps to Test or Reproduce

Go to TDM, have the match start.
Be builder and place a ladder above your spawn.
Be low health.
Drop a spike from above you while standing on the ladder and quickly tap the button to change class.

If successful, you will be dead and won't be able to control any character. However, a knight or archer would still spawn and sit idle.
In on RespawnCommand(), if you use print("dead? "+caller.hasTag("dead"));, the server-side console would print dead? true.

After applying this PR, an idle knight or archer won't get spawned.

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.

Class change death bug
1 participant