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.Logging;
using Microsoft.CodeAnalysis;
using Photon.Pun;
using REPOAlchemy;
using UnityEngine;
[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.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyCompany("Exploder")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("Exploder")]
[assembly: AssemblyTitle("Exploder")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.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;
}
}
}
public class ClusterBomb : MonoBehaviour
{
public float explosionradius = 0.8f;
public int playerdamage = 50;
public int enemydamage = 100;
public float forcemult = 4f;
public int clusteramount = 6;
public GameObject grenadePrefab;
private ParticleScriptExplosion particleScriptExplosion;
private PhotonView photonView;
public Sound soundExplosion;
public Sound soundExplosionGlobal;
private void Start()
{
particleScriptExplosion = ((Component)this).GetComponent<ParticleScriptExplosion>();
photonView = ((Component)this).GetComponent<PhotonView>();
}
public void ExplosionCluster()
{
//IL_0102: Unknown result type (might be due to invalid IL or missing references)
//IL_0138: Unknown result type (might be due to invalid IL or missing references)
//IL_0163: Unknown result type (might be due to invalid IL or missing references)
//IL_0038: 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)
//IL_003e: Unknown result type (might be due to invalid IL or missing references)
//IL_0043: Unknown result type (might be due to invalid IL or missing references)
//IL_00af: Unknown result type (might be due to invalid IL or missing references)
//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
//IL_00b6: Unknown result type (might be due to invalid IL or missing references)
//IL_00bb: Unknown result type (might be due to invalid IL or missing references)
if (!SemiFunc.IsMultiplayer())
{
Vector3 val = default(Vector3);
for (int i = 0; i < clusteramount; i++)
{
((Vector3)(ref val))..ctor(0f, 0.2f * (float)i, 0f);
ItemGrenadeHuman component = Object.Instantiate<GameObject>(grenadePrefab, ((Component)this).transform.position + val, Quaternion.identity).GetComponent<ItemGrenadeHuman>();
component.Initialize();
component.Spawn();
}
}
else if (SemiFunc.IsMasterClient())
{
Vector3 val2 = default(Vector3);
for (int j = 0; j < 3; j++)
{
((Vector3)(ref val2))..ctor(0f, 0.2f * (float)j, 0f);
GameObject val3 = PhotonNetwork.Instantiate("Items/Item Grenade Human", ((Component)this).transform.position + val2, Quaternion.identity, (byte)0, (object[])null);
val3.GetComponent<ItemGrenadeHuman>().Initialize();
val3.GetComponent<ItemGrenadeHuman>().Spawn();
}
}
particleScriptExplosion.Spawn(((Component)this).transform.position, explosionradius, playerdamage, enemydamage, forcemult, false, true, 1f);
soundExplosion.Play(((Component)this).transform.position, 1f, 1f, 1f, 1f);
soundExplosionGlobal.Play(((Component)this).transform.position, 1f, 1f, 1f, 1f);
}
}
namespace Exploder
{
internal class Exploder : MonoBehaviour
{
public int radius = 1;
public int playerdamage = 100;
public int enemydamage = 200;
public int knockbackforcemult = 1;
public bool particlesonly = false;
public bool disablesound = false;
public int screenshakemult = 1;
public void Explosion()
{
//IL_000d: Unknown result type (might be due to invalid IL or missing references)
((Component)this).GetComponent<ParticleScriptExplosion>().Spawn(((Component)this).transform.position, (float)radius, playerdamage, enemydamage, (float)knockbackforcemult, particlesonly, disablesound, (float)screenshakemult);
}
}
[BepInPlugin("Exploder", "Exploder", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
internal static ManualLogSource Logger;
private void Awake()
{
Tools.RegisterIngredientByValuableName("Uranium Mug", "uraniummug", false, false, false, 1f, 1f);
Tools.RegisterIngredientByValuableName("Uranium Plate", "uraniumplate", false, false, false, 1f, 1f);
Tools.RegisterIngredientByValuableName("Diamond", "diamond", false, false, false, 1f, 1f);
Logger = ((BaseUnityPlugin)this).Logger;
Logger.LogInfo((object)"Plugin Exploder is loaded!");
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "Exploder";
public const string PLUGIN_NAME = "Exploder";
public const string PLUGIN_VERSION = "1.0.0";
}
}