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

[ANY] VoiceHook


Post New Thread Reply   
 
Thread Tools Display Modes
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-06-2019 , 01:23   Re: [L4D/L4D2/CS:GO] VoiceHook
Reply With Quote #11

Thanks a much.
__________________
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 , 10:39   Re: [L4D/L4D2/CS:GO] VoiceHook
Reply With Quote #12

Extension updated!

- New hook method for games other than csgo
- Rewrote code
- New forwards and natives
__________________
Accelerator is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-11-2019 , 07:12   Re: [ANY] VoiceHook
Reply With Quote #13

Hi, Accelerator74!

Thanks a much you found a time for it!!!

Hint me please, I compiled it using:
Code:
make CPP=gcc
where HX_SDK = ../hl2sdk was a folder from "episode1-swapfix" branch of hl2sdk, as instructed in Metamod:Source_Environment

Is it correct?
Now, how to target build for a specific game? Also, maybe add optimization options if any...
__________________
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-11-2019 , 08:41   Re: [ANY] VoiceHook
Reply With Quote #14

For make:
1. Download sourcemod and metamod as well as amtl and sourcepawn branches.
2. Download hl2sdk branch the game you need.
3. Edit the necessary paths in makefile.
4. In the Makefile, change the number DSOURCE_ENGINE of the game for which you want to build a library.
5. make in terminal.
__________________

Last edited by Accelerator; 11-11-2019 at 08:45.
Accelerator is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-11-2019 , 10:06   Re: [ANY] VoiceHook
Reply With Quote #15

Thanks, complilation successfull.

However it required some additional steps.

1. Download swapfix branch.
PHP Code:
git clone https://github.com/alliedmodders/hl2sdk -b l4d2-swapfix hl2sdk-l4d2-swapfix 
otherwise, with stock hl2sdk-l4d2 branch, I'm receiving 'undeclared var for swap' error:
Spoiler

adding -fpermissive to all 3 gcc commands in makefile didn't help.
Still, there is problem, that swapfix branch for some games is not exist, e.g. l4d1 (I understand, this is not your problem).

2.
Quote:
HX_SDK = ../hl2sdk-l4d2-swapfix
3. Add to makefile
Quote:
-I$(HX_SOURCEMOD)/public/amtl/amtl
in order to point to valid amtl headers.
This folder is created by default if you clone sourcemod with --recursive flag.

EDIT.
After compilation:

4. Rename voicehook.ext.so to VoiceHook.ext.so (upper-case), so not to break compatibility with SpeakingList plugin.

5. Change in Makefile:
Code:
HX_SDK = ../hl2sdk
to
Code:
HX_SDK = ../hl2sdk-l4d2
Updated SpeakingList plugin with IsClientInGame check added is attached.
Attached Files
File Type: sp Get Plugin or Get Source (SpeakingList.sp - 409 views - 1.2 KB)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 10-05-2020 at 16:08.
Dragokas is offline
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 11-11-2019 , 10:16   Re: [ANY] VoiceHook
Reply With Quote #16

Quote:
Originally Posted by Dragokas View Post
otherwise, with stock hl2sdk-l4d2 branch, I'm receiving 'undeclared var for swap' error:
https://github.com/alliedmodders/hl2...lmemory.h#L328

You can just add to all three swap this-> and everything will be compilled This applies to all branches.

Code:
	this->swap( m_nGrowSize, mem.m_nGrowSize );
	this->swap( m_pMemory, mem.m_pMemory );
	this->swap( m_nAllocationCount, mem.m_nAllocationCount );
__________________

Last edited by Accelerator; 11-11-2019 at 10:18.
Accelerator is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-11-2019 , 10:23   Re: [ANY] VoiceHook
Reply With Quote #17

ok, I found difference and successfully compiled for l4d1:
https://github.com/alliedmodders/hl2.....l4d2-swapfix

Thanks again.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-11-2019 , 16:27   Re: [ANY] VoiceHook
Reply With Quote #18

Report:

L4D1, linux (sm.1.10) - all forwards work like a charm (latest server update).

Just for info, I updated last post with step #4, and a little update for SpeakingList plugin.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 11-11-2019 at 16:28.
Dragokas is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 11-13-2019 , 06:13   Re: [ANY] VoiceHook
Reply With Quote #19

Quote:
Originally Posted by Dragokas View Post
Report:

L4D1, linux (sm.1.10) - all forwards work like a charm (latest server update).

Just for info, I updated last post with step #4, and a little update for SpeakingList plugin.
Teacher, would you like to share l4d1 .so extension?

I'm totally noob at compiling Engine Extension
__________________
HarryPotter is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-13-2019 , 07:03   Re: [ANY] VoiceHook
Reply With Quote #20

sm 1.9, 1.10
meta 1.10.7
Attached Files
File Type: zip VoiceHook_L4D.zip (23.1 KB, 177 views)
File Type: zip VoiceHook_L4D2.zip (23.1 KB, 271 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas 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 01:07.


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