using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("UltraJetpack")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("UltraJetpack")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e7103e14-8ab7-4408-bd0d-144fba603e20")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace UltraJetpack;
[BepInPlugin("DolfeLive.Ultrakill.UltraMines", "UltraMines", "1.0.0")]
public class UltraJetpack : BaseUnityPlugin
{
public const string pluginGuid = "DolfeLive.Ultrakill.UltraJetpack";
public const string pluginName = "UltraJetpack";
public const string pluginVersion = "1.0.0.0";
private GameObject Player;
private GameObject PlayerCam;
private float speed = 500f;
private Rigidbody rb;
private void Start()
{
}
private void Update()
{
if ((Object)(object)Player == (Object)null || (Object)(object)PlayerCam == (Object)null)
{
Player = GameObject.Find("Player");
PlayerCam = GameObject.Find("Main Camera");
}
if (SceneHelper.CurrentScene == "Main Menu")
{
}
if (Input.GetKeyDown((KeyCode)45))
{
speed *= 0.1f;
MonoSingleton<HudMessageReceiver>.Instance.SendHudMessage("<color=red>Current Speed: " + speed + "</color>", "", "", 0, false);
}
else if (Input.GetKeyDown((KeyCode)61))
{
speed *= 10f;
MonoSingleton<HudMessageReceiver>.Instance.SendHudMessage("<color=red>Current Speed: " + speed + "</color>", "", "", 0, false);
}
}
private void FixedUpdate()
{
//IL_0032: Unknown result type (might be due to invalid IL or missing references)
//IL_003d: Unknown result type (might be due to invalid IL or missing references)
if (Input.GetKey((KeyCode)308))
{
rb = Player.GetComponent<Rigidbody>();
rb.velocity = PlayerCam.transform.forward * speed;
}
}
}