This repository was archived by the owner on Mar 6, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOnnxEntry.cs
More file actions
95 lines (72 loc) · 2.73 KB
/
OnnxEntry.cs
File metadata and controls
95 lines (72 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
using MelonLoader;
using onnxware.UI.QM;
using onnxware;
using onnxware.Components.Tools;
using onnxware.Components.Patches;
using onnxware.Globals;
[assembly: MelonInfo(typeof(OnnxEntry), "onnxware", "0.0.1", "nextrixvfx", null)]
[assembly: MelonGame("VRChat", "VRChat")]
namespace onnxware
{
public class OnnxEntry : MelonMod
{
public override void OnInitializeMelon()
{
if (Variables.Debug)
ConsoleAPI.Initialize.consoleCreated = ConsoleAPI.Initialize.AllocConsole();
ConsoleAPI.Logger.Msg("Initialized onnxware!", ConsoleAPI.Logger.LoggerLevel.Info, ConsoleColor.Green);
// Menu
TopMenu.Init();
// Patches
VRChatPlus.Initialize();
// Player Events
MelonCoroutines.Start(PlayerUtil.WaitForPlayerListener());
//Visual
Components.Visual.BoxESP.Init();
Components.Visual.PrefabESP.Init();
}
public override void OnUpdate()
{
// Movement
Components.Movement.Jetpack.Utilize();
Components.Movement.Speed.Utilize();
Components.Movement.Fly.Utilize();
// World
Components.World.ItemOrbit.Utilize();
// Visuals
Components.Visual.BoxESP.Utilize();
Components.Visual.ThirdPerson.Utilize();
}
public override void OnGUI()
{
Components.Visual.BoxESP.RenderBoxes();
}
public override void OnSceneWasLoaded(int buildIndex, string sceneName)
{
ConsoleAPI.Logger.Msg("Loaded Scene\t" + sceneName, ConsoleAPI.Logger.LoggerLevel.Info, ConsoleColor.Blue);
// Get all scene data (ex: pickups)
SceneUtil.Init();
}
public override void OnApplicationQuit()
{
ConsoleAPI.Logger.Msg("Exiting VRChat! Disabling Cheats...", ConsoleAPI.Logger.LoggerLevel.Info, ConsoleColor.Red);
// World
Components.World.ItemOrbit.Toggle("", false);
// Movement
Components.Movement.Jetpack.Toggle(false);
Components.Movement.Speed.Toggle(false);
// Visual
Components.Visual.BoxESP.Toggle(false);
Components.Visual.PrefabESP.Toggle(false);
Components.Visual.ThirdPerson.Toggle(false);
Components.Visual.BoxESP.Destroy();
// Exploits
Components.Exploits.LoudMic.Toggle(false);
ConsoleAPI.Logger.Msg("All Cheats Disabled.");
// ConsoleAPI
if (Variables.Debug)
ConsoleAPI.Initialize.FreeConsole();
ConsoleAPI.Initialize.consoleCreated = false;
}
}
}