Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

Hallucination monsters don't make sound when moving

Open Night-Pryanik opened this issue 2 years ago • 3 comments

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.

Night-Pryanik avatar Aug 06 '22 14:08 Night-Pryanik

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)

esotericist avatar Aug 06 '22 20:08 esotericist

I forbade NPCs from spawning auditory and visual hallucinations, so now this PR should resolve that issue.

Night-Pryanik avatar Aug 07 '22 08:08 Night-Pryanik

that does sound more comprehensive.

esotericist avatar Aug 07 '22 18:08 esotericist