Fix projectiles stuck to geometry#1758
Merged
Rainyan merged 8 commits intoNeotokyoRebuild:masterfrom Mar 1, 2026
Merged
Conversation
Add an intermediate class for combining NEO projectile stuff into one implementation, since we are repeating the code a lot. For now, just refactoring the parts relevant to this PR.
AdamTadeusz
approved these changes
Mar 1, 2026
DESTROYGIRL
approved these changes
Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Projectiles are created in the world 16 units (player hull horizontal radius) in front of the camera. This resulted in the bug where if close to a wall, the projectile could be created inside it, because it didn't account for the collider size of the projectile itself. This problem was present for all of our projectiles (nades, smokes, dets).
This PR adds a trace hull check to make sure the projectile fits, and when not, move the spawn position closer to the camera.
There's also a new
CNEOBaseProjectile : public CNEOBaseCombatWeaponclass to avoid projectile-related code repetition. Currently I've only moved parts related to this PR, but there's more that could be refactored later.Simple way to test this is throwing nades while touching and looking directly at a wall.
Toolchain
Linked Issues