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

In-view verbs work for varying view ranges #6591

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

Doubleumc
Copy link
Contributor

@Doubleumc Doubleumc commented Jun 28, 2024

About the pull request

Admin "InView" procs now take the user's current view range into account. If you zoom out as a ghost, it will use your current view size as you'd expect.

Where possible, admin and observer procs use a global list check instead of a view check. This prevents an issue where a right-clicked subject moves out of view before you can click on the menu option, which causes the option to fail and fill your command bar with some useless text.

Does not take view offsets into account, e.g. binoculars shifting client.pixel_x & client.pixel_y

Explain why it's good for the game

Procs billed as "in-view" should work based on your current view range. Right-click actions without a specific range cap should work on anything in your view range.

Testing Photographs and Procedure

Each proc continues to work as expected, just with more lenient ranging rules.

Changelog

馃啈
qol: ghost health scan & follow right-click actions work at any range
admin: "InView" procs use your current view range (e.g. ghost zoom)
/:cl:

@github-actions github-actions bot added Quality of Life Make the game harder to play Admin Make things harder for admins labels Jun 28, 2024
@harryob harryob added this pull request to the merge queue Jul 3, 2024
Merged via the queue into cmss13-devs:master with commit 41dcf11 Jul 3, 2024
28 checks passed
cm13-github added a commit that referenced this pull request Jul 3, 2024
@Doubleumc Doubleumc deleted the verb-range-extension branch July 3, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Make things harder for admins Quality of Life Make the game harder to play
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants