Project Zomboid

Project Zomboid

Shared Death Sound
댓글 61
Yummy  [작성자] 2025년 4월 11일 오전 3시 30분 
I'll look into it a bit later, thanks for the information
marshmallow justice 2025년 4월 2일 오전 1시 22분 
https://www.reddit.com/r/projectzomboid/comments/rxcp8j/i_hear_gunfire_sound_radius_has_been_reduced_but/?sort=new this is the best example for it

I posted it on the PZ discord support since it's 3 years ago and still happening but the guy Beard there said it's probably hard coded into the game and B42 might address it.

it's funny because npc gunshots from the Bandits mod will play from a significantly farther distance away than player to player gunshot radius in MP. Which gives me hope that it IS actually addressable.. just nobodys done it yet... The most is the removal of the zombie audible range to gunshot nerf that they did in MP where gunshot sound range is nerfed further than single player. But that's a separate issue
Yummy  [작성자] 2025년 3월 28일 오전 11시 52분 
Maybe. To answer your question, a more detailed analysis is required.
marshmallow justice 2025년 3월 28일 오전 4시 07분 
Is it at all possible to make a fix for multiplayer player gunshots not being audible beyond like 10-15 tiles? I don't know when exactly it happened, probably the same time they nerfed mp gunshot radius, but it seems like there's no mod on the workshop to address this. I don't even know if B42 will fix it when their multiplayer comes out, it seems like such an odd yet intentional decision from the devs.
Sayokhan 2024년 11월 20일 오전 9시 57분 
a demonstration ?
Luke 2024년 11월 2일 오전 1시 27분 
Oh you mean as opposed to hosting the server on the same computer that's connecting to the game? Yeah I could try that. Next time I get on a PZ kick I'll give it a shot and report back.
Yummy  [작성자] 2024년 10월 30일 오후 11시 26분 
@Luke Try testing this mod on a dedicated server with the same mods. If everything works correctly, then the problem is most likely in how the server handles sound.
Yummy  [작성자] 2024년 10월 30일 오후 11시 23분 
@Ashie Ajin дело ваше
Ashie. 2024년 10월 30일 오후 11시 10분 
намного проще просто не включать этот мод в коллекцию, спасибо)
Luke 2024년 10월 30일 오후 11시 09분 
1/2

Your previous response:

"@Luke Thanks for your feedback and for your interest in my mod. I want to clarify that the mod's code specifically targets zombie death sounds and uses the game's vanilla methods to play these sounds. The mod does not alter other sounds (like car doors or jump scares) and does not affect their audibility or volume.

All volume and sound range settings for zombie deaths are automatically handled by the game, and the mod simply adds a call to play the standard zombie death sounds. Therefore, if there are issues with other sounds in the game, it is likely due to the server settings or the others mod's mechanics, not this mod.

If you have any more questions or suggestions, I'd be happy to look into them. Thanks for your understanding!"
Luke 2024년 10월 30일 오후 11시 09분 
2/2

Hey man, thanks for the response. My server settings are basically vanilla, though I do have some mods installed:

AutoHide Hotbar
Autotsar Trailers v.1.40
Bedford Falls
CDC Rapid Response
CDC Rapid Response Settings - Hardcore
Cat's Reading Mod
Common Sense
Condition On Dash
Filibuster Rhymes' Used Cars Names - Lore Friendly
Filibuster Rhymes' Used Cars!
Foraging screen Illustrations
Long-standing Metal Constructions
RV Interior (v1.4.14)
RV Interior - Vanilla Addon
Rain Wash
Raven Creek
Smarter Storage
True Music ADdon: Tales of Horror Vol.2: The Twilight Zone - Compressed
True Music_v.2.141/2

Do you know of any of these that might cause conflicts with your mod?
Yummy  [작성자] 2024년 10월 30일 오후 11시 01분 
Значит проверяйте на выделенном сервере или новом сервере только с этим модом.
Ashie. 2024년 10월 30일 오후 10시 58분 
в случае с сервером - как раз удалить.
Yummy  [작성자] 2024년 10월 30일 오후 10시 58분 
@ベル спасибо за комментарий
Yummy  [작성자] 2024년 10월 30일 오후 10시 57분 
@Ashie Ajin "отключить" и "удалить" разные слова и имеют разное значение
bell 2024년 10월 30일 오후 6시 01분 
спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо!
Ashie. 2024년 10월 28일 오후 10시 46분 
а, ну проще этот мод удалить, чем серверную коллекцию удалять. спасибо
Yummy  [작성자] 2024년 10월 28일 오후 10시 43분 
Все
Ashie. 2024년 10월 28일 오후 10시 41분 
а какие, к примеру?
Yummy  [작성자] 2024년 10월 28일 오후 10시 24분 
Всё работает корректно. Попробуйте отключить другие моды и перепроверить
Ashie. 2024년 10월 28일 오후 7시 01분 
звук часто багается и его слышно даже в 100 метрах, будто под ухом.
Yummy  [작성자] 2024년 10월 19일 오후 5시 36분 
not in the plans yet :3
Yummy  [작성자] 2024년 9월 25일 오후 8시 00분 
The error has been fixed, thanks for finding it, but be more careful in your reports. The error only appeared after joining the game. The more accurate the report, the faster I will find the error.
Deathstar 2024년 9월 25일 오전 9시 23분 
Producing errors for players on my server, pretty much anytime they kill a zombie.
attempted index: playSoundLocal of non-table: null
function: Add -- file: PlayZombieDeathSound.lua line #51 | MOD: Shared Death Sound
Yummy  [작성자] 2024년 9월 22일 오전 7시 39분 
I appreciate the heads-up, but it seems to work fine for others. Maybe your MP just needs a little coffee? 😎 If there’s something specific you’re seeing, I’m all ears!
Clover :3 2024년 9월 14일 오전 8시 34분 
the entire point of this mod is so that other players can hear the death sound that happens when zombies die so yes x3
hyteq 2024년 9월 14일 오전 4시 56분 
does this work in multiplayer
Yummy  [작성자] 2024년 9월 1일 오후 1시 50분 
@Chaos_02 The error popped up if you kill a zombie while driving. I just released an update, please check and let me know the result.
Chaos_02 2024년 9월 1일 오후 1시 08분 
+1 @Katana I also get these exact Errors while driving (and possibly hitting Zeds).
The game is freshly installed, alongside all mods. Old and new players get them.

(Same Error as Katana here)

---------
STACK TRACE
-----
(.... KahluaThread.tableget....)
---------------------

RuntimeException: attempted index: isAimedFirearm of non-table: null
at se.krka.kahlua.vm.......tableget(KahluaThread.java:1689)
at ... (....very long KahluaThread at zombie.Lua....)


at the very bottom:
----------------------------
STACK TRACE
-----------------------------------
function: Add -- file: PlayZombieDeathSoun.lua line #28 | MOD: Shared Death Sound
Yummy  [작성자] 2024년 9월 1일 오전 9시 49분 
Thanks for your comment
doge 2024년 9월 1일 오전 8시 41분 
sounds pretty useful actually
Yummy  [작성자] 2024년 8월 29일 오전 11시 26분 
I have done tests, the mod works as expected. Please re-subscribe to the mod, most likely you have the previous version, where there was a similar error
Katana 2024년 8월 29일 오전 10시 24분 
`attempted index: playSoundLocal of non-table: null
function: Add -- file: PlayZombieDeathSound.lua line # 45 | MOD: Shared Death Sound
java.lang.RuntimeException: attempted index: playSoundLocal of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:173)
at zombie.network.GameClient.receiveClientCommand(GameClient.java:1513)
at
Katana 2024년 8월 29일 오전 10시 22분 
As soon as my friend kills a zombie
Yummy  [작성자] 2024년 8월 29일 오전 10시 03분 
In which case does the error occur?
Katana 2024년 8월 29일 오전 9시 34분 
I can send you the txt file of the console if you tell me where
Katana 2024년 8월 29일 오전 9시 33분 
bro they write me mistakes every time

function: Add -- file: PlayZombieDeathSound.lua line # 45 | MOD: Shared Death Sound
Yummy  [작성자] 2024년 8월 28일 오후 9시 15분 
@Jakub I made some fixes, now the sound should play at normal volume for the player who killed the zombie. Please test it and let me know the result
Yummy  [작성자] 2024년 8월 28일 오후 4시 07분 
Thanks for the suggestion, that's a really interesting and amusing idea! I can totally picture players just casually going about their business and suddenly hearing someone from Louisville bashing a horde of zombies — that would definitely add some adrenaline and surprises to the game! Your description made me chuckle a bit, so thanks for that! I’ll see how I can implement this fun feature in the mod.

Regarding your question about killing multiple zombies, I haven't tested this scenario, but the sound is played for each zombie killed separately, so I think the sound can overlap each other.
Loaf-fee 2024년 8월 28일 오후 4시 00분 
Can you make it so that a person from Rosewood can hear someone from Louisville bashing a bunch of zombies. That would scare the crap out of newer players who are casually farming in their little farm house and suddenly hearing it miles away. Would the sound also reverberate if multiple people kill a horde of zombies all at the same time?
Yummy  [작성자] 2024년 8월 27일 오전 11시 59분 
Yes. Since this sound is also triggered for the player who killed the zombie... I will look for other ways to eliminate this, but for now this is the only way
Coby 2024년 8월 27일 오전 11시 55분 
does this make the zombie death noise louder? really makes my ears hurt now
Yummy  [작성자] 2024년 8월 26일 오전 11시 29분 
@Luke Thanks for your feedback and for your interest in my mod. I want to clarify that the mod's code specifically targets zombie death sounds and uses the game's vanilla methods to play these sounds. The mod does not alter other sounds (like car doors or jump scares) and does not affect their audibility or volume.

All volume and sound range settings for zombie deaths are automatically handled by the game, and the mod simply adds a call to play the standard zombie death sounds. Therefore, if there are issues with other sounds in the game, it is likely due to the server settings or the others mod's mechanics, not this mod.

If you have any more questions or suggestions, I'd be happy to look into them. Thanks for your understanding!
Luke 2024년 8월 25일 오후 10시 33분 
1/3

Hey man! I love the idea of this mod, but it seems that perhaps there are some issues.

First, I was hosting an online multiplayer server, and my friend joined as the client. He could hear my sounds, but he could hear them when we were several blocks away from each other. Perhaps you should greatly decrease the radius at which sounds can be heard? I think that the other player should need to be within pretty close range, otherwise it's kind of confusing.

The next issue is that he could also hear other sounds, like car doors opening whenever I would get in a car, jump scare sound effects, zombie sounds, etc. Is this supposed to be the case? The same issue was present in that the distance was much too far that he could hear this.

And finally, I'm not 100% sure if this is the case (because we didn't get a good chance to test), but I don't think I could hear any of his sounds regardless of my distance from him.
Luke 2024년 8월 25일 오후 10시 33분 
2/3

I had to disable the mod on our server for now because of how he was hearing almost everything I was doing regardless of his distance from me. I think that allowing him to hear things like doors (house, car, etc.) opening/closing, and zombie attack/death sounds and things like that make sense IF he's really close to me, but he shouldn't hear things like the jump scare sound effect that plays whenever a zombie suddenly enters your cone of vision.

Aside from these things, something that would be really cool is if you could change the volume of the sound effects based on proximity. For example, if you're within 10 feet of the player, the other player hears your sounds at like ~80% volume (they shouldn't ever be 100%), and then the volume could fall off every 5-10 feet or so after that until it hits 0 db.
Luke 2024년 8월 25일 오후 10시 33분 
3/3

Another thing that would be cool (and if it already works like this disregard) is if the sound effects were more directional in some way. Like if the other player is standing somewhat in front and to your right of you as they kill a zombie, perhaps you hear the sound effect like 40% in your left ear and 60% in your right ear or something along those lines.

I don't know what might and might not be possible, but at the very least, as I said just above I don't think the other player should ever hear your sound effects at 100% volume (as if they're the ones performing the actions). Even if the other player is standing directly next to you as you kill a zombie, the volume of the sound effect they hear should be perhaps ~80% of the full volume. That way it's more obvious that the other player is the one doing the action associated with that particular sound effect.
Clover :3 2024년 8월 25일 오후 5시 18분 
yea like some of them got their skulls and bones exposed imagine the potential with that
George Floyd's Neck 2024년 8월 25일 오후 5시 12분 
Man, I love finishing off the zombies!
Clover :3 2024년 8월 25일 오전 7시 16분 
the description is great wdym
libero2711 2024년 8월 25일 오전 7시 15분 
bit psychotic of a description but if it works it works