A stable modding interface between Techblox and mods https://mod.exmods.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
520B

  1. using System.Reflection;
  2. using HarmonyLib;
  3. namespace TechbloxModdingAPI.Input
  4. {
  5. [HarmonyPatch]
  6. public static class FakeInputPatch
  7. {
  8. public static void Prefix()
  9. {
  10. FakeInput.inputEngine.HandleCustomInput(); // This gets called right before the input is sent to the server
  11. }
  12. public static MethodBase TargetMethod()
  13. {
  14. return AccessTools.Method("RobocraftX.Multiplayer.Input.NetworkInputRecorderEngine:RecordDeterministicInput");
  15. }
  16. }
  17. }