Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

[Request] Block taunt voicelines #50

Open
MAGNAT2645 opened this issue Apr 29, 2019 · 8 comments
Open

[Request] Block taunt voicelines #50

MAGNAT2645 opened this issue Apr 29, 2019 · 8 comments
Labels
Enhancement New feature or request Help Wanted Attention is needed

Comments

@MAGNAT2645
Copy link
Contributor

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?

@Batfoxkid
Copy link
Owner

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

@Batfoxkid Batfoxkid added Enhancement New feature or request Help Wanted Attention is needed labels Apr 29, 2019
@MAGNAT2645
Copy link
Contributor Author

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?

@Batfoxkid
Copy link
Owner

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.

@MAGNAT2645
Copy link
Contributor Author

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.

@Batfoxkid
Copy link
Owner

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"
}

@MAGNAT2645
Copy link
Contributor Author

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

@Batfoxkid
Copy link
Owner

Batfoxkid commented May 22, 2019

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

Batfoxkid added a commit that referenced this issue Aug 25, 2019
@MAGNAT2645
Copy link
Contributor Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New feature or request Help Wanted Attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants