1. Im looking for a way to rewrite the code of a Rust object, namely the StashContainer.

    Can I do that from a plugin ?

    Apparently declaring a "public class StashContainer : StorageContainer" doesnt affect the actual StashContainer definition.
     
  2. What are you trying to change about it? Most of that code is client side so things like the name is unchangeable.
     
  3. I thought it was server side tough ? In the decompiler it mentions RPCs calls and I can call SetHidden from the plugin ?

    Anywyas I wanted to change the hiding behavior (mostly PlayerInRange). I managed to make it work as expected.

    In general Im still wondering if I can hook / override methods of various rust classes, would be quite usefull.
     
  4. You can't rewrite the code of a Rust class. Rust is explicitly referring to the class in the DLL, not to your class. If C# allowed that, it'd be seriously confusing, and the equivalent of the following: COMEFROM - Wikipedia, the free encyclopedia.
    There's maybe some reflection wizardry that allows you to do this, but you really shouldn't.
     
  5. Thanks for the answers.