hzqst / MetaHookSv

MetaHook (https://github.com/nagist/metahook) porting for SvEngine (GoldSrc engine modified by Sven-Coop)
MIT License
148 stars 37 forks source link

CM: When HL starts, you can immediately see subtitles of scientists talking, and that's bad. #370

Open humanoidas opened 10 months ago

humanoidas commented 10 months ago

When HL starts and you are on the train, you can immediately see the subtitles of scientists talking right before even Half-Life's title and train's voice. Those subtitles disturb train's subtitles greatly. Their sentences are even after disaster. Is there a way to fix this? Maybe it is possible to reduce the distance for hearable subtitles?

hzqst commented 10 months ago

You can reduce cap_max_distance to a reasonable distance.

cap_max_distance : Ignore sound or sentences (which are supposed to play subtitles) whose speaker is too far away from this distance. This cvar is not going to work with SvEngine because of missing sound source information in ScClient_FindSoundEx.

https://github.com/hzqst/MetaHookSv/blob/main/docs/CaptionMod.md#console-vars

humanoidas commented 10 months ago

Alas, it's not working for me :/ I tried "cap_max_distance" 1 to 2000. No difference. Even value 0 is not working. Trying "cap_min_avol". Will see how it works.

EDIT: No. "cap_min_avol" value 1 shows all subtitles. and 1.1 hides it all. EDIT: probably the ultimate solution is to edit the map and delete or gag those characters.

hzqst commented 10 months ago

Can you set cap_debug 1 on console to see what's name of the annoying sentence/sound and the exact dist and avol of it?

humanoidas commented 10 months ago

Thanks for trying to help. OK, I checked values using debug in console:

[scientist/noidea.wav] found. dist: 0.00, avol: 1.00 [tride/c0a0_tr_gmorn.wav] found. dist: 0.00, avol: 1.00 [scientist/lowervoice.wav] found. dist: 0.00, avol: 1.00 scientist/cantbeworse.wav] found. dist: 0.00, avol: 1.00 [scientist/ofcourse.wav] found. dist: 0.00, avol: 1.00

It looks like all played files have the same values...

hzqst commented 10 months ago

This could be a potential problem in the previous version that distance filter and volume filter were not working for Sven Co-op. Could you try https://github.com/hzqst/MetaHookSv/releases/tag/v20240120c and see if dist/avol is still 0.00/1.00 for scientists?