FreakFortressBat icon indicating copy to clipboard operation
FreakFortressBat copied to clipboard

[Request] Block taunt voicelines

Open MAGNAT2645 opened this issue 5 years ago • 8 comments

As we know, "sound_block_vo" works fine, but some taunt voicelines (like from new scout taunts) still can be heard. Maybe there's a way to block these VO?

MAGNAT2645 avatar Apr 29 '19 12:04 MAGNAT2645

I need to figure out a method to block those, new workshop taunts are probably going to keep doing this.

Batfoxkid avatar Apr 29 '19 15:04 Batfoxkid

There's also not important problem but anyways: Is there any way to block catch_phrase while you're pressing E for normal RAGE or AMS?

I have Ness and he says "Okey" when you're trying to use PK Fire and etc. :D So i want to know this can be fixed or not?

MAGNAT2645 avatar May 11 '19 14:05 MAGNAT2645

I did recently add catch_replace in development branch with can replace certain class voicelines instead of all of them, you can probably use it to block call for Medic sounds or make the voiceline appear on certain lines.

Batfoxkid avatar May 11 '19 16:05 Batfoxkid

So, can you give an example of how to block "Medic!" voiceline for Ness? I just don't want to hear "Okay" when he used PSI.

MAGNAT2645 avatar May 22 '19 13:05 MAGNAT2645

catch_replace
{
        "1"     "vo/null.mp3"
        "vo1" "vo/scout_medic01.mp3"
        "2"     "vo/null.mp3"
        "vo2" "vo/scout_medic02.mp3"
        "3"     "vo/null.mp3"
        "vo3" "vo/scout_medic03.mp3"
}

Batfoxkid avatar May 22 '19 13:05 Batfoxkid

So i can have "sound_block_vo", "catch_phrase" and "catch_replace" ?

MAGNAT2645 avatar May 22 '19 14:05 MAGNAT2645

Yep, orders like this: 1st. catch_replace 2nd. catch_phrase 3rd. sound_block_vo

Batfoxkid avatar May 22 '19 14:05 Batfoxkid

It's may be a little late but i found out that AddNormalSoundHook doesn't work (doesn't block any sound) if you use SND_CHANGEPITCH flag (with changed pitch var) and channel is SNDCHAN_VOICE.

You can test this using Resize Players plugin with cvar sm_resize_voices = 1. If you change your size, your pitch changes too and then any AddNormalSoundHook (from other plugins) with Plugin_Stop or Plugin_Handled doesn't work so you still can hear class voices.

If you change your size back to normal (1.0) then SND_CHANGEPITCH flag isn't used so you don't hear any voices. This surely works with any voices but idk about taunt voices.

MAGNAT2645 avatar Jan 19 '20 12:01 MAGNAT2645