Raised This Month: $32 Target: $400
 8% 

[ANY] Voice Radius


Post New Thread Reply   
 
Thread Tools Display Modes
Author
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Plugin ID:
2789
Plugin Version:
1.0.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Forces voice communication only to players within a certain radius of the person who is speaking.
    Old 01-28-2012 , 20:35   [ANY] Voice Radius
    Reply With Quote #1

    Voice Radius

    This plugin forces voice communication only to players within a certain radius of the the person who is speaking, which makes it so you cannot communicate to players accross the map; but rather within "speaking range," which is a distance defined in a cvar. It also allows you to set whether or not live players can hear dead players and vice versa, and allows you to set whether live/dead players can hear their opposite team players.

    Cvars
    • sm_voiceradius_live_distance - Sets the distance voices can be transmitted between alive players. 0 to disable.
    • sm_voiceradius_live_heardeadplayers - Sets whether live players can hear dead players
    • sm_voiceradius_live_alltalk - Sets whether live players can hear the opposite team players
    • sm_voiceradius_dead_distance - Sets the distance voices can be transmitted between dead players. 0 to disable.
    • sm_voiceradius_dead_hearliveplayers - Sets whether dead players can hear live players
    • sm_voiceradius_dead_alltalk - Sets whether live players can hear the opposite team players
    Change Log

    1.0.1 (12 August 2012)
    • GetMaxClients => MaxClients
    • GetEntDataVector => GetEntPropVector
    • Better Timer_UpdateListeners loop nesting
    • Better Cvar handling
    1.0.0 (29 January 2012)
    • Initial Release
    Attached Files
    File Type: sp Get Plugin or Get Source (voiceradius.sp - 2564 views - 5.0 KB)
    __________________

    Last edited by alongub; 02-01-2013 at 20:47.
    alongub is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 01-28-2012 , 21:50   Re: Voice Radius
    Reply With Quote #2

    Wow nice stuff, shame I don't really have a server this would be good to use on though >_<
    Snaggle is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 04-24-2012 , 16:19   Re: Voice Radius
    Reply With Quote #3

    thank you alon!
    awesome plugin!
    its like on gmod rp servers.
    __________________
    retired
    shavit is offline
    asherkin
    SourceMod Developer
    Join Date: Aug 2009
    Location: OnGameFrame()
    Old 08-11-2012 , 18:45   Re: [ANY] Voice Radius
    Reply With Quote #4

    Code:
    new maxplayers = GetMaxClients();
    Just use the MaxClients dynamic variable.

    Code:
    new orig = FindSendPropOffs("CBaseEntity", "m_vecOrigin");
    
    GetEntDataVector(ent1, orig, orig1);
    GetEntDataVector(ent2, orig, orig2);
    Should be GetEntPropVector.

    You also might want to consider restructuring some of the for loop with continue statements, to avoid so much nesting.
    __________________
    asherkin is offline
    alongub
    Veteran Member
    Join Date: Aug 2009
    Location: Israel
    Old 08-12-2012 , 02:26   Re: [ANY] Voice Radius
    Reply With Quote #5

    Thanks!

    1.0.1 (12 August 2012)
    • GetMaxClients => MaxClients
    • GetEntDataVector => GetEntPropVector
    • Better Timer_UpdateListeners loop nesting
    • Better Cvar handling
    alongub is offline
    PreFix
    BANNED
    Join Date: Sep 2011
    Old 08-12-2012 , 11:14   Re: [ANY] Voice Radius
    Reply With Quote #6

    Awesome plugin!Nice job!
    PreFix is offline
    Send a message via Skype™ to PreFix
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 08-12-2012 , 11:22   Re: [ANY] Voice Radius
    Reply With Quote #7

    I used to have a snippet some where to print in hint text to use with this plugin to show who is in range to hear you. But im not sure where it's at.
    Mitchell is offline
    PreFix
    BANNED
    Join Date: Sep 2011
    Old 08-21-2012 , 08:27   Re: [ANY] Voice Radius
    Reply With Quote #8

    Yeah, you should make text who are hearing you.
    PreFix is offline
    Send a message via Skype™ to PreFix
    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:21.


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