RustTip

InitOxide

OxideServer
void InitOxide()
Works — the game method in this build is the one the hook was written for.

Parameters

No parameters.

Return value

voidBehaviour is not described.

Example

private void InitOxide()
{
    Puts("InitOxide");
}

Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.

Injection point

Rust.opj (Oxide)
void Bootstrap.Init_Tier0()

Passes: —

WorksAssembly-CSharp.dll

Where it is called (this branch's game code)

// …
}
AI.useUnityNavmesh = CommandLine.HasSwitch("-useOldNavmesh");
AI.checkTileValid = CommandLine.HasSwitch("-checkTileValid");
if (!UnityEngine.Application.isEditor)
{
	string text = CommandLine.Full.Replace(CommandLine.GetSwitch("-rcon.password", CommandLine.GetSwitch("+rcon.password", "RCONPASSWORD")), "******");
	WriteToLog("Command Line: " + text);
}
Interface.CallHook("InitOxide");
int parentProcessId = CommandLine.GetSwitchInt("-parent-pid", 0);
if (parentProcessId != 0)
{
	try
	{
		SynchronizationContext syncContext = SynchronizationContext.Current;
		Process processById = Process.GetProcessById(parentProcessId);
		processById.EnableRaisingEvents = true;
// …

Sources: Rust.opj from OxideMod/Oxide.Rust (MIT) and hook metadata of the Carbon documentation (MIT). Method code is decompiled from this branch's server.