sdktools_voice: implement ClientSpeaking forwards (#1247)
* Update basevotes When a player leaves during a voteban, he will be banned anyway. Also added a cvar with a ban time setting. * Update basevotes.sp * Added VoiceHook functions * Update extension.h * Update extension.h * Code optimization * Added support for more engines * Invalidate timers * Fixes * Update extension.cpp * Update voice.cpp * correct Forward event type to ET_Ignore. * sdktools_voice: de-implement IsClientSpeaking * sdktools_voice: Add notice/unbind IsClientSpeaking Co-authored-by: Kyle Sanderson <[email protected]>
This commit is contained in:
co-authored by
Kyle Sanderson
parent
031f80f6e1
commit
1b86c8564d
@@ -56,6 +56,20 @@ enum ListenOverride
|
||||
Listen_Yes /**< Can hear */
|
||||
};
|
||||
|
||||
/**
|
||||
* Called when a client is speaking.
|
||||
*
|
||||
* @param client The client index
|
||||
*/
|
||||
forward void OnClientSpeaking(int client);
|
||||
|
||||
/**
|
||||
* Called once a client speaking end.
|
||||
*
|
||||
* @param client The client index
|
||||
*/
|
||||
forward void OnClientSpeakingEnd(int client);
|
||||
|
||||
/**
|
||||
* Set the client listening flags.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user