func vs func_POST
What is the difference between these for example.
Quote:
Quote:
|
Re: func vs func_POST
Generally, "post" means that your code will get executed after the event occurs. This means that you cannot modify the event itself because it already happened. If a hook is "pre" then your code gets executed before the event occurs which allows you to modify the event (depending on the event and type of hook it is).
|
Re: func vs func_POST
Oh, I see. Makes a lot of sense. Thanks.
|
Re: func vs func_POST
Take a look at HLSDK code, you'll find all that references there. You might know you're hooking something as POST, but what happened inside? There's the answer.
|
Re: func vs func_POST
Normally on the engine or game dll there're calls (ClientCommand for example).
Metamod hooks the call and replace with this: Code:
ClientCommand_Hook() { |
All times are GMT -4. The time now is 16:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.