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
NPC AI + interaction update #13486
NPC AI + interaction update #13486
Conversation
Wow dude thank you so much :) I love npc fixes etc :)
|
So no more killing/driving off NPCs using traps? I hope this is a temporary thing. |
Just pathfinding, they still can be murdered by pushing them into traps and it still won't credit the player for the murder with -100 morale. This was mostly to make them not blunder into open air and pits. |
Interesting. If there was a way to make them ignore undiscovered traps without adding to complexity or lag, though... |
Shouldn't be hard, the method we use with players should scale to NPCs
doing the same thing just fine.
|
Ah. Now if we further made a distinction between "spotted by player" and "spotted by NPC" that would be useful. However, that would add more code to juggle. Simply one list for players and one for NPC would be a step up and not too complex, but giving EVERY NPC their own detection list would get out of hand rapidly. |
No, it would be just fine to give each NPC a separate list, no problem.
|
Hmm. I do wonder how many traps, and how many NPCs, it takes to cause problems using that method. X3 |
IIRC they're stored in unordered lists, so it'll be fine until we run out
of ram.
|
Ah right. And compared to map data and other stats, guess it wouldn't be a substantial addition to the amount of data tracked and saved. |
I <3 this, @Coolthulhu! |
NPC AI + interaction update
Character
and got rid of a page worth of redundant code (per-limb code was literally ctrl+c+v, 4 times)