Raised This Month: $150 Target: $400
 37% 

Toggle Weapon Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author
GoD-Tony
Veteran Member
Join Date: Jul 2005
Plugin ID:
2923
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    71 
    Plugin Description:
    Allows clients to stop hearing weapon sounds
    Old 04-22-2012 , 08:37   Toggle Weapon Sounds
    Reply With Quote #1

    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (toggle_weapon_sounds.sp - 1541 views - 5.1 KB)
    File Type: smx toggle_weapon_sounds.smx (4.8 KB, 856 views)
    __________________

    Last edited by GoD-Tony; 04-22-2012 at 08:55.
    GoD-Tony is offline
    SHAREN
    Senior Member
    Join Date: Dec 2011
    Old 04-23-2012 , 06:47   Re: Toggle Weapon Sounds
    Reply With Quote #2

    Good idea. And could you do that after the reconnecting setting is not discharged?
    translate.google.ru
    SHAREN is offline
    Send a message via Skype™ to SHAREN
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: Battlefield 1 fields
    Old 04-23-2012 , 07:56   Re: Toggle Weapon Sounds
    Reply With Quote #3

    I think thought this quite impossible ><

    Last edited by Bacardi; 04-23-2012 at 11:22.
    Bacardi is offline
    GoD-Tony
    Veteran Member
    Join Date: Jul 2005
    Old 04-23-2012 , 10:45   Re: Toggle Weapon Sounds
    Reply With Quote #4

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

    Quote:
    Originally Posted by SHAREN View Post
    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 View Post
    I think this quite impossible ><
    What do you mean?
    __________________
    GoD-Tony is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: Battlefield 1 fields
    Old 04-23-2012 , 11:21   Re: Toggle Weapon Sounds
    Reply With Quote #5

    Quote:
    Originally Posted by GoD-Tony View Post
    What do you mean?
    Sry, I mean thought

    Last edited by Bacardi; 04-23-2012 at 11:22.
    Bacardi is offline
    TheAvengers2
    BANNED
    Join Date: Jul 2011
    Old 04-26-2012 , 12:29   Re: Toggle Weapon Sounds
    Reply With Quote #6

    Quote:
    Originally Posted by GoD-Tony View Post
    • 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.
    TheAvengers2 is offline
    xomp
    BANNED
    Join Date: Jul 2008
    Old 04-26-2012 , 13:26   Re: Toggle Weapon Sounds
    Reply With Quote #7

    If you could make a way to hook these sounds so we can use a fastdl and some custom sounds that would be great
    xomp is offline
    Send a message via Skype™ to xomp
    GoD-Tony
    Veteran Member
    Join Date: Jul 2005
    Old 04-27-2012 , 04:45   Re: Toggle Weapon Sounds
    Reply With Quote #8

    Quote:
    Originally Posted by TheAvengers2 View Post
    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 View Post
    If you could make a way to hook these sounds so we can use a fastdl and some custom sounds that would be great
    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.
    __________________
    GoD-Tony is offline
    vodka00
    Veteran Member
    Join Date: Jun 2012
    Location: Los Angeles
    Old 10-26-2012 , 21:01   Re: Toggle Weapon Sounds
    Reply With Quote #9

    And would this be possible for map sounds also?

    Thanks
    vodka00 is offline
    GoD-Tony
    Veteran Member
    Join Date: Jul 2005
    Old 11-07-2012 , 12:52   Re: Toggle Weapon Sounds
    Reply With Quote #10

    Quote:
    Originally Posted by vodka00 View Post
    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
    Attached Files
    File Type: sp Get Plugin or Get Source (stopmusic.sp - 1832 views - 2.6 KB)
    __________________

    Last edited by GoD-Tony; 11-07-2012 at 12:53.
    GoD-Tony is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 23:11.


    Powered by vBulletin®
    Copyright ©2000 - 2017, vBulletin Solutions, Inc.
    Theme made by Freecode