AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] VoiceannounceEX (VoiceHook) [Updated 20-Dec-2022] (https://forums.alliedmods.net/showthread.php?t=245384)

Franc1sco 08-01-2014 03:32

[ANY] VoiceannounceEX (VoiceHook) [Updated 20-Dec-2022]
 
Description:

Plugin for hook voice chat with a easy API for developers.

This plugin has become very popular so I decided to release it in a new topic for give it a better support and add my new version of this plugin that have CS:GO support, a new native and some others changes.


Requeriments:

DHooks


Natives:
Code:

/**
 *
 * Checks whether a client is speaking or not.
 *
 * @param client        The client index to check against.
 *
 * @error                        Client is not valid, ingame, or client is a bot.
 *
 * @return                        True if client is speaking, false otherwise.
 *
 */

native bool IsClientSpeaking(int client);

/**
 *
 * Called while a client is speaking.
 *
 *        @param client        Client index.
 *
 * @noreturn
 *
 */

forward void OnClientSpeakingEx(int client);

/**
 *
 * Called when a client ends speaking.
 *
 * @param client        Client index.
 *
 * @noreturn
 *
 */
forward void OnClientSpeakingEnd(int client);


Plugins that currently use this API:

Voice Amount Anti-lag
Jail Captain
TF2Jail


Credits:

GoD-Tony - for the compatibily with CSS, TF2 and l4d2
Mini - For make code that implement it with natives


Donations (optional):

If you apreciate my work, you can donate me via paypal or with a trade offer


Download:

Main repository
Direct download
Code changes

robotortoise 08-01-2014 03:42

Re: [ANY] VoiceannounceEX (VoiceHook)
 
Awesome!

I'm assuming this supports the new TF2 codec, right?

Franc1sco 08-01-2014 03:48

Re: [ANY] VoiceannounceEX (VoiceHook)
 
Quote:

Originally Posted by robotortoise (Post 2177175)
Awesome!

I'm assuming this supports the new TF2 codec, right?

Mmmm no idea because I dont test it in TF2, but surely works in CS:S and CS:GO

robotortoise 08-01-2014 03:51

Re: [ANY] VoiceannounceEX (VoiceHook)
 
Quote:

Originally Posted by Franc1sco (Post 2177179)
Mmmm no idea because I dont test it in TF2, but surely works in CS:S and CS:GO

Well it's the same codec, right? The "sv_use_steam_voice" cvar.

Zephyrus 08-01-2014 07:30

Re: [ANY] VoiceannounceEX (VoiceHook)
 
this doesnt support any kind of codecs and likely it never will without an extension. by september ill release my voicehook that will have support for both speex and steam voice without 3rd party libraries and it will serve as a drop-in replacement for asherkin's voicehook

Franc1sco 08-01-2014 11:34

Re: [ANY] VoiceannounceEX (VoiceHook)
 
Ok, will be good, while, they can using my plugin :)

robotortoise 08-01-2014 15:11

Re: [ANY] VoiceannounceEX (VoiceHook)
 
Quote:

Originally Posted by Zephyrus (Post 2177254)
this doesnt support any kind of codecs and likely it never will without an extension. by september ill release my voicehook that will have support for both speex and steam voice without 3rd party libraries and it will serve as a drop-in replacement for asherkin's voicehook

Yay thank you

n3v3r23 08-02-2014 08:21

Re: [ANY] VoiceannounceEX (VoiceHook)
 
thanks Franc1sco really nice job :D
i was searching for something like that 3 months :D
and waiting for more awesome plugins from you :D

splewis 08-02-2014 13:09

Re: [ANY] VoiceannounceEX (VoiceHook)
 
Interesting, I might use this as a way to detect mic spam (i.e. playing music) on my servers.

Thanks!

robotortoise 08-02-2014 14:49

Re: [ANY] VoiceannounceEX (VoiceHook)
 
Quote:

Originally Posted by splewis (Post 2177917)
Interesting, I might use this as a way to detect mic spam (i.e. playing music) on my servers.

Thanks!

Ironically, I was planning on using this plugin to make sure micspam on my servers was regulated.

Heh.


All times are GMT -4. The time now is 12:07.

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