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

Re-added sector damage for non-players. #2773

Merged

Conversation

inkoalawetrust
Copy link
Contributor

This PR just entirely reimplements #2479. This time with the behavior on 3D floors that use their control sectors' damage fixed to work like it did in 4.12 for both players and non-players. The hurtmonsters UDMF key now also needs to be added to the 3D floor control sector itself instead of the sector the 3D floor is projected on.

The below example map showcases how several types of damaging sectors affect a Cyberdemon (Ground monster) and Cacodemon (Flying monster). There's 2 normal damaging floors, one with SECMF_HARMINAIR. A solid damaging 3D floor, a floating damaging swimmable 3D floor, and a non-solid damaging 3D floor "pool".
Non-player 3D floor damage.zip

Reimplements SECMF_HURTMONSTERS and SECMF_HARMINAIR.
Fixes sector damage to either monsters or players not working on (non-)solid 3D floors.
@madame-rachelle madame-rachelle merged commit 34dc204 into ZDoom:master Oct 20, 2024
9 checks passed
tiltshiftfocus pushed a commit to tiltshiftfocus/gzdoom that referenced this pull request Oct 21, 2024
* Re-add non-player sector damage.

Reimplements SECMF_HURTMONSTERS and SECMF_HARMINAIR.

* Fixed 3D floor handling for sector damage.

Fixes sector damage to either monsters or players not working on (non-)solid 3D floors.
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