Please add a hook:
object OnEntityDecay (DecayEntity entity) in DecayEntity.DecayTick ().
If OnEntityDecay return null then do nothing, else prevent decay.
Request OnEntityDecay hook (Rust)
Discussion in 'Feature Suggestions' started by Nimant, Dec 20, 2017.
-
That request is crap, and shows that you do not know in any point how the decay system really works.
DecayTick exists also in multiple classes, cause is virtual.
Secondly, you did not specify any point where it should be placed inside in your opinion. What brings me back to my primary suggestion: You do not know how decay works
Like @Resistance would say: Learn the truth -
-
Someone here is very conceited.
Here example of hook + virtual method, which already exists in oxide:
Here my vision of inserting a new hook: