AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [ANY] VoiceHook (https://forums.alliedmods.net/showthread.php?t=279231)

Accelerator 02-18-2016 10:18

[ANY] VoiceHook
 
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

Franc1sco 02-18-2016 11:13

Re: [L4D/L4D2/CS:GO] VoiceHook
 
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

HarryPotter 09-25-2019 11:30

Re: [L4D/L4D2/CS:GO] VoiceHook
 
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 


Accelerator 09-25-2019 12:04

Re: [L4D/L4D2/CS:GO] VoiceHook
 
Update sourcemod.

HarryPotter 09-26-2019 08:19

Re: [L4D/L4D2/CS:GO] VoiceHook
 
Quote:

Originally Posted by Accelerator74 (Post 2668071)
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



Accelerator 09-26-2019 12:20

Re: [L4D/L4D2/CS:GO] VoiceHook
 
It's bug latest game update.
Wait fix from Valve or use engine_srv from previous game update.

foxhound27 11-04-2019 11:56

Re: [L4D/L4D2/CS:GO] VoiceHook
 
2 Attachment(s)
Quote:

Originally Posted by Accelerator74 (Post 2668132)
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

Accelerator 11-05-2019 00:12

Re: [L4D/L4D2/CS:GO] VoiceHook
 
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.

Dragokas 11-06-2019 00:04

Re: [L4D/L4D2/CS:GO] VoiceHook
 
Hi, Accelerator74, thank you for the excellent extension.

How difficult is to add OnClientSpeakingEnd forward?

This is required for reducing ambient sounds.

Accelerator 11-06-2019 00:53

Re: [L4D/L4D2/CS:GO] VoiceHook
 
I will try to do this in the next version, while you can use as an example from the first post.


All times are GMT -4. The time now is 18:19.

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