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.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
SUMMARY: Features "Monsters might bash if a sound interests them"
Purpose of change
Adds to #44673, implementing the alternative
Describe the solution
Monsters lost aggressive interest in sounds in #44673, and the alternative gives a suggestion to make zombie bashing a bit more natural while not creating bash parties. I've somewhat arbitrarily chosen some categories that seem like monsters should be more interested in/aggressive towards, and I also added a random chance that they bash towards (typically) loud sounds.
Examples of sounds that would interest monsters:
Walking
Yelling
Opening/closing doors
Any loud noises typically louder than smashing stuff (though it's rng how loud is loud, could ultra-rarely be 1 volume)
Probably other stuff I'm unaware of
Also, I'm unsure if this is how it worked before, but I think zombies breaking down doors to follow sound previously might've been because they were motivated by their own sound of breaking down the door. If it was like that before, zombies will now give up on getting to the sound depending on how loud the sound was, which is how it was originally intended I believe. Heard a door close? Might break a window and bash a door a few times. Heard a shotgun? The doors are coming down.
If that was already the case then nothing's changed and I'm just noticing stuff.
Describe alternatives you've considered
My method of transferring the
provocative
variable around and into clusters in sounds.cpp might be strange?Also, maybe the categories I've selected need to be adjusted?
Testing
Use debug light step/smell/invisibility/whatever to be basically non-existent
Try to start zombie bash parties in cars
Smash up the inside of a building, depending on how loud a zombie may break in (refrigerators are super loud to break), or they may just gather outside
Yell, zombies should break into the house
Open and close a near-outside door with zombies close, they should try to break in
Shooting a shotgun should make everything ever angry
Walking next to a closed window without debug light step and a zombie nearby may spook you
Additional context
This was made for my personal local branch where I enjoy spooky scary changes that I'm not confident in, but maybe this is good enough for here.