Custom logics - collision properties and trooper alert sounds#585
Merged
luciusDXL merged 4 commits intoluciusDXL:masterfrom Jan 25, 2026
Merged
Custom logics - collision properties and trooper alert sounds#585luciusDXL merged 4 commits intoluciusDXL:masterfrom
luciusDXL merged 4 commits intoluciusDXL:masterfrom
Conversation
- allow usage of the officer and trooper alert sounds
stepUpHeight (formerly botOffset) stepDownHeight (formerly yPos) Rename ACTORCOL_BIT2 to ACTORCOL_SLIDE_RESPONSE
luciusDXL
reviewed
Jan 25, 2026
| ACTORCOL_ALL = ACTORCOL_NO_Y_MOVE | ACTORCOL_GRAVITY | ACTORCOL_BIT2 | ||
| ACTORCOL_NO_Y_MOVE = FLAG_BIT(0), // When _not_ set, an actor can move vertically. Set for non-flying enemies. | ||
| ACTORCOL_GRAVITY = FLAG_BIT(1), | ||
| ACTORCOL_SLIDE_RESPONSE = FLAG_BIT(2), // Actor will "slide" along a wall that they collide with. This is generally set for flying enemies and bosses. |
Owner
There was a problem hiding this comment.
Nice, I never got around to naming all of the flags properly.
luciusDXL
reviewed
Jan 25, 2026
| fixed16_16 botOffset; | ||
| fixed16_16 yPos; | ||
| fixed16_16 height; | ||
| fixed16_16 stepUpHeight; // entity will be able to "climb" up this height (same as player's stepHeight) |
luciusDXL
approved these changes
Jan 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I worked out what is going on in the actor collision code. I've renamed members in the
CollisionInfostruct that looked like they still had provisional namesbotOffset --> stepUpHeight (max step height that can be climbed up by the actor)
yPos --> stepDownHeight (max step height that can be climbed down by the actor)
These have been made moddable.
I worked out that bit 2 of ActorCollisionFlags causes actors to slide along a wall that they collide with, so have named it and also made it moddable.
Also made it possible to set mod logics to use the trooper alert sounds.