Raised This Month: $51 Target: $400
 12% 

is it possible... :|


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ErUs
Junior Member
Join Date: Jun 2004
Old 11-06-2005 , 15:08   is it possible... :|
Reply With Quote #1

http://articles.thewavelength.net/649/

would it be possible to hook the functions on the server to create this effect?

because i think that code is client-side
ErUs is offline
ErUs
Junior Member
Join Date: Jun 2004
Old 11-06-2005 , 16:31  
Reply With Quote #2

also i get this error

Quote:
c:\Documents and Settings\Tom\My Documents\Visual Studio Projects\sourcemm\sourcemm\sourcemm\sample_mm \SamplePlugin.cpp(282): error C3861: '__SourceHook_FHAddConCommandDispatch': identifier not found, even with argument-dependent lookup
when i try this
Code:
SH_ADD_HOOK_MEMFUNC(ConCommand, Dispatch, pSayCmd, &g_SamplePlugin, &SamplePlugin::ChatHook, false);

can anyone help please
ErUs is offline
BAILOPAN
Join Date: Jan 2004
Old 11-07-2005 , 07:57  
Reply With Quote #3

If it's server side and obeys the given virtual function layout in the SDK, then yes. Since it's in game_shared I think it's shared in between the client and server.

At the top of the same file make sure you use:
Code:
SH_DECL_HOOK0_void(ConCommand, Dispatch, SH_NOATTRIB, 0);
__________________
egg
BAILOPAN is offline
ErUs
Junior Member
Join Date: Jun 2004
Old 11-07-2005 , 09:34  
Reply With Quote #4

thanks alot.

i have another problem though.

when i try to call a member function from CBaseEntity i get:

Quote:
sample_mm error LNK2001: unresolved external symbol "bool g_bUseNetworkVars" (?g_bUseNetworkVars@@3_NA)
i can cast as CBaseEntity with no problem but when i try to use a function it doesnt work
ErUs is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 11-07-2005 , 18:51  
Reply With Quote #5

Try including networkvars.h

What exactly is wall jumping? lol
__________________
sslice is offline
ErUs
Junior Member
Join Date: Jun 2004
Old 11-07-2005 , 20:39  
Reply With Quote #6

it was building in release all along because:
Code:
#ifdef _DEBUG
	extern bool g_bUseNetworkVars;
	#define CHECK_USENETWORKVARS if(g_bUseNetworkVars)
#else
	#define CHECK_USENETWORKVARS // don't check for g_bUseNetworkVars
#endif
wall jumping is the ability to jump - strafe in to a wall and kick of it, kinda like jumping twice

edit:
just to confirm the chat hook works and i Can use the CBaseEntity stuff now
ErUs is offline
Reply



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:30.


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