Raised This Month: $404 Target: $400
 101% 

[CS:GO/CS:S?] Mutes friendly knife sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NanoC
Senior Member
Join Date: Jan 2016
Location: Argentina
Plugin ID:
6295
Plugin Version:
3.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Mutes knife sounds against friendly targets when no damage is dealt
    Old 10-10-2018 , 18:34   [CS:GO/CS:S?] Mutes friendly knife sound
    Reply With Quote #1

    Knife sound muter

    This is a basic plugin, it just disable the annoying knife sound when no damage is dealt (only if Ts knifes others Ts, or CTs knifes others CTs)
    Useful for Jailbreak and Zombie Mod/Escape servers.

    If mp_teammates_are_enemies is 1, this plugin won't work

    Cvars

    mk_enable 1/0 - Enable or disable the plugin

    Client/players commands (3 same commands)

    sm_knifemute
    sm_muteknife
    sm_mk


    Future changes
    - Add sounds when some one type the command
    - Add an admin cvar to enable plugin for EVERY people in the server
    - Add an entry to save (or not) the plugin using clientpref
    - Add a cvar to control if the knife sound is muted only for teammates, enemies, or both.

    Thanks to GAMMACASE for the help

    Video as an example here
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_knifemute.sp - 30 views - 3.7 KB)
    File Type: smx sm_knifemute.smx (9.4 KB, 12 views)

    Last edited by NanoC; 10-11-2018 at 10:50.
    NanoC is online now
    Send a message via Skype™ to NanoC
    laenss
    Junior Member
    Join Date: Feb 2017
    Old 10-11-2018 , 06:10   Re: [CS:GO/CS:S?] Mutes friendly knife sound
    Reply With Quote #2

    Hi I have a question for you

    you know about knife sound bug?

    This is a problem with csgo. It is a bug that only sounds and is not damaged when attacked by a knife. Can I make a sound only when I am damaged?
    laenss is offline
    NanoC
    Senior Member
    Join Date: Jan 2016
    Location: Argentina
    Old 10-11-2018 , 06:22   Re: [CS:GO/CS:S?] Mutes friendly knife sound
    Reply With Quote #3

    I didnt understand your question, can you explain me better please?
    NanoC is online now
    Send a message via Skype™ to NanoC
    laenss
    Junior Member
    Join Date: Feb 2017
    Old 10-11-2018 , 06:43   Re: [CS:GO/CS:S?] Mutes friendly knife sound
    Reply With Quote #4

    Quote:
    Originally Posted by NanoC View Post
    I didnt understand your question, can you explain me better please?
    When attacking an enemy with a knife

    Is it possible to make a knife sound only when the enemy is damaged?
    laenss is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 10-11-2018 , 08:31   Re: [CS:GO/CS:S?] Mutes friendly knife sound
    Reply With Quote #5

    Quote:
    Originally Posted by laenss View Post
    When attacking an enemy with a knife

    Is it possible to make a knife sound only when the enemy is damaged?
    No. This is called prediction.
    __________________


    Accepting private work. Contact me if you're interested.
    eyal282 is offline
    NanoC
    Senior Member
    Join Date: Jan 2016
    Location: Argentina
    Old 10-11-2018 , 08:34   Re: [CS:GO/CS:S?] Mutes friendly knife sound
    Reply With Quote #6

    Ah, you mean disable the knife sound when some one (or you) damage an enemy instead a friend. Well this plugin is useful for jailbreak and zombie escape servers, that' why i decided to make the plugin only if teammates damage others teammates (if mp_teammates_are_enemies is disabled).
    So i think i can make a cvar to keep the sound disable if that cvar i said above is enabled and make another cvar to control if the damage is only for teammates, for enemies or both.
    Ty for your suggestion
    NanoC is online now
    Send a message via Skype™ to NanoC
    Papero
    Senior Member
    Join Date: Aug 2016
    Location: Rimini, Italy
    Old 10-11-2018 , 10:57   Re: [CS:GO/CS:S?] Mutes friendly knife sound
    Reply With Quote #7

    I've done a small plugin that should do it, basically if no damage is dealt the sound won't be played.
    You can find it here, on github.
    Note: Is not heavily tested.
    __________________

    Last edited by Papero; 10-11-2018 at 10:57.
    Papero is offline
    Send a message via Skype™ to Papero
    NanoC
    Senior Member
    Join Date: Jan 2016
    Location: Argentina
    Old 10-11-2018 , 12:45   Re: [CS:GO/CS:S?] Mutes friendly knife sound
    Reply With Quote #8

    Quote:
    Originally Posted by Papero View Post
    I've done a small plugin that should do it, basically if no damage is dealt the sound won't be played.
    You can find it here, on github.
    Note: Is not heavily tested.
    I did the same in this plugin but i decided to make a command to toggle it, i think is better
    NanoC is online now
    Send a message via Skype™ to NanoC
    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 17:31.


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