![]() If you double click that class in the assembly explorer, you’ll see the methods and attributes for this class:Īnd lo and behold, we have an Awake method that we can hook. The catch here? Neither Start or Awake are overriden by custom code, so we can’t use Harmony to patch the Knife object directly.īut don’t despair! If you expand the Base Type and Interfacessection of the object in dnSpy, you’ll see that Knife inherits from a class called PlayerTool. So, either are prime places to hook our code and make some changes. ![]() Start - this is called when an object is loaded and initialised into the sceneĪwake - this is called right before Start, and is called even if the component is disabled Aurora can then use these variables to change the lighting on individual keys on your RGB Keyboard, such as making a health bar or turn your keyboard a darker shade of blue when youre deeper in the ocean. This base class has two incredibly useful methods: Aurora GSI for Subnautica is a mod that sends game variables from Subnautica to the Aurora RGB peripheral lighting software. So, this looks promising! There’s a float attribute called damage that looks like it could come in handy, as this looks like the value that will determine how much damage is done to a target when the knife is used.īut there’s a catch: all Unity classes inherit from a class called MonoBehaviour. You should see a class called Knife in the left side of the screen, and you can expand it to see it’s methods and fields: through Steam and in Steam Big Picture but not any of the Subnautica. It’s here where we’ll find the answers to our questions above.ĭnSpy has some brilliant search functionality, so in the search box at the bottom of the screen, change the Search for drop down to class and enter the word “Knife” and hit return. Heres a quick guide for that: On your keyboard, press Win I (the Windows logo key. If you expand one of these, you’ll see the class Methods in orange and you’ll see class Fields in purple. These commands are for a standard QWERTY Keyboard layout with the standard. What you’ll see is a list of Classes in green. This page represents the Key Bindings for Subnautica and Subnautica: Below Zero. You should see a bunch of stuff down the left hand side of the screen that might look interesting. Once it’s running, select File > Open, navigate to \Subnautica_Data\Managed\Assembly-CSharp.dll. What do we change to effect the damage dealt?. ![]()
0 Comments
Leave a Reply. |