Cataclysm-DDA
Cataclysm-DDA copied to clipboard
Hallucination monsters don't make sound when moving
Summary
Bugfixes "Several hallucinations tweaks"
Purpose of change
- Closes #59791.
Describe the solution
- If monster is a hallu, bail out from
monster::footsteps
early. - Prevent NPCs from producing visual and auditory hallucinations.
Describe alternatives you've considered
Rework sound producing so only the the player character would hear the monster movement sound. But this is way more difficult than simply forbidding producing movement sounds for hallus.
Testing
- Debug-spawned hallucination giant bee, which normally generates
BZZZZZZZZZZZZZZ
"footstep" sound. Waited several turns, no movement sound was produced by the bee. - Debug-spawned NPC in dark and scary location, gave him nyctophobia trait. Waited lots of turns, no hallucinations spawned.
Additional context
None.
i don't think this will be a complete mitigation of the linked issue; hallucinatory vocalizations are also heard by others (as i note in my comment on that issue)
I forbade NPCs from spawning auditory and visual hallucinations, so now this PR should resolve that issue.
that does sound more comprehensive.