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

Slightly improved AI #965

Merged
merged 6 commits into from
Mar 12, 2025
Merged

Slightly improved AI #965

merged 6 commits into from
Mar 12, 2025

Conversation

Fueredoriku
Copy link
Contributor

@Fueredoriku Fueredoriku commented Mar 12, 2025

  • Made AIs adjust their jumping animations based on the length of the jump
  • Made AIs stop crouching after jumping
  • Made AIs jump slightly up before jumping down to make down jumps a bit less jank
  • Imporved navmesh in the Pit A LOT
  • Add tighter map boundaries for players and AIs in grand canyon
  • Add new loading screen tips and a new crime
  • Fixed Fix AIs having perfect aim with the rubber sniper #867

Also I think the reason AI agents freeze a bit and suddenly moves after jumping might be due to asynchronous update of their paths that happens when SetDestination() is called (Based on some threads I read on the forums like: https://discussions.unity.com/t/many-navmesh-agents-makes-causes-them-to-freeze-creates-delay-with-input/147200). This means the freeze timing become worse on low end machines. An alternative might be to force it to be calculated in the main thread by replacing almost all setDestination() with CalculatePath and caching the path, but that is way too much for me to do in this PR

@Fueredoriku Fueredoriku requested a review from toberge March 12, 2025 02:14
@Fueredoriku Fueredoriku self-assigned this Mar 12, 2025
@Fueredoriku Fueredoriku force-pushed the feature/improved-ai-animations branch from 822b4f8 to f227962 Compare March 12, 2025 15:15
Copy link
Contributor

@toberge toberge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah let's get this in!

@Fueredoriku Fueredoriku force-pushed the feature/improved-ai-animations branch from f227962 to 2709f01 Compare March 12, 2025 23:35
@Fueredoriku Fueredoriku merged commit db17425 into dev Mar 12, 2025
@Fueredoriku Fueredoriku deleted the feature/improved-ai-animations branch March 12, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done 🎉
Development

Successfully merging this pull request may close these issues.

Fix AIs having perfect aim with the rubber sniper
2 participants