So I was starting developing a new plugin, but I need some specifics hooks.
I know about the patcher but one thing that I was wondering about is, if I just add the hooks that i need to won't I be breaking the others plugins?
What I mean is, shouldn't we be sharing the same patcher project, and keeping it always up to date with the other plugins?
I saw in one of the posts a link where it was supposed to be a list of all the current available hooks but it is broken now.
So what should I do?
Solved All hooks used?
Discussion in 'Rust Development' started by PedraozauM, Feb 3, 2015.
-
If you require new hooks you can use them in your own plugins on your own server that has those hooks, if you want to publish the plugin the hook needs to be added to Oxide first, you can request this by opening a Pull Request on the patcher's repository.
-
Very nice, so if I use the patcher now with the latest oxide I should have all the other plugin hooks, is that right? And one more thing, the patcher project has a problem, someone forgot to initialize a variable for the newprojectform, if i remember right the variable that needs initializing is the one that holds the seetings for the newprojectform.
-
Hmm, just open the project that's included with the patcher (https://github.com/OxideMod/OxidePatcher) and add the hooks that you want to that project file. For the current available hooks you can have a look here: https://github.com/OxideMod/Oxide/blob/master/Oxide.Ext.Rust/hooks.txt
-
Thank you so much! I will mark as solved!
I hope to make and API to manage mobs.
My idea is to make some kind of unsafe period to be out in the open, probably the night. The ideia is to find all fighting mobs near the players and make them attack the players.
I was also thinking about making a mob strength multiplier, to make the PVE more interesting.