AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Voice Radius (https://forums.alliedmods.net/showthread.php?t=170297)

nikhilgupta345 10-22-2011 18:30

Voice Radius
 
5 Attachment(s)
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

Xalus 10-22-2011 19:50

Re: Voice Radius
 
Funny idea.

But SetClientListening should be better coded..

PHP Code:

if( !bSenderAlive )
    {

}
else {



Could be combinated to one.

Emp` 10-22-2011 20:41

Re: Voice Radius
 
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.

nikhilgupta345 10-22-2011 21:06

Re: Voice Radius
 
Quote:

Originally Posted by Xalus (Post 1581555)
Funny idea.

But SetClientListening should be better coded..

PHP Code:

if( !bSenderAlive )
    {

}
else {



Could be combinated to one.

How?

Quote:

Originally Posted by Emp` (Post 1581576)
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.

Bugsy 10-22-2011 22:41

Re: Voice Radius
 
Quote:

Originally Posted by nikhilgupta345 (Post 1581587)
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.

nikhilgupta345 10-23-2011 01:52

Re: Voice Radius
 
Quote:

Originally Posted by Bugsy (Post 1581607)
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.

4ever16 06-23-2015 11:08

Re: Voice Radius
 
  • 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?

Cd5ssmffan 02-24-2017 16:28

Re: Voice Radius
 
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.

nikhilgupta345 02-26-2017 16:11

Re: Voice Radius
 
Quote:

Originally Posted by Cd5ssmffan (Post 2498179)
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.

MagnetiC 02-27-2017 13:20

Re: Voice Radius
 
Very good :)


All times are GMT -4. The time now is 06:02.

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