Quote:
Originally Posted by friagram
If you want to use libraries, you could just pass the caller's library name in your native. Store this in a dynamic array in the core plugin, and onlibraryremoved, search through your models and use the dynamic array to see if that library belongs to said model. Then remove the library name from your dynamic array.
This is probably the best choice..
In the child plugin, you reg the library, and when you call your native, just pass that library name, very easy to implement.
Onlibraryremoved isnt bad to use if you findstringinarray the libraries, though if you have a lot of models in the main array, it could take a while to parse them, but what can you do.
|
Could work in a senses, auto assign child libraries to the core when native is called, but anyway I just put it in the model structure for test purpose, it won't be use there but it will probably be use in some other future DA.
I will look into that but I think that a global forward OnPluginUnload(Handle:plugin) could be really useful into the sourcemod core.
EDIT: double post my bad