View Single Post
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-24-2017 , 04:13   Re: Module: Custom Entity Data
Reply With Quote #11

Quote:
Originally Posted by PRoSToTeM@ View Post
There are two kinds of functions in API that you can call (they are located in engfuncs) and that you can hook (events) (I mean original API from engine, not metamod, they are located in EntityAPI(2) and NewDLLFunctions). PrecacheModel is that you can call, so basically you can hook it to customize gamedll behaviour only. FreeEntPrivateData has two versions FreeEntPrivateData that you can call (engfunc) and OnFreeEntPrivateData event (NewDllFunction). FreeEntPrivateData engfunc calls OnFreeEntPrivateData (you can see that in ReHLDS). So, you can hook OnFreeEntPrivateData via API without any problems. Emulating OnFreeEntPrivateData can break some code in gamedll, this is like undefined behaviour (I mean fakecall from some plugin).
Oh right, thanks for elaborating. I totally missed that there's OnFreeEntPrivateData too.

EDIT:
Done. Thanks for help.

Quote:
Originally Posted by meTaLiCroSS View Post
I was thinking on doing something like this, I complained because I thought it would be slow. Good job, this kind of addons will have a big impact if is integrated in the main AMXX package.
Thanks.

Last edited by klippy; 02-24-2017 at 05:17.
klippy is offline