Cortex-Command-Community-Project
Cortex-Command-Community-Project copied to clipboard
Weapons can be held past solid terrain if the middle of the gun ends up being held there
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
- Dual wield two browncoat Stingers
- Push up against some thin terrain, like a closed door or a lone standing metal ladder
- 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.