I'd like to write a plugin to do x but there is no hook for it
#9
And potions would not be covered by HOOK_PLAYER_HEALTH_REGENERATION because they are already covered by HOOK_ENTITY_ADD_EFFECT, right?

(10-27-2014, 03:43 AM)xoft Wrote: Also, I think I'd prefer a hook-based solution to one where all the params could be settable. There are hundreds of params that could be set like that and adding access to all of them would be wasteful. Also, that would need some place to initialize the param for each entity, and to specify a default and... you get the point.

So basically it's a lot of work to expose the inner working to the plugin API? Or is the main issue that it would add more bloat than the average player needs? Either way, fair enough, I don't have any real plans that require access to these params. A super customised server is already made possible by this project being open-source so no complaints from me!
Reply
Thanks given by:


Messages In This Thread
RE: I'd like to write a plugin to do x but there is no hook for it - by lost_RD - 10-27-2014, 02:18 PM



Users browsing this thread: 3 Guest(s)