Raised This Month: $ Target: $400
 0% 

[HOWTO] Make a nice say-hook


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
vancelorgin
Senior Member
Join Date: Dec 2004
Location: san frandisco
Old 01-06-2005 , 20:10  
Reply With Quote #10

The offsets, bailo, PM is referring to, are offsets in the Interfaces' virtual function tables - publicly accessible, mod universal, fundamental classes, like XAD said. When you hear 'offset' you instantly think hardcoded address - which is a terrible mistake I never hardcode addresses in my projects. Offsets are unnecessary here (in fact I don't see how you'd even be able to squeeze them in somewhere). Besides, the modified standard class / interface method can only be used in rare situations where the plugin is called or given a chance to inject itself somewhere. Vtable hooks can be used anywhere. Just try to overload IVEngineServer without it :/

The 'offset' method XAD and I are using is just as mod universal as the server plugin interface, nay, the engine interface. Unless a mod releases it's own engine binaries, the method will work flawlessly.


Though I use this method elsewhere, I prefer mine for say hooking, for the time being, as it allows me to add say text tokens, like @n for name, @l for location, @h for health, etc, and otherwise modify what the client says. Doing that with your method would require somehow overwriting the engine's argument list, which would be, by your standards, ugly ^_^
__________________
Avoid like the plague.
vancelorgin is offline
 



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 07:19.


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