-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPCs use their indoor voices when not in danger #72021
Conversation
I mean, i would love this. Something like: "Try to be quiet as much as possible but scream really loud if you in danger and alone(not following player)." |
Exactly why it is going to be done programmatically and not by having the player repeatedly change settings for things the NPCs should be smart enough to handle. |
Can this be done with the player character as well? |
The player does not make verbal sound except when using the As far as I can tell, yelling orders doesn't make any noise either. So there is nothing to be done here, except maybe add noise from talking. |
Is that really the case? Telling followers to guard or follow via the C menu seems to produce sound equal to your usual yelling volume. talking to them does seem to be completely silent on your part though, noise definitely should be added. |
The player talking should definitely make sound. |
We should probably have a be quiet command so they're not screaming during night raids and stuff and alerting everything nearby. Because stealthing with npcs is kinda hard when they're yelling at you that they see a zombie 4 miles down the road. |
ae6dae1
to
bd4f4b8
Compare
Co-authored-by: akrieger <[email protected]>
bd4f4b8
to
e3f4eb0
Compare
Are we sure about that? "Everyone take it easy", Dumbledore said calmly. No, but for real, some chat menu commands are single-digit volume, while others are - maximal? I can't find the consistency. |
You're right, it looks like the player actually shouts for those commands. I didn't find it because it's in npctalk.cpp, the last place I expected to find the player talking. Any problems you find there should be made into a new issue though |
Summary
Balance "NPCs don't scream at loudness 16 when just saying normal stuff, unless they're in danger"
Purpose of change
Mentioned in #71865 (does not close issue)
NPCs yelling like maniacs in the middle of the night because they wanted to step past you. Then yelling like maniacs to apologize to all the people they just woke up. Brilliant.
Describe the solution
Replaced the number
16
withmath!6
if not in dangerCalculate a good volume to use instead of magic numbers, based on whether the player will be able to hear (speak louder if PC is far away)/NPC wants the player to hear. Respects if friends are sleeping (intentionally whispers to avoid waking them up).
Describe alternatives you've considered
Why don't we make a slider for the player to micromanage how loud they want their NPCs to yell? (this is not a serious question)
Testing
Confirmed it compiles and launches only
Additional context
Technically speaking if get_shout_volume() is below 16, they were actually louder when speaking normally during danger 🤔