using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Security.Permissions;
using Atlas;
using BepInEx;
using BepInEx.Logging;
using FistVR;
using HarmonyLib;
using UnityEngine;
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.0.0")]
[module: UnverifiableCode]
[HelpURL("https://geom.io/bakery/wiki/index.php?title=Manual#Bakery_Light_Filter")]
[DisallowMultipleComponent]
public class BakeryLightFilter : MonoBehaviour
{
public Texture2D texture;
[HideInInspector]
public int lmid = 0;
}
namespace Niko666.Mini_Warfare_CODOL_TGM
{
[BepInPlugin("Niko666.Mini_Warfare_CODOL_TGM", "Mini_Warfare_CODOL_TGM", "1.0.0")]
[BepInProcess("h3vr.exe")]
[Description("Built with MeatKit")]
[BepInDependency("nrgill28.Atlas", "1.0.1")]
public class Mini_Warfare_CODOL_TGMPlugin : BaseUnityPlugin
{
private static readonly string BasePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
internal static ManualLogSource Logger;
private void Awake()
{
Logger = ((BaseUnityPlugin)this).Logger;
LoadAssets();
}
private void LoadAssets()
{
Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), "Niko666.Mini_Warfare_CODOL_TGM");
AtlasPlugin.RegisterScene(Path.Combine(BasePath, "mp_dwarf_sh_tdm"));
}
}
}
namespace Niko666
{
public class JumpBooster : MonoBehaviour
{
public float BoostStrength = 5f;
private void OnTriggerEnter(Collider collider)
{
JumpBoost();
}
private void OnTriggerExit(Collider collider)
{
JumpBoost();
}
private void JumpBoost()
{
//IL_004b: Unknown result type (might be due to invalid IL or missing references)
//IL_0050: Unknown result type (might be due to invalid IL or missing references)
//IL_0051: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected I4, but got Unknown
FVRMovementManager currentMovementManager = GM.CurrentMovementManager;
if ((Object)(object)currentMovementManager != (Object)null && currentMovementManager.m_smoothLocoVelocity.y > 0f)
{
currentMovementManager.m_isGrounded = false;
currentMovementManager.DelayGround(0.1f);
float num = 0f;
GravityMode playerGravityMode = GM.Options.SimulationOptions.PlayerGravityMode;
switch ((int)playerGravityMode)
{
case 0:
num = 7.1f;
break;
case 1:
num = 5f;
break;
case 2:
num = 3f;
break;
case 3:
num = 0.001f;
break;
}
currentMovementManager.DelayGround(0.25f);
currentMovementManager.m_smoothLocoVelocity.y = Mathf.Clamp(currentMovementManager.m_smoothLocoVelocity.y, num * BoostStrength, num * BoostStrength);
}
}
}
}