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

Voice Radius


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        Approver:   Emp` (115)
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-22-2011 , 18:30   Voice Radius
Reply With Quote #1

Voice Radius

By: nikhilgupta345

Description:
This plugin allows you to restrict voice communication between players within a certain radius. Instead of being able totalk to everybody in the server, you can only talk to the people that are close to you.


CVars:
    • vr_alive_distance - Max distance that players can talk to each other.
    • vr_alive_heardeadplayers - Whether or not alive players can hear dead players
    • vr_alive_alltalk - Whether or not alive players can hear the opposite team's players (dead or alive, within vr_alive_distance)
    • vr_dead_hearliveplayers - Whether or not dead players can hear living players
    • vr_dead_alltalk - Whether dead players can hear opposite team's players (dead or alive)
    • vr_admin_allhear - Whether everybody hears an admin or not
    • vr_admin_hearall - Whether an admin hears everybody or not

Installation:
    • Click 'Get Plugin' link below
    • Place 'voice_radius.amxx' in addons/amxmodx/plugins/ folder
    • Open addons/amxmodx/configs/plugins.ini
    • Add the line 'voice_radius.amxx' at the bottom
    • Restart server or change map

Changelog:

  • Code:
    October 22, 2011
    • -v1.0-
      • Initial Release

Credits:
    • alongub @sourcemod section - Found his plugin, and ported it to AMXX
Attached Files
File Type: sma Get Plugin or Get Source (voice_radius.sma - 3613 views - 4.7 KB)
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please

Last edited by nikhilgupta345; 09-13-2015 at 10:54.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 10-22-2011 , 19:50   Re: Voice Radius
Reply With Quote #2

Funny idea.

But SetClientListening should be better coded..

PHP Code:
if( !bSenderAlive )
    {

}
else {


Could be combinated to one.
__________________
Retired.

Last edited by Xalus; 10-22-2011 at 19:55.
Xalus is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 10-22-2011 , 20:41   Re: Voice Radius
Reply With Quote #3

Very nicely done. Adds more features than AMX Voice Proximity and is much more efficient about it.

g_szVersion is only used once through out the plugin, so it would be better to just create it as a define.

I suggest you fix the spacing around line 109, it's an eye sore.

Because you are using cstrike to use cs_get_user_team, you need to change the modification to Counter-Strike.

I'm not sure if you need to use engfunc, if you haven't already tried, I'd try changing the forward_return to false and see if that stops the communication.

Approved, but leaving in New Submissions for people to see it.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-22-2011 , 21:06   Re: Voice Radius
Reply With Quote #4

Quote:
Originally Posted by Xalus View Post
Funny idea.

But SetClientListening should be better coded..

PHP Code:
if( !bSenderAlive )
    {

}
else {


Could be combinated to one.
How?

Quote:
Originally Posted by Emp` View Post
Very nicely done. Adds more features than AMX Voice Proximity and is much more efficient about it.

g_szVersion is only used once through out the plugin, so it would be better to just create it as a define.

I suggest you fix the spacing around line 109, it's an eye sore.

Because you are using cstrike to use cs_get_user_team, you need to change the modification to Counter-Strike.

I'm not sure if you need to use engfunc, if you haven't already tried, I'd try changing the forward_return to false and see if that stops the communication.

Approved, but leaving in New Submissions for people to see it.
Thanks. I didn't realize that spacing got messed up at 109. I was pretty sure it was fine when I uploaded it. Guess I was wrong

I had the modification at Counter-Strike before with category of server management. Not sure why it reset. Fixed anyway.

I'm using engfunc because that's the only way I've seen it done in other plugins, so I just took that part from other plugins. (Well, from one of my previous plugins, which took it from another plugin). I'll look into it.

EDIT: I've seen instances where it works with only engfunc, without the forward_return. I've removed the forward_return and left the engfunc there. If anybody has any problems I'll look further into the problem.

EDIT EDIT: @Emp`, do you have any idea why the majority of my approved plugins are not showing up on www.amxmodx.org? Drekes says the same thing is happening with his.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please

Last edited by nikhilgupta345; 10-22-2011 at 21:17.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-22-2011 , 22:41   Re: Voice Radius
Reply With Quote #5

Quote:
Originally Posted by nikhilgupta345 View Post
EDIT EDIT: @Emp`, do you have any idea why the majority of my approved plugins are not showing up on www.amxmodx.org? Drekes says the same thing is happening with his.
Are the majority of your plugins recent (past few months)? My most recently approved plugin doesn't show up but all my others do. I saw another member (MPNumB) posted a bug report about it which has not gotten any responses yet.
__________________

Last edited by Bugsy; 10-22-2011 at 22:43.
Bugsy is online now
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-23-2011 , 01:52   Re: Voice Radius
Reply With Quote #6

Quote:
Originally Posted by Bugsy View Post
Are the majority of your plugins recent (past few months)? My most recently approved plugin doesn't show up but all my others do. I saw another member (MPNumB) posted a bug report about it which has not gotten any responses yet.
Yea, they are recent. I'm surprised that such a big issue has not yet been addressed.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
4ever16
Veteran Member
Join Date: Apr 2015
Old 06-23-2015 , 11:08   Re: Voice Radius
Reply With Quote #7

  • vr_alive_distance - 100000000
  • vr_alive_heardeadplayers 1
  • vr_alive_alltalk 0
  • vr_dead_hearliveplayers 1
  • vr_dead_alltalk 0
  • vr_admin_allhear 0
  • vr_admin_hearall 0

    The function i want is alive hear dead team8s.
    This works with sv_alltalk 1
    But i alive cant hear alive.

    Fix?
4ever16 is offline
Cd5ssmffan
BANNED
Join Date: Feb 2017
Location: GB
Old 02-24-2017 , 16:28   Re: Voice Radius
Reply With Quote #8

This defeats the purpose of voice comms in the first place. You're communicating over a radio, and your whole team should be able to hear you.
Cd5ssmffan is offline
Send a message via ICQ to Cd5ssmffan Send a message via AIM to Cd5ssmffan Send a message via Yahoo to Cd5ssmffan Send a message via Skype™ to Cd5ssmffan
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 02-26-2017 , 16:11   Re: Voice Radius
Reply With Quote #9

Quote:
Originally Posted by Cd5ssmffan View Post
This defeats the purpose of voice comms in the first place. You're communicating over a radio, and your whole team should be able to hear you.
Then don't use it.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
MagnetiC
Junior Member
Join Date: Feb 2017
Old 02-27-2017 , 13:20   Re: Voice Radius
Reply With Quote #10

Very good
MagnetiC 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 14:50.


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