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

trigger_camera doesn't restore its control over the player's view #3031

Open
SamVanheer opened this issue Feb 5, 2021 · 0 comments
Open

Comments

@SamVanheer
Copy link

SamVanheer commented Feb 5, 2021

Saving and loading while the player is under the control of a trigger_camera results in the player's view not restoring to the one set by the camera. This breaks any camera-based scripted events set up in custom maps and mods.

This can be fixed by making the player track the view entity being used and restoring it on load.

Here's how i fixed it:
twhl-community/halflife-updated@5fd0acb

Note that this change could break backwards compatibility with older save games. It should definitely be fixed in SDK code, but it should be tested against older save games before applying the fix to official games.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants