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:
Accelerator74
2020-08-18 06:02:34 -07:00
committed by GitHub
co-authored by Kyle Sanderson
parent 031f80f6e1
commit 1b86c8564d
7 changed files with 230 additions and 2 deletions
+14
View File
@@ -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.
*