Raised This Month: $12 Target: $400
 3% 

[TF2] Voice Commands Pitch (v1.1.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SirDigby
Junior Member
Join Date: Feb 2016
Plugin ID:
5070
Plugin Version:
1.1.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    69 
    Plugin Description:
    Set a custom pitch for Voice Commands
    Old 03-01-2016 , 21:42   [TF2] Voice Commands Pitch (v1.1.1)
    Reply With Quote #1

    Voice Command Pitch Controller
    v1.1.1

    Description:
    Set a custom pitch for voice commands in TF2.
    It should also work in any other game that has the SNDCHAN_VOICE flag for the voice command sounds, but I havent tested.

    Features:
    • Two levels of access, with the lower having customisable max and min settings.
    • Override to have maximum pitch range.
    • Admin-Only Setting.
    • Ability for admins to target players.


    Installation:
    Click "Get Plugin" at the bottom of this post and install to /addons/sourcemod/plugins/



    Command/CVar List:
    voicepitch_dig_version
    Do NOT Touch.

    sm_voice (Default Flag: b or GENERIC)
    Command to set pitch value

    sm_voicepitch_access (Default Flag: d or BAN)
    Override to be considered an admin to plugin. Gives full range of pitch,
    and access to the command when sm_voicepitch_enabled is 2.
    Additionally grants access to targeting with sm_voice.

    sm_voicepitch_enabled (Default Value: 1)
    0 - Disabled
    1 - Enabled
    2 - Admin-only

    sm_voicepitch_max (Default Value: 200)
    The maximum value players with access to sm_voice, but without access to sm_voicepitch_access can use.

    sm_voicepitch_min (Default Value: 50)
    The minimum value players with access to sm_voice, but without access to sm_voicepitch_access can use.

    Changelog:

    Code:
    * v1.0 - Initial Release.
    * v1.1 - Added Admin Targeting.
    * v1.1.1 - Fixed Translation files. Fixed Targeting text.



    Known 'Bugs':

    • Min/Max Values will 'lock' the command if there is no positive difference between them. (i.e Max = 30 and Min = 200).


    Disclaimer:
    I'm still a newb programmer, so don't expect flawless code.
    I have, however, tested it thoroughly and found no major problems.

    Attached Files
    File Type: sp Get Plugin or Get Source (voicepitch.sp - 2638 views - 5.4 KB)

    Last edited by SirDigby; 03-05-2016 at 02:02. Reason: v1.1.1 - Fixed Translation files. Fixed Targeting text.
    SirDigby is offline
    The enigma
    Member
    Join Date: Feb 2016
    Old 03-01-2016 , 23:01   Re: [TF2] Voice Commands Pitch (v1.0)
    Reply With Quote #2

    I luv it
    The enigma is offline
    SmackDaddy
    Veteran Member
    Join Date: Oct 2009
    Old 03-25-2016 , 17:51   Re: [TF2] Voice Commands Pitch (v1.1.1)
    Reply With Quote #3

    I see the min and max values but what is the default value things begin with so one can restore someone's pitch to the correct value?
    SmackDaddy is offline
    SirDigby
    Junior Member
    Join Date: Feb 2016
    Old 04-01-2016 , 20:44   Re: [TF2] Voice Commands Pitch (v1.1.1)
    Reply With Quote #4

    Quote:
    Originally Posted by SmackDaddy View Post
    I see the min and max values but what is the default value things begin with so one can restore someone's pitch to the correct value?
    I'm assuming you're asking how to set it to default with the in-game command.
    The values are measured in percentages. So the default is 100%.
    Additionally, if you do not specify a percentage, it will set it to default.

    Last edited by SirDigby; 04-01-2016 at 20:49.
    SirDigby is offline
    cheeto1
    Junior Member
    Join Date: May 2016
    Old 05-15-2016 , 13:44   Re: [TF2] Voice Commands Pitch (v1.1.1)
    Reply With Quote #5

    Very nice plugin
    cheeto1 is offline
    lugui
    Senior Member
    Join Date: Feb 2016
    Location: GetClientAbsOrigin();
    Old 04-04-2017 , 18:38   Re: [TF2] Voice Commands Pitch (v1.1.1)
    Reply With Quote #6

    I removed the sm_voicepitch_access cvar.
    Attached Files
    File Type: smx voicepitch.smx (6.5 KB, 271 views)
    File Type: sp Get Plugin or Get Source (voicepitch.sp - 1168 views - 5.2 KB)
    lugui 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 15:32.


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