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

Weapons can be held past solid terrain if the middle of the gun ends up being held there #54

Open
pawnishoovy opened this issue Feb 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pawnishoovy
Copy link
Contributor

pawnishoovy commented Feb 5, 2024

Describe the bug
The accounting for terrain clipping function only seems to actually work as intended if it's dealing with a gun that can't be held so far forward that the middle of the gun ends up completely past solid terrain. This is very easy to see with the Stinger held in the BG arm, because it's a large weapon held out very far.

To Reproduce

  1. Dual wield two browncoat Stingers
  2. Push up against some thin terrain, like a closed door or a lone standing metal ladder
  3. Observe as the BG Stinger is held completely past the terrain and you can fire through to the other side

Expected behavior
Accounting for terrain clipping should always work even when the device is held very far forward.

Additional context
The function will probably have to be rewritten a little to cast a ray from the middle of the Arm (or even the AHuman) itself so it can't accidentally miss terrain.

@pawnishoovy pawnishoovy added the bug Something isn't working label Feb 5, 2024
@pawnishoovy pawnishoovy changed the title Dual wielding weapons stops interaction with terrain and allows guns to shoot through stuff Weapons can be held past solid terrain if the middle of the gun ends up being held there Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant