Ejemplo n.º 1
0
        private void Awake()
        {
            var miniRpc = MiniRpc.CreateInstance(GUID);

            new Log(Logger, miniRpc);
            TimeScaleNetwork = miniRpc.RegisterAction(Target.Client, (NetworkUser _, float f) => { HandleTimeScale(f); });

            Log.Message("Harb's and 's Version. Original by Morris1927.", LogLevel.Info, Log.Target.Bepinex);/*Check github for the other contributor, lmao*/

            Hooks.InitializeHooks();
            Noclip.Init(miniRpc);
        }
Ejemplo n.º 2
0
 public void Awake()
 {
     sprintFovMultiplierConfig = Config.WrapJson <float>(
         "FOV",
         "sprintFovMultiplier",
         "What FOV gets multiplied by while sprinting",
         1.3f
         );
     fovConfig = Config.WrapJson <float>(
         "FOV",
         "FOV",
         "Your base FOV",
         60f
         );
     Hooks.InitializeHooks();
     NetworkHandler.RegisterNetworkHandlerAttributes();
 }
Ejemplo n.º 3
0
 private static void HandleNetworkMessage(LogNetworkMessageClass msg)
 {
     Message(msg.message, (LogLevel)msg.level);
     Hooks.ScrollConsoleDown();
 }