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

[Dystopia/ANY] Separate Team and Global Voice Chat (2-17-2016, v1.0.0r3)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
dysemjay
Junior Member
Join Date: Nov 2015
Plugin ID:
5012
Plugin Version:
1.0.0r3
Plugin Category:
General Purpose
Plugin Game:
Dystopia
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Plugin to provide separate options for team and global voice chat.
    Old 01-20-2016 , 06:23   [Dystopia/ANY] Separate Team and Global Voice Chat (2-17-2016, v1.0.0r3)
    Reply With Quote #1

    This plugin is intended to provide separate options for team and global voice chat. It has only been tested in Dystopia, however I think it should work for many other games, as it does not have any features targeted specifically to Dystopia.

    It creates the following commands:
    Code:
    +voicealt
    -voicealt
    
    +voiceteam
    -voiceteam
    
    +voiceglobal
    -voiceglobal
    +voicealt should cause the opposite behavior to sv_alltalk.
    If alltalk is on, +voicealt should cause only team members to be able to hear you.
    If alltalk is off, +voicealt should cause everyone to be able to hear you.

    +voiceteam should cause only team members to be able to hear you.

    +voiceglobal should cause everyone to be able to hear you.


    The general intended behavior of these commands is that if one is turned "on", while another has already been turned "on", then the final result would be equivalent to, turning the former command off, and then turning the latter command on.

    An example is: entering "+voicealt", then entering "+voiceteam". The result would be equivalent to: entering "+voicealt", then "-voicealt", and finally, "+voiceteam".

    Each of the "off" commands (-voicealt, -voiceglobal, -voiceteam), should only work with its respective, "on" command. (+voicealt, +voiceglobal, +voiceteam). For example: entering "+voicealt", then "-voiceteam", should not change the current behavior, of "+voicealt".

    Sample binds may be found zipped with this release.


    Other features:

    - Compatibility with the SourceMod muting functionality.
    Specifically, the muting functionality provided by the basecomm plugin should still work. The plugin should still track if one of the commands provided by this plugin is "on", when a player is unmuted, and resume the normal function of that command.

    - Detecting change of sv_alltalk.
    The plugin should detect the change of the sv_alltalk ConVar, and automatically readjust its behavior, so that if any of the commands created by it are being used, they should still function correctly.

    - Detecting team changes.
    The plugin should automatically recalculate which players may hear each other, on team change, if necessary.


    Compiling instructions:

    Ensure that the following directory structure is present:

    ./SeparateTeamGlobalVoice/actions.sp
    ./SeparateTeamGlobalVoice/interface.sp
    ./SeparateTeamGlobalVoice.sp

    Note that the name of SeparateTeamGlobalVoice.sp may be changed. This should be already be present in the included zip file, so you may simply, extract to the scripting directory of your sourcemod installation, and do the following in Windows:

    Code:
    spcomp.exe SeparateTeamGlobalVoice<version>\SeparateTeamGlobalVoice.sp
    or in Linux:

    Code:
    ./spcomp SeparateTeamGlobalVoice<version>/SeparateTeamGlobalVoice.sp
    The compiled plugin should be in the current directory.

    You may use the "-o" option to specify an output path for the file. There must NOT be a space between -o and its respective option.
    Ex:
    Code:
    ./spcomp SeparateTeamGlobalVoice<version>/SeparateTeamGlobalVoice.sp -ocompiled/SeparateTeamGlobalVoice<version>.smx
    Changelog:
    Code:
    2-17-2016 (v1.0.0r3)
    
    * Fixed a typo in a comment in actions.sp. Should be functionally identical.
    
    1-20-2016 (v1.0.0r2)
    
    * Initial Release.
    Attached Files
    File Type: zip SeparateTeamGlobalVoice1.0.0r3.zip (6.6 KB, 94 views)

    Last edited by dysemjay; 03-30-2016 at 18:49. Reason: Capitalize "linux".
    dysemjay is offline
    Reply



    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 20:52.


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