forgotten commit that was in the pipeline
--HG-- branch : sourcemod-1.0.x extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.0.x%402163
This commit is contained in:
parent
05fa9268a3
commit
68eeff311b
@ -45,6 +45,10 @@
|
|||||||
#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 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
|
* @endsection
|
||||||
*/
|
*/
|
||||||
@ -67,19 +71,22 @@ native SetClientListeningFlags(client, flags);
|
|||||||
native GetClientListeningFlags(client);
|
native GetClientListeningFlags(client);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the receiver ability to listen to the sender.
|
* Set the receiver's ability to listen to the sender.
|
||||||
*
|
*
|
||||||
* @param iReceiver The listener index.
|
* @param receiver The listener client index.
|
||||||
* @param iSender The sender index.
|
* @param sender The sender client index.
|
||||||
* @return True if successful otherwise false.
|
* @param control A LISTEN_ constant describing the voice relationship.
|
||||||
|
* @noreturn
|
||||||
|
* @error If either client index is invalid or not connected.
|
||||||
*/
|
*/
|
||||||
native bool:SetClientListening(iReceiver, iSender, bool:bListen);
|
native bool:SetClientListening(receiver, sender, control);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves if the receiver can listen to the sender.
|
* Retrieves if a receiver can listen to the sender.
|
||||||
*
|
*
|
||||||
* @param iReceiver The listener index.
|
* @param receiver The listener client index.
|
||||||
* @param iSender The sender index.
|
* @param sender The sender client index.
|
||||||
* @return True if successful otherwise false.
|
* @return A LISTEN_ constant describing the voice relationship.
|
||||||
|
* @error If either client index is invalid or not connected.
|
||||||
*/
|
*/
|
||||||
native bool:GetClientListening(iReceiver, iSender);
|
native bool:GetClientListening(receiver, sender);
|
||||||
|
Loading…
Reference in New Issue
Block a user