Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Hooking
Re: Hooking [message #453862 is a reply to message #453815] |
Fri, 09 September 2011 18:17 |
|
halo2pac
Messages: 659 Registered: December 2006 Location: Near Cleveland, Ohio
Karma:
|
Colonel |
|
|
HMODULE hooks = LoadLibrary("hooks.dll");
LoadHook(hooks, (void **)&RequestSerial, "RequestSerial");
LoadHook(hooks, (void **)&AddSerialHook, "AddSerialHook");
LoadHook(hooks, (void **)&AddLoadingEHook, "AddLoadingEHook");
LoadHook(hooks, (void **)&AddDamageHook, "AddDamageHook");
LoadHook(hooks, (void **)&AddChatEHook, "AddChatHook");
LoadHook(hooks, (void **)&AddPingHook, "AddPingHook");
LoadHook(hooks, (void **)&AddSuicideHook, "AddSuicideHook");
LoadHook(hooks, (void **)&AddRadioHook, "AddRadioHook");
"As far as I know you can hook keys much like in previous versions of SSGM."
Its flakey, and doesnt hook most keys at all.. just things defined in keys.cfg. , and keys.cfg is a pain in the ass to deal with server and client wise.
"What's the purpose of the ersource download hook? When would it trigger?"
it would trigger the moment a player starts downloading the server's resources. if I am not mistaken this is before the player even joins... As it would be nice to see who is lagged behind waiting for there download to finish.
Daniel had some other hooks that were awesome, such as a player joined the channel and is debating joining the game. I will try to find his private source that I have to see what they were.
"How did you detect DC in SSGM 2?"
It was a combination of the player loading game event.. if there was only one event, it was a direct connect.
Also onbodydamage would be nice, as thne old headshot code was messed up and we couldnt detect shots properly.
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
[Updated on: Fri, 09 September 2011 18:18] Report message to a moderator
|
|
|
|
|
Hooking
By: halo2pac on Thu, 08 September 2011 20:49
|
|
|
Re: Hooking
|
|
|
Re: Hooking
By: halo2pac on Fri, 09 September 2011 10:28
|
|
|
Re: Hooking
|
|
|
Re: Hooking
By: halo2pac on Fri, 09 September 2011 18:17
|
|
|
Re: Hooking
By: iRANian on Fri, 09 September 2011 18:26
|
|
|
Re: Hooking
|
|
|
Re: Hooking
By: halo2pac on Sat, 10 September 2011 16:16
|
|
|
Re: Hooking
|
|
|
Re: Hooking
By: halo2pac on Sun, 11 September 2011 00:40
|
|
|
Re: Hooking
By: Jerad2142 on Sun, 11 September 2011 12:28
|
|
|
Re: Hooking
|
|
|
Re: Hooking
By: halo2pac on Sun, 11 September 2011 11:18
|
|
|
Re: Hooking
|
|
|
Re: Hooking
By: Jerad2142 on Sun, 11 September 2011 17:04
|
|
|
Re: Hooking
|
|
|
Re: Hooking
By: halo2pac on Sun, 11 September 2011 19:14
|
|
|
Re: Hooking
|
|
|
Re: Hooking
|
|
|
Re: Hooking
|
|
|
Re: Hooking
By: iRANian on Sun, 18 September 2011 07:34
|
|
|
Re: Hooking
By: jonwil on Sun, 18 September 2011 17:20
|
|
|
Re: Hooking
By: halo2pac on Sun, 18 September 2011 18:11
|
Goto Forum:
Current Time: Thu Jan 09 14:14:16 MST 2025
Total time taken to generate the page: 0.00910 seconds
|