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

add set_room_override #522

Merged
merged 5 commits into from
Nov 28, 2024
Merged

add set_room_override #522

merged 5 commits into from
Nov 28, 2024

Conversation

Blockyyy
Copy link
Contributor

lets you override the displayed room, do set_room_override(-1) in order to get back to normal

sm64coopdx.v1.0.4.2024-11-25.21-01-08.mp4

gRoomOverride = room;
}

s16 get_room_at_pos(f32 x, f32 y, f32 z) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this function seems to only be useful in very specific situations. it would probably be more useful if you could enable gFindFloorIncludeSurfaceIntangible for your own ray casts, since you can already just get the room parameter from the surface you find.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can't raycasts already get intangible surface types?, i'll probably just remove this function

Copy link
Collaborator

Choose a reason for hiding this comment

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

having gFindFloorIncludeSurfaceIntangible true does change the behavior of find_floor but its fine if you just remove the function too.

@Isaac0-dev Isaac0-dev changed the title add set_room_override & get_room_at_pos add set_room_override Nov 28, 2024
@Isaac0-dev Isaac0-dev merged commit fa2ec09 into coop-deluxe:dev Nov 28, 2024
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