Raised This Month: $32 Target: $400
 8% 

[ANY] VoiceHook


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 02-18-2016 , 10: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 Accelerator; 11-06-2019 at 11:01.
Accelerator is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 02-18-2016 , 11: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 Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 09-25-2019 , 11: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 HarryPotter; 09-25-2019 at 11:31.
HarryPotter is offline
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 09-25-2019 , 12:04   Re: [L4D/L4D2/CS:GO] VoiceHook
Reply With Quote #4

Update sourcemod.
__________________
Accelerator is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 09-26-2019 , 08: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 HarryPotter; 09-26-2019 at 08:19.
HarryPotter is offline
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 09-26-2019 , 12: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.
__________________
Accelerator is offline
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 11-04-2019 , 11: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, 602 views)
Attached Files
File Type: zip fix4nowsl4d2.zip (500.3 KB, 476 views)

Last edited by foxhound27; 11-06-2019 at 22:10. Reason: GAME L4D2
foxhound27 is offline
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 11-05-2019 , 00: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 Accelerator; 11-05-2019 at 00:13.
Accelerator is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-06-2019 , 00: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. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 11-06-2019 , 00: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.
__________________
Accelerator is offline
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 20:02.


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