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

Reset recoil when autotargeting without a previous target #38838

Merged

Conversation

kevingranade
Copy link
Member

Summary

SUMMARY: None

Purpose of change

Fixes #27322
Recoil would end up in an inconsistent state after aiming and firing at an empty square followed by auto-aiming at a nearby target.
Would probably also trigger on switching targets after the killing shot at a first target.

Describe the solution

When switching aim point to an automatically selected target without having a previous target, reset recoil to full.

Testing

As outlined in #27322, aim at the ground and fire when a NPC or monster is nearby. Then Re-enter the aiming menu.
Before: The nearby target would be selected and the aim level would be higher than expected.
After: The nearby target would be selected and the aim level is minimal.

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Ranged Ranged (firearms, bows, crossbows, throwing), balance, tactics labels Mar 17, 2020
@ZhilkinSerg ZhilkinSerg merged commit 82899c5 into CleverRaven:master Mar 17, 2020
@kevingranade kevingranade deleted the autotarget-recoil-reset branch June 28, 2020 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Ranged Ranged (firearms, bows, crossbows, throwing), balance, tactics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Aiming problem with any weapon with friendly npc nearby
2 participants