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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix firelock prediction issues with periodic pulses of closing lights #28227

Merged
merged 2 commits into from
May 24, 2024

Conversation

nikthechampiongr
Copy link
Contributor

@nikthechampiongr nikthechampiongr commented May 23, 2024

fixes #28230

About the PR

This pr fixes firelocks having random pulses of closing lights which were mispredicts. This would randomly start happening and would happen every 3 seconds due to the set cooldown duration.

Technical details

From what I understand the functions existed in order to prevent doors from closing constantly due to atmos alarms going off making it impossible to cross with crowbars. This is rendered redundant by the check in the EmergencyPressureStop() function in the C.S.FirelockSystem which ensures that a firelock will not auto close for at least 2 seconds after being pried. Due to an oversight in #26582, a part of the handling was transferred to shared while some remained in server due to a power check. This caused mispredicts to happen in some cases which would repeat every 3 seconds.

Media

  • I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

N/A
Changelog

馃啈

  • fix: Firelocks will no longer randomly pulse closing lights.

For some reason this function was setting a time for the next state
which was triggering the door system to try to close the firelock.
This does not happen serverside because the function only fires from an
event called clientside apparently.
It appears to be an attempt to stop firelocks from closing instantly
that did not function properly, and I cannot discern any other purpose.
As such I have removed it.
This became redundant with commit 439a87f
@VasilisThePikachu VasilisThePikachu merged commit b2ca9b6 into space-wizards:master May 24, 2024
11 checks passed
@nikthechampiongr nikthechampiongr deleted the firelock-fix branch May 24, 2024 14:47
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.

All firelocks light and sprite flicker
2 participants