Raised This Month: $ Target: $400
 0% 

Delete this


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 10-03-2010 , 22:08   Delete this
Reply With Quote #1

Please visit:
http://forums.alliedmods.net/showthread.php?t=177177

Last edited by alongub; 01-28-2012 at 21:07.
alongub is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 10-05-2010 , 09:38   Re: Voice Radius (v1.0, 10/04/2010)
Reply With Quote #2

Optimized the plugin a bit.

Last edited by alongub; 01-28-2012 at 19:59.
alongub is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 10-06-2010 , 00:47   Re: Voice Radius (v1.0, 10/04/2010)
Reply With Quote #3

I think this is a neat idea and someone will surely find it useful.

A problem on larger servers (32+) is when many people are using voice chat at the time. This helps with that issue, but I would prefer something that allows users to join different "mic channels" similar to Ventrilo or Teamspeak.

I know this might be unrelated to to the real point of this plugin, but I thought I would throw that idea out there. Especially since it would use the same sdktools functions.
GoD-Tony is offline
PieOnEar
Member
Join Date: Jul 2010
Old 10-07-2010 , 15:50   Re: Voice Radius (v1.0, 10/04/2010)
Reply With Quote #4

You should replace "speaker" with "the person who is speaking" in the description for clarification
PieOnEar is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 10-18-2010 , 04:45   Re: Voice Radius (v1.0, 10/04/2010)
Reply With Quote #5

Fixed.
alongub is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 10-25-2010 , 09:28   Re: Voice Radius (v1.0, 10/04/2010)
Reply With Quote #6

Why doesn't it get approved?

Last edited by alongub; 01-28-2012 at 20:00.
alongub is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-25-2010 , 11:57   Re: Voice Radius (v1.0, 10/04/2010)
Reply With Quote #7

There are loads of plugins to be looked through, give the appovers time.

Also looking through your code, you should probably store the following in a global Float: g_hDeadVoiceRadius since you call it every 0.2 seconds in a timer. There are other Convars you could store to global variables and only update them when they are changed with HookConVarChange.

GetEntitiesDistance returns a Float which you are checking against the integer variable 'distance'. Mismatch on this?

There are two warnings, tag mismatch on lines 111 and 115.

SetListenOverride(receiver, sender, GetEntitiesDistance(receiver, sender) > distance).

Now I've not used this, but looking here and at other projects, I think you're not usng SetListenOverride correctly. The third parameter should be this:

enum ListenOverride
{
Listen_Default = 0, /**< Leave it up to the game */
Listen_No, /**< Can't hear */
Listen_Yes, /**< Can hear */
};
__________________
Silvers is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 08-12-2011 , 18:07   Re: Voice Radius (v1.0, 10/04/2010)
Reply With Quote #8

The above errors need to be addressed.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys 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 14:17.


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