sm-ext-voice/package/addons/sourcemod/scripting/include/Voice.inc
Maxime Leroy 1b5b2112eb
Some checks failed
Build AlliedModders Extension / build-release-extension (push) Has been cancelled
fix: update build system, drop csgo build, win support, latest sdk (#15)
2025-03-09 17:33:23 +01:00

42 lines
711 B
SourcePawn

#if defined _Voice_included
#endinput
#endif
#define _Voice_included
/**
*
* 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 IsClientTalking(int client);
public Extension __ext_Voice =
{
name = "Voice",
file = "Voice.ext",
#if defined AUTOLOAD_EXTENSIONS
autoload = 1,
#else
autoload = 0,
#endif
#if defined REQUIRE_EXTENSIONS
required = 1,
#else
required = 0,
#endif
};
#if !defined REQUIRE_EXTENSIONS
public void __ext_Voice_SetNTVOptional()
{
MarkNativeAsOptional("IsClientTalking");
}
#endif