mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
[MIRROR] Fixes dog AI lockups when fetching things, adds growling noises for dog attack mode [MDB IGNORE] (#12105)
* Improves dog AI resilience (#65384) About The Pull Request AI dogs currently have a nasty habit of getting stuck when trying to fetch items sometimes, rendering their AI behavior basically dead as they're stuck in a state where they're unable to accept any commands/inputs from their environment. This PR fixes that by adding some more robust checks to make sure a failed fetch attempt doesn't softlock the pups. This PR also adds some growling sounds for dogs in harass mode who are guarding against someone not within biting distance. Why It's Good For The Game Fixes some edge cases where dog AI would stop working entirely. Makes dog AI's in attack mode more conspicuous, and less reliant on text spam to show that. Changelog cl Ryll/Shaps fix: Dog AI's should no longer lock up and become unresponsive after failed fetch attempts soundadd: Dogs in harass mode that are guarding against someone will now make growling sounds /cl * Fixes dog AI lockups when fetching things, adds growling noises for dog attack mode Co-authored-by: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com>
This commit is contained in:
@@ -174,7 +174,7 @@
|
||||
pawn.visible_message(span_notice("[pawn] [blackboard[BB_HOSTILE_ATTACK_WORD]] at [commander]'s command, and [pawn.p_they()] stop[pawn.p_s()] obediently, awaiting further orders."))
|
||||
blackboard[BB_HOSTILE_ORDER_MODE] = HOSTILE_COMMAND_NONE
|
||||
CancelActions()
|
||||
// fetch: whatever the commander points to, try and bring it back
|
||||
// follow: whatever the commander points to, try and bring it back
|
||||
if(COMMAND_FOLLOW)
|
||||
pawn.visible_message(span_notice("[pawn] [blackboard[BB_HOSTILE_ATTACK_WORD]] at [commander]'s command, and [pawn.p_they()] follow[pawn.p_s()] slightly in anticipation."))
|
||||
CancelActions()
|
||||
|
||||
Reference in New Issue
Block a user