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

improve targeting by reworking onImpact for projectiles #8

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

Keridos
Copy link

@Keridos Keridos commented Jan 4, 2025

Previously projectiles could not hit anything if they hit it in the first tick after being spawned.
This was historically put in that they did not collide with the turret block that was shooting them.

I changed it instead to check if the hitBlock is a turret head. If it is (or non-solid) it will skip the impact and the projectile will continue flying.

Tested it, it improves turrets as they can now hit targets that are very close to them. No difference with far away targets.

@serenibyss serenibyss merged commit a8f1200 into GTNewHorizons:master Jan 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants