using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using Microsoft.CodeAnalysis;
using Reptile;
using UnityEngine;
using UnityEngine.SceneManagement;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETFramework,Version=v4.6", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("PlayerVolume")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Tweak player volume for Bomb Rush Cyberfunk")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyInformationalVersion("0.0.1")]
[assembly: AssemblyProduct("PlayerVolume")]
[assembly: AssemblyTitle("PlayerVolume")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.1.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace woodzmuteplayer
{
[BepInPlugin("info.mariobluegloves.muteplayerp", "Mute Player", "0.0.1")]
[BepInProcess("Bomb Rush Cyberfunk.exe")]
public class MutePlayerAudioPlugin : BaseUnityPlugin
{
public static ConfigEntry<float> newVolume;
private bool sceneLoaded = false;
private void Awake()
{
SceneManager.sceneLoaded += OnSceneLoaded;
}
private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
{
sceneLoaded = true;
}
private void Update()
{
newVolume = ((BaseUnityPlugin)this).Config.Bind<float>("Misc", "Player volume", 50f, "Player volume");
if (!sceneLoaded)
{
return;
}
GameObject val = GameObject.Find("Player_HUMAN0");
if (!((Object)(object)val != (Object)null))
{
return;
}
Player component = val.GetComponent<Player>();
if ((Object)(object)component != (Object)null)
{
AudioSource playerGameplayVoicesAudioSource = component.playerGameplayVoicesAudioSource;
if ((Object)(object)playerGameplayVoicesAudioSource != (Object)null)
{
playerGameplayVoicesAudioSource.volume = newVolume.Value;
}
}
}
}
[BepInPlugin("info.mariobluegloves.muteplayer", "Mute Player", "0.0.1")]
[BepInProcess("Bomb Rush Cyberfunk.exe")]
public class MutePlayerAudio : BaseUnityPlugin
{
private void Awake()
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"boost machine broke");
}
}
}