AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Toggle Weapon Sounds (https://forums.alliedmods.net/showthread.php?t=183478)

GoD-Tony 04-22-2012 08:37

Toggle Weapon Sounds
 
2 Attachment(s)
Toggle Weapon Sounds

This will allow clients to individually disable hearing weapon sounds from other players. It was made with "infinite ammo" servers in mind, but should also be useful for players who like to use voice chat without being blasted by gunshots.

Installation:
  • Copy the *.smx file to your plugins directory.
Commands:
  • sm_stopsound - Toggle weapon audio on/off.
Notes:
  • Should work on CS:S, TF2, DoD:S, and HL2:DM.
  • You will always hear your own weapon due to client prediction.
  • This plugin supports automatic updates via Updater.

SHAREN 04-23-2012 06:47

Re: Toggle Weapon Sounds
 
Good idea. And could you do that after the reconnecting setting is not discharged?
translate.google.ru

Bacardi 04-23-2012 07:56

Re: Toggle Weapon Sounds
 
I think thought this quite impossible ><

GoD-Tony 04-23-2012 10:45

Re: Toggle Weapon Sounds
 
Note to self: maybe add a feature to automatically toggle audio while someone is speaking (voicehook).

Quote:

Originally Posted by SHAREN (Post 1695003)
Good idea. And could you do that after the reconnecting setting is not discharged?

Sure, I can add clientprefs support for the next update.

Quote:

Originally Posted by Bacardi (Post 1695032)
I think this quite impossible ><

What do you mean?

Bacardi 04-23-2012 11:21

Re: Toggle Weapon Sounds
 
Quote:

Originally Posted by GoD-Tony (Post 1695095)
What do you mean?

Sry, I mean thought

TheAvengers2 04-26-2012 12:29

Re: Toggle Weapon Sounds
 
Quote:

Originally Posted by GoD-Tony (Post 1694338)
  • You will always hear your own weapon due to client prediction.

If you really wanted to, that could be prevented as well. Simply hook SetTransmit on weapon spawn and block it. They won't be able to hear their weapon at all. However, it will cause a multitude of graphical glitches. :shock:

xomp 04-26-2012 13:26

Re: Toggle Weapon Sounds
 
If you could make a way to hook these sounds so we can use a fastdl and some custom sounds that would be great :D

GoD-Tony 04-27-2012 04:45

Re: Toggle Weapon Sounds
 
Quote:

Originally Posted by TheAvengers2 (Post 1696831)
If you really wanted to, that could be prevented as well. Simply hook SetTransmit on weapon spawn and block it. They won't be able to hear their weapon at all. However, it will cause a multitude of graphical glitches.

I wouldn't take it that far. If they really don't want to hear their own weapon then they can disable prediction, or stop shooting. :)

Quote:

Originally Posted by xomp (Post 1696887)
If you could make a way to hook these sounds so we can use a fastdl and some custom sounds that would be great :D

You can use the same method in this plugin to block the sounds and then play your own. However that feature won't be added here because it's unrelated.

vodka00 10-26-2012 21:01

Re: Toggle Weapon Sounds
 
And would this be possible for map sounds also?

Thanks

GoD-Tony 11-07-2012 12:52

Re: Toggle Weapon Sounds
 
1 Attachment(s)
Quote:

Originally Posted by vodka00 (Post 1826548)
And would this be possible for map sounds also?

Yes. I've made a plugin to disable map sounds/music, but I'm not sure whether to merge it with this one or release it separately.

Edit: I'm just going to post it here in the meantime. Command = sm_stopmusic


All times are GMT -4. The time now is 01:21.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.