Raised This Month: $12 Target: $400
 3% 

[ANY] VoiceHook


Post New Thread Reply   
 
Thread Tools Display Modes
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 11-14-2019 , 12:27   Re: [ANY] VoiceHook
Reply With Quote #21

Quote:
Originally Posted by Dragokas View Post
sm 1.9, 1.10
meta 1.10.7
thanks, bro, it works on l4d1 linux server
__________________
HarryPotter is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-14-2019 , 19:20   Re: [ANY] VoiceHook
Reply With Quote #22

Thanks to Accelerator74 for updating the voice detection method and kind instructions on compilation.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 11-18-2019 , 01:41   Re: [L4D/L4D2/CS:GO] VoiceHook
Reply With Quote #23

Quote:
Originally Posted by foxhound27 View Post
[...]
I see the cause of the problem where players can't move while they speak and it lies in this part of the code:
Code:
public MRESReturn:Hook_ProcessVoiceData(Address:this_adr, Handle:hParams)
{
	[...]
    
    ----- This here triggers the bug -----
    
	if (!returnBool)
	{
		return MRES_Supercede;
	}
    
    ----- since the function gets skipped-----
	
	[...]
}

Last edited by cravenge; 11-18-2019 at 21:10.
cravenge is offline
NiTro1
Member
Join Date: Sep 2015
Location: france
Old 12-20-2019 , 10:17   Re: [ANY] VoiceHook
Reply With Quote #24

Here a compiled version for Left 4 Dead 2 on Linux. In case anyone need it.

SM : 1.7
MM : 1.10.6
Attached Files
File Type: zip SpeakingList.zip (18.2 KB, 230 views)

Last edited by NiTro1; 12-20-2019 at 10:20.
NiTro1 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 08-19-2020 , 08:20   Re: [ANY] VoiceHook
Reply With Quote #25

And now this extension does not work in left 4 dead 1 lastest sourcemod version
Download voicehook.ext.dll from here

Spoiler
__________________

Last edited by HarryPotter; 08-19-2020 at 08:21.
HarryPotter is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 08-19-2020 , 08:27   Re: [ANY] VoiceHook
Reply With Quote #26

Part of this extension was included in SourceMod 1.11 recently.
https://github.com/alliedmodders/sourcemod/pull/1247

Accelerator74 added two forwards
PHP Code:
/**
 * 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); 
__________________
Peace-Maker is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 08-20-2020 , 06:11   Re: [ANY] VoiceHook
Reply With Quote #27

Quote:
Originally Posted by Peace-Maker View Post
Part of this extension was included in SourceMod 1.11 recently.
https://github.com/alliedmodders/sourcemod/pull/1247
Good, guess we have to update sm 1.11
__________________
HarryPotter 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 17:55.


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