Raised This Month: $7 Target: $400
 1% 

DHooks (Dynamic Hooks - Dev Preview)


Post New Thread Reply   
 
Thread Tools Display Modes
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 08-19-2012 , 13:04   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #41

Quote:
Originally Posted by FaTony View Post
Only virtual functions are supported, right?
correct
Dr!fter is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 08-20-2012 , 12:11   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #42

Is it possible to get a raw "this" pointer inside the hook when using HookType_Raw? Maybe "this" would just give the address to work with?

Edit: Looks like it may already be possible and I misread the documentation. Do I use ThisPointer_Ignore?
__________________

Last edited by GoD-Tony; 08-20-2012 at 12:16.
GoD-Tony is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 08-20-2012 , 14:33   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #43

Quote:
Originally Posted by GoD-Tony View Post
Is it possible to get a raw "this" pointer inside the hook when using HookType_Raw? Maybe "this" would just give the address to work with?

Edit: Looks like it may already be possible and I misread the documentation. Do I use ThisPointer_Ignore?
Updated to add support for the above
Dr!fter is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 08-20-2012 , 16:14   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #44

Quote:
Originally Posted by Dr!fter View Post
Updated to add support for the above
Nice job!

For anyone interested, I have attached an example of hooking when a client uses their microphone. You could even block this function when the client is muted to prevent any server-side processing of their voice.
Attached Files
File Type: zip VoiceAnnounce.zip (1.7 KB, 316 views)
__________________

Last edited by GoD-Tony; 07-29-2013 at 05:28. Reason: updated gamedata #4
GoD-Tony is offline
Electr0
Junior Member
Join Date: Aug 2012
Old 08-25-2012 , 06:11   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #45

Quote:
Originally Posted by GoD-Tony View Post
Nice job!

For anyone interested, I have attached an example of hooking when a client uses their microphone. You could even block this function when the client is muted to prevent any server-side processing of their voice.

this plugin crash L4D2 server, after OnClientPutInServer() state Player, I checked on the 1.0.8-alpha DHooks with last snapshot of the SM (from 1.4.3 -> 2.0) (, I'm interested in this plugin
__________________
The Main °• Mega Survival server C0der.
Plugins:
Fort System [Save || Load user objects, (5 slots per map), Options, Multi Lang, AutoLoad] - private
Points System Remake [MySQL Saving $, Options, Multi Lang, and more..] - private
You can see them play on the °• Mega Survival L4D2 Server

Last edited by Electr0; 08-25-2012 at 06:43.
Electr0 is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 08-25-2012 , 06:46   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #46

Quote:
Originally Posted by Electr0 View Post
this plugin crash L4D2 server, after OnClientPutInServer() state Player
Thanks, I have updated the L4D2 gamedata in the zip.
__________________

Last edited by GoD-Tony; 08-25-2012 at 06:47.
GoD-Tony is offline
Electr0
Junior Member
Join Date: Aug 2012
Old 08-25-2012 , 06:51   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #47

GoD-Tony, thanks a lot, works)
__________________
The Main °• Mega Survival server C0der.
Plugins:
Fort System [Save || Load user objects, (5 slots per map), Options, Multi Lang, AutoLoad] - private
Points System Remake [MySQL Saving $, Options, Multi Lang, and more..] - private
You can see them play on the °• Mega Survival L4D2 Server
Electr0 is offline
Electr0
Junior Member
Join Date: Aug 2012
Old 08-25-2012 , 06:57   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #48

GoD-Tony, you can make a message saying that the player has finished speaking?)
__________________
The Main °• Mega Survival server C0der.
Plugins:
Fort System [Save || Load user objects, (5 slots per map), Options, Multi Lang, AutoLoad] - private
Points System Remake [MySQL Saving $, Options, Multi Lang, and more..] - private
You can see them play on the °• Mega Survival L4D2 Server

Last edited by Electr0; 08-25-2012 at 06:58.
Electr0 is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 08-25-2012 , 07:07   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #49

Quote:
Originally Posted by Electr0 View Post
GoD-Tony, you can make a message saying that the player has finished speaking?)
Your plugin will have to handle the logic of determining the start and end of client speech. You'll find some examples in the VoiceHook thread, but something a little more efficient would be nice.
__________________

Last edited by GoD-Tony; 08-25-2012 at 07:08.
GoD-Tony is offline
Electr0
Junior Member
Join Date: Aug 2012
Old 08-25-2012 , 07:30   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #50

GoD-Tony, thx for examples detect method)
__________________
The Main °• Mega Survival server C0der.
Plugins:
Fort System [Save || Load user objects, (5 slots per map), Options, Multi Lang, AutoLoad] - private
Points System Remake [MySQL Saving $, Options, Multi Lang, and more..] - private
You can see them play on the °• Mega Survival L4D2 Server
Electr0 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 02:30.


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