Raised This Month: $ Target: $400
 0% 

Using SourceHook


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pRED*
Join Date: Dec 2006
Old 10-09-2008 , 15:59   Re: Using SourceHook
Reply With Quote #10

Is this a metamod plugin or a VSP?

The embedding section on that wiki page suggests that multiple versions of sourcehook in the same process will probably conflict, so not entirely sure how you'd add it to a VSP if metamod is running.

If it's metamod you need something like this in your metamod load function:

g_SHPtr = static_cast<SourceHook::ISourceHook *>(ismm->MetaFactory(MMIFACE_SOURCEHOOK, NULL, NULL));
g_PLID = id;

or look at the PLUGIN_SAVEVARS() macro in ISmmPlugin.h
pRED* 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 18:40.


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