1.1 --- a/plugins/include/sdktools_voice.inc Mon Sep 07 16:21:48 2009 -0700
1.2 +++ b/plugins/include/sdktools_voice.inc Mon Sep 07 17:09:28 2009 -0700
1.3 @@ -49,6 +49,13 @@
1.4 * @endsection
1.5 */
1.6
1.7 +enum ListenOverride
1.8 +{
1.9 + Listen_Default = 0, /**< Leave it up to the game */
1.10 + Listen_No, /**< Can't hear */
1.11 + Listen_Yes, /**< Can hear */
1.12 +};
1.13 +
1.14 /**
1.15 * Set the client listening flags.
1.16 *
1.17 @@ -73,6 +80,7 @@
1.18 * @param iSender The sender index.
1.19 * @return True if successful otherwise false.
1.20 */
1.21 +#pragma deprecated Use SetListenOverride() instead
1.22 native bool:SetClientListening(iReceiver, iSender, bool:bListen);
1.23
1.24 /**
1.25 @@ -82,4 +90,34 @@
1.26 * @param iSender The sender index.
1.27 * @return True if successful otherwise false.
1.28 */
1.29 -native bool:GetClientListening(iReceiver, iSender);
1.30 \ No newline at end of file
1.31 +#pragma deprecated GetListenOverride() instead
1.32 +native bool:GetClientListening(iReceiver, iSender);
1.33 +
1.34 +/**
1.35 + * Override the receiver's ability to listen to the sender.
1.36 + *
1.37 + * @param iReceiver The listener index.
1.38 + * @param iSender The sender index.
1.39 + * @param override
1.40 + * @return True if successful otherwise false.
1.41 + */
1.42 +native bool:SetListenOverride(iReceiver, iSender, ListenOverride:override);
1.43 +
1.44 +/**
1.45 + * Retrieves the override of the receiver's ability to listen to the sender.
1.46 + *
1.47 + * @param iReceiver The listener index.
1.48 + * @param iSender The sender index.
1.49 + * @return The override value.
1.50 + */
1.51 +native ListenOverride:GetListenOverride(iReceiver, iSender);
1.52 +
1.53 +/**
1.54 + * Retrieves if the muter has muted the mutee.
1.55 + *
1.56 + * @param iMuter The muter index.
1.57 + * @param iMutee The mutee index.
1.58 + * @return True if muter has muted mutee, false otherwise.
1.59 + */
1.60 +native bool:IsClientMuted(iMuter, iMutee);
1.61 +