plugins/include/sdktools_voice.inc
author Phong Dang <teame06@gmail.com>
Wed Aug 01 04:17:36 2007 +0000 (2007-08-01)
changeset 1235 88bb46f9731e
child 1247 26e4ba1e6cd2
permissions -rw-r--r--
Implemented requested amb603. Added voice natives.
teame06@1235
     1
/**
teame06@1235
     2
 * vim: set ts=4 :
teame06@1235
     3
 * ===============================================================
teame06@1235
     4
 * SourceMod (C)2004-2007 AlliedModders LLC.  All rights reserved.
teame06@1235
     5
 * ===============================================================
teame06@1235
     6
 *
teame06@1235
     7
 *  This file is part of the SourceMod/SourcePawn SDK.  This file may only be used 
teame06@1235
     8
 * or modified under the Terms and Conditions of its License Agreement, which is found 
teame06@1235
     9
 * in LICENSE.txt.  The Terms and Conditions for making SourceMod extensions/plugins 
teame06@1235
    10
 * may change at any time.  To view the latest information, see:
teame06@1235
    11
 *   http://www.sourcemod.net/license.php
teame06@1235
    12
 *
teame06@1235
    13
 *
teame06@1235
    14
 */
teame06@1235
    15
teame06@1235
    16
#if defined _sdktools_voice_included
teame06@1235
    17
  #endinput
teame06@1235
    18
#endif
teame06@1235
    19
#define _sdktools_voice_included
teame06@1235
    20
teame06@1235
    21
/**
teame06@1235
    22
 * @section voice flags.
teame06@1235
    23
 */
teame06@1235
    24
#define VOICE_NORMAL		0	/**< Allow the client to listen and speak normally. */
teame06@1235
    25
#define VOICE_MUTED			1	/**< Mutes the client from speaking to everyone. */
teame06@1235
    26
#define VOICE_SPEAKALL		2	/**< Allow the client to speak to everyone. */
teame06@1235
    27
#define VOICE_LISTENALL		4	/**< Allow the client to listen to everyone. */
teame06@1235
    28
 
teame06@1235
    29
/**
teame06@1235
    30
 * @endsection
teame06@1235
    31
 */
teame06@1235
    32
teame06@1235
    33
/**
teame06@1235
    34
 * Set the client listening flags.
teame06@1235
    35
 *
teame06@1235
    36
 * @param client		The client index
teame06@1235
    37
 * @param flags		The voice flags
teame06@1235
    38
 * @noreturn
teame06@1235
    39
 */
teame06@1235
    40
native SetClientListeningFlags(client, flags);
teame06@1235
    41
teame06@1235
    42
/**
teame06@1235
    43
 * Retrieve the client current listening flags.
teame06@1235
    44
 *
teame06@1235
    45
 * @param client		The client index
teame06@1235
    46
 * @return			The current voice flags
teame06@1235
    47
 */
teame06@1235
    48
native GetClientListeningFlags(client);
teame06@1235
    49
teame06@1235
    50
/**
teame06@1235
    51
 * Set the receiver ability to listen to the sender.
teame06@1235
    52
 *
teame06@1235
    53
 * @param iReceiver		The listener index.
teame06@1235
    54
 * @param iSender		The sender index.
teame06@1235
    55
 * @return			True if successful otherwise false.
teame06@1235
    56
 */
teame06@1235
    57
native bool:SetClientListening(iReceiver, iSender, bool:bListen);
teame06@1235
    58
teame06@1235
    59
/**
teame06@1235
    60
 * Retrieves if the receiver can listen to the sender.
teame06@1235
    61
 *
teame06@1235
    62
 * @param iReceiver		The listener index.
teame06@1235
    63
 * @param iSender		The sender index.
teame06@1235
    64
 * @return			True if successful otherwise false.
teame06@1235
    65
 */
teame06@1235
    66
native bool:GetClientListening(iReceiver, iSender);