Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upNPCs: Add 3 new NPC AI rules #29367
Conversation
mlangsdorf
added some commits
Apr 7, 2019
This comment has been minimized.
This comment has been minimized.
|
This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there: https://discourse.cataclysmdda.org/t/followers-and-the-guard-command/19502/15 |
mlangsdorf
force-pushed the
mlangsdorf:npc_new_commands
branch
from
6172c30
to
e02c4d2
Apr 7, 2019
ZhilkinSerg
merged commit e1615c1
into
CleverRaven:master
Apr 8, 2019
mlangsdorf
deleted the
mlangsdorf:npc_new_commands
branch
Apr 8, 2019
This comment has been minimized.
This comment has been minimized.
|
This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there: https://discourse.cataclysmdda.org/t/latest-experimental-features/5582/1106 |
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.
mlangsdorf commentedApr 7, 2019
Summary
SUMMARY: Features "NPCs: Add 3 new NPC AI rules"Purpose of change
As part of #29333, add NPC follower AI rules and TALK_COMMON_ALLY dynamic lines and responses to better control NPCs:
Describe the solution
Add new ally_rules.
When an NPC is told not to open doors, any doors on the g->m are adding to the pathfinding avoid set.
When an NPC is told to hold the line, any open doors or tiles with a movecost that are greater than 2 that are adjacent to to g->u.pos() are added to the pathfinding avoid set.
When an NPC is told not to investigate noises, their investigate radius for noises is set to 0.
Additional context
Part of #29365