AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [DHooks] Observer functions (https://forums.alliedmods.net/showthread.php?t=183745)

Bacardi 04-26-2012 03:00

[DHooks] Observer functions
 
2 Attachment(s)
Here, I made list that hook these functions.
You can try mess and trace with your testing server.

There should not much wrong with params+returns and all those hooks work (at least Cs:s).
If do then tell.
  • I maybe add later descriptions to callbacks what can change and happens.

Player.h


Almost forgot most important thing :D
As usually after friendly-valve-update in games, offsets can be change and lead to errors/crash/glitches !!
upgrade gamedata




To get started, :arrow: compile plugin yourself :3

Install:
Extension Dr!fter DHooks (Dynamic Hooks - Dev Preview)
...addons/sourcemod/gamedata/all.games-observer.txt
...addons/sourcemod/scripting/dhooks-test-observer.sp


My bug


*fixed all.games-observer.txt

Dr!fter 04-27-2012 11:40

Re: [DHooks] Observer functions
 
As a note the return value you are getting on most of the hooks (the ones that aren't post hooks) is the default value assigned automatically to prevent issues. Its not the real return value. The only way to get the real return value is inside a post hook. So if you really want to get the return value you need to change them all to post hooks :P


All times are GMT -4. The time now is 07:10.

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