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

Entry Cameras for the Spawn Point Modifier #395

Merged
merged 5 commits into from
Feb 5, 2024
Merged

Conversation

Hoikas
Copy link
Member

@Hoikas Hoikas commented Jan 13, 2024

This simplies the creation of "entry cameras" as seen in Doobes' Ages Veelay and Chiso. In Doobes' Ages, the entry cameras are pushed by entering into a region around the spawn point. When exiting the region, the camera is popped off and the region is disabled. Unfortunately, since this is a general purpose modifier, we cannot simply use that approach. That approach assumes there is a single spawn point for the entire Age. If you were to enter a second spawn point, then walk intgo the other spawn point's entry camera region, it would be spuriously triggered. Therefore, I have written a new xEntryCam.py script for CWE to ensure that all entry cameras are disabled when the local player finishes linking in.

See H-uru/Plasma#1556

This is a 1:1 implementation of how entry cameras are implemented in
Doobes' Ages. The problem with this is that it assumes there is a single
link-in point that we will always link into.
korman/exporter/utils.py Outdated Show resolved Hide resolved
Entry cameras need skinny detector boxes, not cubes. This allows the
region to be exited with basically any movement.
This new python file modifier will disable all entry camera regions when
the local player links in. That will prevent spurious entry cameras
being used if there are multiple spawn points in the Age with entry
cameras.
@Hoikas
Copy link
Member Author

Hoikas commented Feb 5, 2024

xEntryCam.py is now available in the offline KI and Plasma repos, so I'm merging this.

@Hoikas Hoikas merged commit 29b03a5 into H-uru:master Feb 5, 2024
3 checks passed
@Hoikas Hoikas deleted the entry_cam branch February 5, 2024 00:40
@Hoikas Hoikas restored the entry_cam branch June 23, 2024 23:47
Hoikas added a commit that referenced this pull request Jun 23, 2024
... Somehow, this pull request was merged but isn't actually in the
codebase. A force-push gone wrong???
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.

2 participants