1.1 --- a/plugins/include/sdktools_voice.inc Fri Mar 28 06:21:34 2008 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,85 +0,0 @@
1.4 -/**
1.5 - * vim: set ts=4 :
1.6 - * =============================================================================
1.7 - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
1.8 - * =============================================================================
1.9 - *
1.10 - * This file is part of the SourceMod/SourcePawn SDK.
1.11 - *
1.12 - * This program is free software; you can redistribute it and/or modify it under
1.13 - * the terms of the GNU General Public License, version 3.0, as published by the
1.14 - * Free Software Foundation.
1.15 - *
1.16 - * This program is distributed in the hope that it will be useful, but WITHOUT
1.17 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.18 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1.19 - * details.
1.20 - *
1.21 - * You should have received a copy of the GNU General Public License along with
1.22 - * this program. If not, see <http://www.gnu.org/licenses/>.
1.23 - *
1.24 - * As a special exception, AlliedModders LLC gives you permission to link the
1.25 - * code of this program (as well as its derivative works) to "Half-Life 2," the
1.26 - * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
1.27 - * by the Valve Corporation. You must obey the GNU General Public License in
1.28 - * all respects for all other code used. Additionally, AlliedModders LLC grants
1.29 - * this exception to all derivative works. AlliedModders LLC defines further
1.30 - * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
1.31 - * or <http://www.sourcemod.net/license.php>.
1.32 - *
1.33 - * Version: $Id$
1.34 - */
1.35 -
1.36 -#if defined _sdktools_voice_included
1.37 - #endinput
1.38 -#endif
1.39 -#define _sdktools_voice_included
1.40 -
1.41 -/**
1.42 - * @section voice flags.
1.43 - */
1.44 -#define VOICE_NORMAL 0 /**< Allow the client to listen and speak normally. */
1.45 -#define VOICE_MUTED 1 /**< Mutes the client from speaking to everyone. */
1.46 -#define VOICE_SPEAKALL 2 /**< Allow the client to speak to everyone. */
1.47 -#define VOICE_LISTENALL 4 /**< Allow the client to listen to everyone. */
1.48 -#define VOICE_TEAM 8 /**< Allow the client to always speak to team, even when dead. */
1.49 -#define VOICE_LISTENTEAM 16 /**< Allow the client to always hear teammates, including dead ones. */
1.50 -
1.51 -/**
1.52 - * @endsection
1.53 - */
1.54 -
1.55 -/**
1.56 - * Set the client listening flags.
1.57 - *
1.58 - * @param client The client index
1.59 - * @param flags The voice flags
1.60 - * @noreturn
1.61 - */
1.62 -native SetClientListeningFlags(client, flags);
1.63 -
1.64 -/**
1.65 - * Retrieve the client current listening flags.
1.66 - *
1.67 - * @param client The client index
1.68 - * @return The current voice flags
1.69 - */
1.70 -native GetClientListeningFlags(client);
1.71 -
1.72 -/**
1.73 - * Set the receiver ability to listen to the sender.
1.74 - *
1.75 - * @param iReceiver The listener index.
1.76 - * @param iSender The sender index.
1.77 - * @return True if successful otherwise false.
1.78 - */
1.79 -native bool:SetClientListening(iReceiver, iSender, bool:bListen);
1.80 -
1.81 -/**
1.82 - * Retrieves if the receiver can listen to the sender.
1.83 - *
1.84 - * @param iReceiver The listener index.
1.85 - * @param iSender The sender index.
1.86 - * @return True if successful otherwise false.
1.87 - */
1.88 -native bool:GetClientListening(iReceiver, iSender);
1.89 \ No newline at end of file