Garry's Mod

Garry's Mod

TFA-VOX for NPC
 此主题已被置顶,因此可能具有重要性
lily  [开发者] 2024 年 2 月 20 日 上午 2:04
Report BUG
Please report bug here
< >
正在显示第 1 - 15 条,共 36 条留言
Dipshit Billy 2024 年 2 月 21 日 上午 9:29 
The sounds are very quiet. I only hear them when really close to the NPC saying the lines. If I go let's say 15 meters away from the NPC I already won't hear them. I tried tweaking the emitsound line to have more arguements, I added 100,100,1 after sound and it did not help.

For reference, https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3015005577 this addon replaces NPC sounds too and when shooting an NPC, the pain sound can be heard across the map.

Edit: after playing around with code from the addon linked above, I found out that this is in fact something to do with TFA-VOX itself. I put in my own sounds and they played across the map like expected but if I use the exact same sounds through this mod, the behaviour is as I described at the beggining, the sounds are only really heard from really close to the NPC making these sounds. Fixing this would probably require me to go to the TFA-VOX framework and tweak the core functions used.

That aside, this mod is very clever, good job, have an award :D
最后由 Dipshit Billy 编辑于; 2024 年 2 月 21 日 上午 10:30
lily  [开发者] 2024 年 2 月 22 日 上午 6:24 
引用自 Ceet-Roos
The sounds are very quiet. I only hear them when really close to the NPC saying the lines. If I go let's say 15 meters away from the NPC I already won't hear them. I tried tweaking the emitsound line to have more arguements, I added 100,100,1 after sound and it did not help.

For reference, https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3015005577 this addon replaces NPC sounds too and when shooting an NPC, the pain sound can be heard across the map.

Edit: after playing around with code from the addon linked above, I found out that this is in fact something to do with TFA-VOX itself. I put in my own sounds and they played across the map like expected but if I use the exact same sounds through this mod, the behaviour is as I described at the beggining, the sounds are only really heard from really close to the NPC making these sounds. Fixing this would probably require me to go to the TFA-VOX framework and tweak the core functions used.

That aside, this mod is very clever, good job, have an award :D

@Ceet-Roos
Now Voice become more loudly then before.....By the way, I think the sound of the original NPC is too loud, even if it's far away, you can still hear them talking
Dipshit Billy 2024 年 2 月 22 日 上午 7:43 
引用自 lily
引用自 Ceet-Roos
The sounds are very quiet. I only hear them when really close to the NPC saying the lines. If I go let's say 15 meters away from the NPC I already won't hear them. I tried tweaking the emitsound line to have more arguements, I added 100,100,1 after sound and it did not help.

For reference, https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3015005577 this addon replaces NPC sounds too and when shooting an NPC, the pain sound can be heard across the map.

Edit: after playing around with code from the addon linked above, I found out that this is in fact something to do with TFA-VOX itself. I put in my own sounds and they played across the map like expected but if I use the exact same sounds through this mod, the behaviour is as I described at the beggining, the sounds are only really heard from really close to the NPC making these sounds. Fixing this would probably require me to go to the TFA-VOX framework and tweak the core functions used.

That aside, this mod is very clever, good job, have an award :D

@Ceet-Roos
Now Voice become more loudly then before.....By the way, I think the sound of the original NPC is too loud, even if it's far away, you can still hear them talking

Maybe it's a problem on my end but this still didn't work by default. BUT
changing the 75 from this line:
ent:EmitSound(sound.GetProperties(VOXsound).sound, 75, 100, 1, CHAN_VOICE)
to 100, it works the way I wanted it to work.

Thank you!
lily  [开发者] 2024 年 2 月 22 日 上午 8:35 
引用自 Ceet-Roos
引用自 lily

@Ceet-Roos
Now Voice become more loudly then before.....By the way, I think the sound of the original NPC is too loud, even if it's far away, you can still hear them talking

Maybe it's a problem on my end but this still didn't work by default. BUT
changing the 75 from this line:
ent:EmitSound(sound.GetProperties(VOXsound).sound, 75, 100, 1, CHAN_VOICE)
to 100, it works the way I wanted it to work.

Thank you!

Well, maybe I will add a menu in future updates to allow people to freely configure the propagation distance of sound
YuRaNnNzZZ 2024 年 2 月 22 日 上午 8:41 
please add admin checks for serverside net receiver
最后由 YuRaNnNzZZ 编辑于; 2024 年 2 月 22 日 上午 8:42
绿袍尊者. 2024 年 2 月 23 日 上午 1:40 
[TFA-VOX for NPC] lua/autorun/vox_generalization.lua:12: attempt to index a nil value
1. safeToEmitVoxSound - lua/autorun/vox_generalization.lua:12
2. v - lua/autorun/vox_generalization.lua:300
3. unknown - lua/includes/modules/hook.lua:96
lily  [开发者] 2024 年 2 月 23 日 上午 6:15 
[TFA-VOX for NPC] lua/autorun/vox_generalization.lua:12: attempt to index a nil value
1. safeToEmitVoxSound - lua/autorun/vox_generalization.lua:12
2. v - lua/autorun/vox_generalization.lua:300
3. unknown - lua/includes/modules/hook.lua:96
不应该呀,你能把报错的vox包的名字发给我看看吗?我发现有不少人的vox模板都写得好奇怪呀,真难顶
绿袍尊者. 2024 年 2 月 24 日 上午 1:51 
引用自 lily
[TFA-VOX for NPC] lua/autorun/vox_generalization.lua:12: attempt to index a nil value
1. safeToEmitVoxSound - lua/autorun/vox_generalization.lua:12
2. v - lua/autorun/vox_generalization.lua:300
3. unknown - lua/includes/modules/hook.lua:96
不应该呀,你能把报错的vox包的名字发给我看看吗?我发现有不少人的vox模板都写得好奇怪呀,真难顶
额,没必要了,更新之后现在已经正常了
lily  [开发者] 2024 年 2 月 24 日 下午 10:33 
引用自 YuRaNnNzZZ
please add admin checks for serverside net receiver
updated
check availability 2024 年 2 月 29 日 上午 12:59 
citizen voice replacements work almost perfectly, but with combine sometimes you can still hear the normal combine voice
lily  [开发者] 2024 年 2 月 29 日 上午 4:41 
citizen voice replacements work almost perfectly, but with combine sometimes you can still hear the normal combine voice

It works fine in chromium 64-bit branch. But in not test branch, GM:EntityEmitSound hook can not read the Combine's scripted sentences,so you can still hear the normal combine voice.
check availability 2024 年 3 月 1 日 下午 1:47 
you're right, it works now. also another thing i wanted to point out is it seems to be having trouble finding all of the "metrocop" models i have available. the citizen and combine ones show up fine, but not metrocops.
Blanc 2024 年 3 月 1 日 下午 2:14 
[TFA-VOX for NPC] lua/autorun/vox_generalization.lua:807: attempt to call global 'TFAVOX_GetPack' (a nil value)
1. OnRowSelected - lua/autorun/vox_generalization.lua:807
2. OnClickLine - lua/vgui/dlistview.lua:447
3. unknown - lua/vgui/dlistview_line.lua:81
Blanc 2024 年 3 月 1 日 下午 2:33 
[TFA-VOX for NPC] lua/autorun/vox_generalization.lua:98: attempt to call global 'TFAVOX_GetPack' (a nil value)
1. v - lua/autorun/vox_generalization.lua:98
2. unknown - lua/includes/modules/hook.lua:96
Blanc 2024 年 3 月 1 日 下午 3:13 
Nevermind that. It finally worked for me.
< >
正在显示第 1 - 15 条,共 36 条留言
每页显示数: 1530 50