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

Added CollidedWith virtual for Actors #2301

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

Boondorl
Copy link
Contributor

Guarantees a collision happened unlike CanCollideWith. Called in P_TryMove and P_CheckOnmobj so it only calls when an actual movement was attempted and not just a potential positional check. Also not called while the player is predicting to avoid having to manage it on the ZScript side. As a special note, this function is intentionally called before the collider is repositioned after a failed movement. This is so modders can get the exact position of the collision.

Guarantees a collision happened unlike CanCollideWith. Called in TryMove so it only calls when an actual movement was attempted and not just a potential positional check.
@MajorCooke
Copy link
Contributor

Very much would be appreciated. Just a heads up though, it's failing to build on Linux CI.

@madame-rachelle
Copy link
Collaborator

Just a heads up though, it's failing to build on Linux CI.

This is likely a side effect of basing the work on a time when the filesystem was still being refactored. Rebasing it on current master (or waiting until the FS work is completely done to do that) might be enough to fix this.

@madame-rachelle madame-rachelle merged commit cf7654b into ZDoom:master Jan 4, 2024
5 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants