Lançamentos da Source
Sign in to follow this
Followers
0
1 topic in this forum
-
Away System
By sbk_,- 6 replies
- 2838 views
Sign in to follow this
Followers
0
-
Featured Topics
-
Latest Commits
-
Topics
-
Posts
-
Perfect. I have now submitted the change on GitHub. I share the same doubt as KirieZ. As far as I know and have learned about HPM Plugins, the only method to overwrite/replace a function is through this way. I know about HookPre and HookPost, however, in some situations where you want to remove a piece of code within the function, these solutions don't work, forcing you to resort to overloading. Of course, whenever possible, I will adhere to HookPre and HookPost, and I can identify well when this is necessary.
-
By JawlessFish · Posted
I'm looking to pay someone to create a custom MVP/Boss sprite based on our server mascot, the Jawless Fish who is known for its silly expression . Please contact me if anyone has interest. -
by "hpm overload things" you mean hookPre/hookPost? As far as I remember, overloading, as in "I want to completely skip hercules original function" (maybe it should actually be called override?) were always made with a direct assignment to the interface (like in the original post here), while hookPre/hookPost would be used if you want to keep the original code running, but wants to do something else before/after it. Example: https://github.com/HerculesWS/Hercules/blob/stable/src/plugins/db2sql.c#L1180 I am not aware of another method for overloading/overriding. I do agree that you should only do it if you have a reason to, but is there a better way to overload/override than a direct assignment?
-
Download Statistics