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

Fixes bugs with designator usage #4693

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

fira
Copy link
Member

@fira fira commented Oct 15, 2023

About the pull request

The Laser Designator is a JTACer's workhorse and it's CLUNKY AS HELL.

This fixes two main bugs:

  • The interactee is not properly cleared when using the designator (or any zoomed item), causing it to be unset instead of set the next time you use it. This means if you look up then back down your designator, you can't laze.

  • The interaction system wasn't made with movement in mind. It is a problem because zoom system allows movement, and designators are where the two meet. Now, they can explicitely keep interaction despite movement.

Explain why it's good for the game

QoL that should have been done 6 years ago, give or take

Because Zooming interactions are an awful mess, i'm flagging this for Testmerge where it'll inevitably break down

Testing Photographs and Procedure

I take designator, i look, i try to laze. I put them down, move, do it again. And again. Several combinations of actions.

The unzoom logic is blatantly busted and out of scope of the PR.

Changelog

🆑
fix: Fixed Rangefinders/Designators preventing you from lazing if you looked up/down them without moving.
fix: Fixed Rangefinders/Designators forcing you to look up/down again if you had moved while using them.
/:cl:

@github-actions github-actions bot added the Fix Fix one bug, make ten more label Oct 15, 2023
@fira fira closed this Oct 15, 2023
@fira fira changed the title Fixes a designator bug when reusing it without moving Fixes bugs with designator usage Oct 15, 2023
@fira fira added the Testmerge Candidate we'll test this while you're asleep and the server has 10 players label Oct 15, 2023
@fira fira reopened this Oct 15, 2023
@harryob harryob added this pull request to the merge queue Oct 20, 2023
Merged via the queue into cmss13-devs:master with commit 9d69f3a Oct 20, 2023
29 of 48 checks passed
cm13-github added a commit that referenced this pull request Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Fix one bug, make ten more Testmerge Candidate we'll test this while you're asleep and the server has 10 players
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants