Project Zomboid

Project Zomboid

[41.54] Silencer Reloaded! 中文消音器
79 Comments
YingSuHuaKai  [author] 31 Mar, 2023 @ 5:33pm 
@阿呆28号 原版配件就没耐久设定 要加的话需要代码能力 哥们怕不是从幻痛过来的吧
(*模组停更了 兼容性没有保障 建议换个订阅)
阿呆28号 3 Mar, 2023 @ 7:52am 
消音器没有耐久吗
完结之际 19 Jul, 2022 @ 4:44am 
我在游戏模组栏里面并没有找到这个mod:steamfacepalm:
Stellar Harbour 3 Jul, 2022 @ 9:07am 
Not works anymore, you can remove it
YingSuHuaKai  [author] 30 Jun, 2022 @ 7:29am 
@王成宇 创意和大部分代码都不是我的,原作者和链接在简介里,我只是拿来简单修改,做了当时的41.54兼容:steamhappy:
Stellar Harbour 26 May, 2022 @ 7:22pm 
No silencer model, if you remove it - pistol still silenced, also errors, overall - DO NOT USE, there is better versions
Stellar Harbour 25 May, 2022 @ 4:14pm 
[26-05-22 02:13:20.425] ERROR: General , 1653520400425> 337,035,305> ExceptionLogger.logException> Exception thrown java.lang.NullPointerException: Cannot invoke "se.krka.kahlua.vm.KahluaTable.len()" because "<local2>" is null at TableLib.insert line:217..
[26-05-22 02:13:20.426] ERROR: General , 1653520400426> 337,035,306> DebugLogStream.printException> Stack trace:.
[26-05-22 02:13:20.429] LOG : General , 1653520400429> 337,035,309> -----------------------------------------
STACK TRACE
-----------------------------------------
Callframe at: table.insert
function: SilencerLoading.lua -- file: SilencerLoading.lua line # 12.
王成宇 20 May, 2022 @ 6:22am 
@YingSuHuaKai 你的制作消音器的的创意很好,Weapon Mod 里面消音器掉落太多,捡麻了,太影响平衡
YingSuHuaKai  [author] 15 May, 2022 @ 1:42am 
@王成宇 大佬牛逼
*这个模组一段时间内我应该不会更新了
王成宇 11 May, 2022 @ 6:57pm 
王成宇 11 May, 2022 @ 6:55pm 
@YingSuHuaKai 移除消音器声音不恢复 bug 我改了

<steam directory>/workshop/content/108600/2584211049/mods/Weapon Mods/Media/lua/server/items/WPNMOD_Silence.lua:18

`if item:getCanon() == nil then return end`

```lua
if item:getCanon() == nil then
item:setSoundVolume(item:getScriptItem():getSoundVolume)
item:setSoundRadius(item:getScriptItem():getSoundRadius)
item:setSwingSound(item:getScriptItem():getSwingSound)
return
end
```

因为枪口移除之后, 导致item:getCanon()为空, 原来的代码直接结束跳出, 没有执行下面恢复声音的代码.
如果不想改代码, 可以给武器上一个其他的枪口部件 比如说Laser, GunLight 什么的, 声音就正常了.
这个代码有可能会影响到其他mod修改声音的处理
最好是在卸载部件的事件里面恢复声音. 具体是哪个事件我还没找.
YingSuHuaKai  [author] 4 Mar, 2022 @ 4:27am 
@omi I don't think so
devAs 25 Feb, 2022 @ 5:38pm 
work with 41.66?
Cleave 26 Dec, 2021 @ 5:49pm 
I'm surprised no one has made a mod with suppressors that work on all vanilla weapons (yes shotguns can be suppressed but not the double barrel) and increases range and accuracy instead because the lengthened barrel actually increases muzzle velocity by a slight amount in real life.

As it stands all of the suppressor mods are pretty sub par, at the very least we should have one that is modifiable to accomplish suppressors on all vanilla guns and the option to slightly increase range/accuracy or leave it unchanged with them on.
YingSuHuaKai  [author] 26 Dec, 2021 @ 1:10am 
@Nagto 41.54开始我就没玩了,也没做后续的兼容更新 炸档的话实在抱歉:steamsad:
YingSuHuaKai  [author] 26 Dec, 2021 @ 1:09am 
@WHOMANKIND Have been AFK about half a year, maybe repair someday
YingSuHuaKai  [author] 26 Dec, 2021 @ 1:09am 
@Meiyuuhi Thank you:steamhappy:
WHOMANKIND 21 Dec, 2021 @ 3:52am 
this mod crash server
Meiyuuhi 10 Dec, 2021 @ 8:26am 
this is a great mod, I love it, hope you update it for the new version. btw the MSR rifles are broken because of the magazines, they're still only 3 rounds even though there's capacity for 5.
STUCKOV 27 Nov, 2021 @ 9:25pm 
do any one know some Silencer Suppressor mod that DO NOT change guns or magazines any way? This mode is usless for me becouse "2.MSR700 and MSR788 ammunition capacity modified to 5 rounds" i want OANLY Silencer for a gun.
双叶A梦 10 Nov, 2021 @ 8:22am 
我试了试 重新开档 还是这个MOD报错 只能卸载了
我的绰号是步枪 Vintovka 9 Nov, 2021 @ 5:14am 
You cant load 5(+1)/5 bullets in MSRs in realistic mode becouse you have only 308x3 clips for ammo. And i strongly disagree with removal of jamming mechanic/editing weapon stats. 2 and 3 should be optional, like in "mod option" mod.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2169435993&searchtext=mod+option
双叶A梦 9 Nov, 2021 @ 3:40am 
您好,作者。我想问一下这个模组会导致去加油站给油桶添加燃料出现报错,无法给空油桶添加燃料吗。我查过报错文本后发现是(Alice,OZ med,还有这个模组导致的)问题,但是关了除alice外的模组都会导致坏档。。。无法载入
0fficerZ0mbie 2 Nov, 2021 @ 5:11pm 
Also can confirm it works in version 41.56 (at least it works on the M9)
0fficerZ0mbie 2 Nov, 2021 @ 4:58pm 
what does it decrease the sound radius to?
Lancelot 22 Oct, 2021 @ 5:15am 
[22-10-21 18:39:12.996] WARN : General , 1634902752996> TextManager.Init> font "MediumNew" not found in fonts.txt.
[22-10-21 18:39:12.999] WARN : General , 1634902752999> TextManager.Init> font "AutoNormSmall" not found in fonts.txt.
[22-10-21 18:39:12.999] WARN : General , 1634902752999> TextManager.Init> font "AutoNormMedium" not found in fonts.txt.
[22-10-21 18:39:13.005] WARN : General , 1634902753005> TextManager.Init> font "AutoNormLarge" not found in fonts.txt.
[22-10-21 18:39:13.056] WARN : General , 1634902753056> TextManager.Init> font "DebugConsole" not found in fonts.txt.
Lancelot 22 Oct, 2021 @ 5:15am 
[22-10-21 18:39:10.230] LOG : Mod , 1634902750230> mod "Silencer" overrides media/lua/shared/translate/en/tooltip_en.txt.
[22-10-21 18:39:10.236] LOG : General , 1634902750236> texturepack: loading NZTILEPACK.
[22-10-21 18:39:10.236] LOG : General , 1634902750236> ERROR: Missing translation "UI_Loading_Texturepack".


我开始储蓄,消音器停止工作,尽管它在武器上。 我去了日志,但我看到了一个错误
VakumNET 16 Oct, 2021 @ 4:16am 
[16-10-21 14:25:19.744] LOG : Lua , 1634376319744> Loading: D:/STEAM/steamapps/workshop/content/108600/2447053689/mods/Silencer/media/lua/server/SilencerLoading.lua.
function: SilencerLoading.lua -- file: SilencerLoading.lua line # 12.
[16-10-21 14:25:19.755] ERROR: General , 1634376319755> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: locker of non-table: null at
YingSuHuaKai  [author] 13 Oct, 2021 @ 6:52am 
@Kregor have no idea. I'm AFK at 41.54 and playing XCOM2 for these days :)
Kregor 13 Oct, 2021 @ 6:48am 
Does it work for the newest IWBUMS?
YingSuHuaKai  [author] 13 Oct, 2021 @ 6:17am 
@Ten Moe-天萌 试试看 我41.54开始就暂时没咋玩了
Glasninov 13 Oct, 2021 @ 5:43am 
41.55可以用吗
YingSuHuaKai  [author] 11 Oct, 2021 @ 3:29am 
@苍绔
说实话我只是更新调整了一些数据 添加新武器支持的话,可能需要调整消音器和武器的相对坐标,目前还没研究

如果之后打算大修这个模组的话,会优先考虑:steamhappy:

最近PZ频繁更新不知道搞炸了多少模组,有点烦,跑去玩XCOM2了
YingSuHuaKai  [author] 11 Oct, 2021 @ 3:22am 
@Dwarvindoor
Did I not say that this is a tuning optimization?
The introduction also posted a link to the original work
If you like the original better, go subscribe

Read carefully. Thanks.
stecph 11 Oct, 2021 @ 1:27am 
Plagiarism what??
Dwarvindoor 11 Oct, 2021 @ 12:56am 
plagiarism be like
苍绔 1 Oct, 2021 @ 10:40pm 
大佬,把左轮也加上消音器吧,很喜欢左轮,但是开枪就引来脏比,拜托大佬把消音器安装范围加上左轮,当然不喜欢的可以不用。
YingSuHuaKai  [author] 21 Sep, 2021 @ 1:13am 
也许是产出渠道报错吧 能自制 不耽误玩儿~
阿茶 20 Sep, 2021 @ 9:58pm 
右下角会报一个错误,但没发现什么影响游戏的问题。:papyrus:
YingSuHuaKai  [author] 19 Sep, 2021 @ 11:38pm 
@K 影响游戏流程吗?
Alone 19 Sep, 2021 @ 11:34pm 
@YingSuHuaKai 开始游戏右下角就报错的啊,你难道不是吗
YingSuHuaKai  [author] 19 Sep, 2021 @ 10:39pm 
可以具体描述一下你的问题
YingSuHuaKai  [author] 19 Sep, 2021 @ 10:37pm 
@K 开新档测了吗?我开新档测试没遇到什么问题
Alone 19 Sep, 2021 @ 10:19pm 
@YingSuHuaKai BUG修复了吗,等着呐
YingSuHuaKai  [author] 19 Sep, 2021 @ 7:10pm 
@ChaGlory Code master:steamthumbsup:
WM Easy 19 Sep, 2021 @ 3:50pm 
41.54 is new droptable

table.insert(ProceduralDistributions.list["GunStoreDisplayCase"].items, "Silencer.Silencer");
table.insert(ProceduralDistributions.list["GunStoreDisplayCase"].items, 10);
table.insert(ProceduralDistributions.list["GunStoreShelf"].items, "Silencer.Silencer");
table.insert(ProceduralDistributions.list["GunStoreShelf"].items, 10);
table.insert(ProceduralDistributions.list["GunStoreShelf"].items, "Silencer.Silencer");
table.insert(ProceduralDistributions.list["GunStoreShelf"].items, 10);
table.insert(ProceduralDistributions.list["PoliceStorageGuns"].items, "Silencer.Silencer");
table.insert(ProceduralDistributions.list["PoliceStorageGuns"].items, 10);
table.insert(ProceduralDistributions.list["PoliceStorageGuns"].items, "Silencer.Silencer");
table.insert(ProceduralDistributions.list["PoliceStorageGuns"].items, 10);
table.insert(ProceduralDistributions.list["CrateTools"].items, "Silencer.Silencer");
table.insert(ProceduralDistributions.list["CrateTools"].items, 2);
YingSuHuaKai  [author] 19 Sep, 2021 @ 4:09am 
不知道新档咋样
YingSuHuaKai  [author] 19 Sep, 2021 @ 4:09am 
@K 等我搞个压力测试看看 我这边旧档也出问题
Alone 19 Sep, 2021 @ 1:59am 
mod运行还是报错啊
YingSuHuaKai  [author] 18 Sep, 2021 @ 6:03pm 
@ChaGlory Thx!