Updated compiler and incude files from SourceMod 1.2.0.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* vim: set ts=4 :
|
||||
* =============================================================================
|
||||
* SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
|
||||
* SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved.
|
||||
* =============================================================================
|
||||
*
|
||||
* This file is part of the SourceMod/SourcePawn SDK.
|
||||
@@ -27,7 +27,7 @@
|
||||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
|
||||
* or <http://www.sourcemod.net/license.php>.
|
||||
*
|
||||
* Version: $Id: sdktools_voice.inc 2163 2008-05-21 03:31:27Z dvander $
|
||||
* Version: $Id$
|
||||
*/
|
||||
|
||||
#if defined _sdktools_voice_included
|
||||
@@ -39,15 +39,11 @@
|
||||
* @section voice flags.
|
||||
*/
|
||||
#define VOICE_NORMAL 0 /**< Allow the client to listen and speak normally. */
|
||||
#define VOICE_MUTED 1 /**< Mutes the client from speaking to everyone. */
|
||||
#define VOICE_MUTED 1 /**< Mutes the client from speaking to everyone. */
|
||||
#define VOICE_SPEAKALL 2 /**< Allow the client to speak to everyone. */
|
||||
#define VOICE_LISTENALL 4 /**< Allow the client to listen to everyone. */
|
||||
#define VOICE_TEAM 8 /**< Allow the client to always speak to team, even when dead. */
|
||||
#define VOICE_TEAM 8 /**< Allow the client to always speak to team, even when dead. */
|
||||
#define VOICE_LISTENTEAM 16 /**< Allow the client to always hear teammates, including dead ones. */
|
||||
|
||||
#define LISTEN_DEFAULT 0 /**< Default action (flags or game) is taken */
|
||||
#define LISTEN_NO 1 /**< Receiver cannot hear sender */
|
||||
#define LISTEN_YES 2 /**< Receiver can hear sender */
|
||||
|
||||
/**
|
||||
* @endsection
|
||||
@@ -57,7 +53,7 @@
|
||||
* Set the client listening flags.
|
||||
*
|
||||
* @param client The client index
|
||||
* @param flags The voice flags
|
||||
* @param flags The voice flags
|
||||
* @noreturn
|
||||
*/
|
||||
native SetClientListeningFlags(client, flags);
|
||||
@@ -66,27 +62,24 @@ native SetClientListeningFlags(client, flags);
|
||||
* Retrieve the client current listening flags.
|
||||
*
|
||||
* @param client The client index
|
||||
* @return The current voice flags
|
||||
* @return The current voice flags
|
||||
*/
|
||||
native GetClientListeningFlags(client);
|
||||
|
||||
/**
|
||||
* Set the receiver's ability to listen to the sender.
|
||||
* Set the receiver ability to listen to the sender.
|
||||
*
|
||||
* @param receiver The listener client index.
|
||||
* @param sender The sender client index.
|
||||
* @param control A LISTEN_ constant describing the voice relationship.
|
||||
* @noreturn
|
||||
* @error If either client index is invalid or not connected.
|
||||
* @param iReceiver The listener index.
|
||||
* @param iSender The sender index.
|
||||
* @return True if successful otherwise false.
|
||||
*/
|
||||
native bool:SetClientListening(receiver, sender, control);
|
||||
native bool:SetClientListening(iReceiver, iSender, bool:bListen);
|
||||
|
||||
/**
|
||||
* Retrieves if a receiver can listen to the sender.
|
||||
* Retrieves if the receiver can listen to the sender.
|
||||
*
|
||||
* @param receiver The listener client index.
|
||||
* @param sender The sender client index.
|
||||
* @return A LISTEN_ constant describing the voice relationship.
|
||||
* @error If either client index is invalid or not connected.
|
||||
* @param iReceiver The listener index.
|
||||
* @param iSender The sender index.
|
||||
* @return True if successful otherwise false.
|
||||
*/
|
||||
native bool:GetClientListening(receiver, sender);
|
||||
native bool:GetClientListening(iReceiver, iSender);
|
||||
Reference in New Issue
Block a user