Raised This Month: $52 Target: $400
 13% 

[ANY] VoiceHook


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Accelerator74
AlliedModders Donor
Join Date: Dec 2010
Location: Russia
Old 02-18-2016 , 11:18   [ANY] VoiceHook
Reply With Quote #1

This extension adds a function of capture events the player who at the moment speak.

Functions:
Code:
/**
 * Called when a client is speaking.
 *
 * @param client        Client index.
 */
forward void OnClientSpeaking(int client);

/**
 * Called once a client speaking end.
 *
 * @param client        Client index.
 */
forward void OnClientSpeakingEnd(int client);

/**
 * Called once a client speaking start.
 *
 * @param client        Client index.
 */
forward void OnClientSpeakingStart(int client);

/**
 * Returns if a certain player is speaking.
 *
 * @param client        Client index.
 * @return              True if player is speaking, false otherwise.
 * @error               Invalid client index.
 */
native bool IsClientSpeaking(int client);
https://github.com/Accelerator74/VoiceHook

Last edited by Accelerator74; 11-06-2019 at 12:01.
Accelerator74 is offline
Send a message via ICQ to Accelerator74
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 02-18-2016 , 12:13   Re: [L4D/L4D2/CS:GO] VoiceHook
Reply With Quote #2

This plugin does the same that your extension -> https://forums.alliedmods.net/showthread.php?t=245384

And now I updated the gamedata for update support for L4D and L4D2 -> https://forums.alliedmods.net/showpo...5&postcount=47
__________________
Veteran SourceMod Coder -> Activity channel
I am available for participate on communities for free -> INFO

You like my work? Drop a +Rep in my steam profile comments

Franc1sco is offline
Send a message via MSN to Franc1sco
fbef0102
Member
Join Date: Sep 2017
Location: TW
Old 09-25-2019 , 12:30   Re: [L4D/L4D2/CS:GO] VoiceHook
Reply With Quote #3

l4d2 windows dedicated server not work
PHP Code:
status
version 
2.1.5.5 7227 secure  (unknown)
os      Windows Dedicated

sourcemod_version
"sourcemod_version" "1.8.0.5977"

sm exts list
<
FAILEDfile "voicehook.ext.dll"Could not find interface: IForwardManager 
__________________

Last edited by fbef0102; 09-25-2019 at 12:31.
fbef0102 is offline
Accelerator74
AlliedModders Donor
Join Date: Dec 2010
Location: Russia
Old 09-25-2019 , 13:04   Re: [L4D/L4D2/CS:GO] VoiceHook
Reply With Quote #4

Update sourcemod.
__________________
Accelerator74 is offline
Send a message via ICQ to Accelerator74
fbef0102
Member
Join Date: Sep 2017
Location: TW
Old 09-26-2019 , 09:19   Re: [L4D/L4D2/CS:GO] VoiceHook
Reply With Quote #5

Quote:
Originally Posted by Accelerator74 View Post
Update sourcemod.
I updated sm 1.9 and the SpeakingList.smx from here https://core-ss.org/forum/threads/207/#post-10721
all works fine
PHP Code:
sm exts list
[
08VoiceHook (2.0): Hook when player is speak.

sm plugins list
18 "SpeakingList" (1.4by Accelerator 
But still no any CenterText "Players Speaking: xxxx...."
it seems that L4D2 OnClientSpeaking gamedata is borken

PHP Code:
public OnClientSpeaking(client)
{
    
ClientSpeakingTime[client] = true;
    
PrintToChatAll("%N is now speaking",client);//server never prints this line

__________________

Last edited by fbef0102; 09-26-2019 at 09:19.
fbef0102 is offline
Accelerator74
AlliedModders Donor
Join Date: Dec 2010
Location: Russia
Old 09-26-2019 , 13:20   Re: [L4D/L4D2/CS:GO] VoiceHook
Reply With Quote #6

It's bug latest game update.
Wait fix from Valve or use engine_srv from previous game update.
__________________
Accelerator74 is offline
Send a message via ICQ to Accelerator74
foxhound27
Member
Join Date: Sep 2019
Old 11-04-2019 , 12:56   Re: [L4D/L4D2/CS:GO] VoiceHook
Reply With Quote #7

Quote:
Originally Posted by Accelerator74 View Post
It's bug latest game update.
Wait fix from Valve or use engine_srv from previous game update.

Hello Accelerator! this may help to fix the issue

somehow this works for me now ive placed these old voice/dhooks files and its working now bro

after many test turns out that even dhooks detour not working and voicehook ext too im so lost now but here


Im using (linux)

Quote:
Metamod:Source version 1.10.7-dev
Quote:
SourceMod Version: 1.10.0.6451
Attached Images
File Type: jpg wtf.jpg (95.9 KB, 14 views)
Attached Files
File Type: zip fix4nowsl4d2.zip (500.3 KB, 7 views)

Last edited by foxhound27; 11-06-2019 at 23:10. Reason: GAME L4D2
foxhound27 is offline
Accelerator74
AlliedModders Donor
Join Date: Dec 2010
Location: Russia
Old 11-05-2019 , 01:12   Re: [L4D/L4D2/CS:GO] VoiceHook
Reply With Quote #8

Offset is used here CGameClient:: ProcessVoiceData. This extension uses MetaMod's standard ClientVoice event function internally and does not require gamedata. However, the ClientVoice hook does not currently work, as does the OnVoiceTransmit offset in the current version of Voiceannounce_ex. May need to wait for a Metamod or hl2sdk-l4d2 update to make the ClientVoice hook work again.
__________________

Last edited by Accelerator74; 11-05-2019 at 01:13.
Accelerator74 is offline
Send a message via ICQ to Accelerator74
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 11-06-2019 , 01:04   Re: [L4D/L4D2/CS:GO] VoiceHook
Reply With Quote #9

Hi, Accelerator74, thank you for the excellent extension.

How difficult is to add OnClientSpeakingEnd forward?

This is required for reducing ambient sounds.
__________________
Expert of CMD/VBS/VB6. Malware analyst.
[My plugins] [My tools] [GitHub]
Dragokas is offline
Accelerator74
AlliedModders Donor
Join Date: Dec 2010
Location: Russia
Old 11-06-2019 , 01:53   Re: [L4D/L4D2/CS:GO] VoiceHook
Reply With Quote #10

I will try to do this in the next version, while you can use as an example from the first post.
__________________
Accelerator74 is offline
Send a message via ICQ to Accelerator74
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:59.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode