Raised This Month: $276 Target: $400
 69% 

[ANY] VoiceHook


Post New Thread Reply   
 
Thread Tools Display Modes
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
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)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline
Accelerator74
AlliedModders Donor
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
__________________
Accelerator74 is offline
Send a message via ICQ to Accelerator74
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
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)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline
Accelerator74
AlliedModders Donor
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 Accelerator74; 11-11-2019 at 08:45.
Accelerator74 is offline
Send a message via ICQ to Accelerator74
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
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.

Updated SpeakingList plugin with IsClientInGame check added is attached.
Attached Files
File Type: sp Get Plugin or Get Source (SpeakingList.sp - 179 views - 1.2 KB)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]

Last edited by Dragokas; 11-11-2019 at 12:19.
Dragokas is offline
Accelerator74
AlliedModders Donor
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 Accelerator74; 11-11-2019 at 10:18.
Accelerator74 is offline
Send a message via ICQ to Accelerator74
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
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)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
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)
[My plugins] [My tools] [GitHub] [Articles]

Last edited by Dragokas; 11-11-2019 at 16:28.
Dragokas is offline
fbef0102
Senior Member
Join Date: Sep 2017
Location: TW
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
__________________
fbef0102 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
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, 60 views)
File Type: zip VoiceHook_L4D2.zip (23.1 KB, 116 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]
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 09:04.


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