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

IDDQD: fix reviving if god mode was already enabled #1106

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

tomas7770
Copy link

Currently, if the player enables god mode through the IDDQD cheat, dies, and then enters the cheat again to respawn, they'll respawn in a "zombie" state (which I assume is not intentional), similar to this, because health is not reset from 0. This is unlikely to happen because the player shouldn't die in god mode, but it's possible in some cases, like telefragging.

This PR forces the player's health to that of god mode when respawning through IDDQD, regardless of whether god mode is being enabled or disabled, which doesn't change anything for the former case, and fixes respawning for the latter.

Copy link
Owner

@fabiangreffrath fabiangreffrath left a comment

Choose a reason for hiding this comment

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

Looks reasonable, thank you!

@fabiangreffrath fabiangreffrath merged commit 89c4b8d into fabiangreffrath:master Oct 27, 2023
6 checks passed
@SoDOOManiac
Copy link
Collaborator

IIRC, aside from telefragging, player can die in god mode in Terry WADs that became a meme in the community.

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.

None yet

3 participants