using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using Microsoft.CodeAnalysis;
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(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: AssemblyCompany("VALORANT_MOD_LETHAL")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("VALORANT_MOD_LETHAL")]
[assembly: AssemblyTitle("VALORANT_MOD_LETHAL")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
internal sealed class NullableAttribute : Attribute
{
public readonly byte[] NullableFlags;
public NullableAttribute(byte P_0)
{
NullableFlags = new byte[1] { P_0 };
}
public NullableAttribute(byte[] P_0)
{
NullableFlags = P_0;
}
}
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
internal sealed class NullableContextAttribute : Attribute
{
public readonly byte Flag;
public NullableContextAttribute(byte P_0)
{
Flag = P_0;
}
}
}
namespace ModelReplacement
{
public class MRASTRA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "ASTRA";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRBREACH : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "BREACH";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRBRIMSTONE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "BRIMSTONE";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRCHAMBER : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "CHAMBER";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRCYPHER : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "CYPHER";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRCLOVE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "CLOVE";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRDEADLOCK : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "DEADLOCK";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRFADE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "FADE";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRGEKKO : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "GEKKO";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRHARBOR : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "HARBOR";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRISO : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "ISO";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRJETT : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "JETT";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRKAYO : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "KAYO";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRKILLJOY : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "KILLJOY";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRNEON : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "NEON";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MROMEN : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "OMEN";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRPHOENIX : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "PHOENIX";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRRAZE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "RAZE";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRREYNA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "REYNA";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRSAGE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "SAGE";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRSKYE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "SKYE";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRSOVA : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "SOVA";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRVIPER : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "VIPER";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRVYSE : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "VYSE";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRWINGMAN : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "WINGMAN";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
public class MRYORU : BodyReplacementBase
{
protected override GameObject LoadAssetsAndReturnModel()
{
string text = "YORU";
return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
}
}
[BepInPlugin("astrodart_VALORANT_AGENTS", "VALORANT_AGENTS", "1.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
private void Awake()
{
//IL_0230: Unknown result type (might be due to invalid IL or missing references)
//IL_0236: Expected O, but got Unknown
Assets.PopulateAssets();
ModelReplacementAPI.RegisterSuitModelReplacement("ASTRA", typeof(MRASTRA));
ModelReplacementAPI.RegisterSuitModelReplacement("BREACH", typeof(MRBREACH));
ModelReplacementAPI.RegisterSuitModelReplacement("BRIMSTONE", typeof(MRBRIMSTONE));
ModelReplacementAPI.RegisterSuitModelReplacement("CHAMBER", typeof(MRCHAMBER));
ModelReplacementAPI.RegisterSuitModelReplacement("CLOVE", typeof(MRCLOVE));
ModelReplacementAPI.RegisterSuitModelReplacement("CYPHER", typeof(MRCYPHER));
ModelReplacementAPI.RegisterSuitModelReplacement("DEADLOCK", typeof(MRDEADLOCK));
ModelReplacementAPI.RegisterSuitModelReplacement("FADE", typeof(MRFADE));
ModelReplacementAPI.RegisterSuitModelReplacement("GEKKO", typeof(MRGEKKO));
ModelReplacementAPI.RegisterSuitModelReplacement("HARBOR", typeof(MRHARBOR));
ModelReplacementAPI.RegisterSuitModelReplacement("ISO", typeof(MRISO));
ModelReplacementAPI.RegisterSuitModelReplacement("JETT", typeof(MRJETT));
ModelReplacementAPI.RegisterSuitModelReplacement("KAYO", typeof(MRKAYO));
ModelReplacementAPI.RegisterSuitModelReplacement("KILLJOY", typeof(MRKILLJOY));
ModelReplacementAPI.RegisterSuitModelReplacement("NEON", typeof(MRNEON));
ModelReplacementAPI.RegisterSuitModelReplacement("OMEN", typeof(MROMEN));
ModelReplacementAPI.RegisterSuitModelReplacement("PHOENIX", typeof(MRPHOENIX));
ModelReplacementAPI.RegisterSuitModelReplacement("RAZE", typeof(MRRAZE));
ModelReplacementAPI.RegisterSuitModelReplacement("REYNA", typeof(MRREYNA));
ModelReplacementAPI.RegisterSuitModelReplacement("SAGE", typeof(MRSAGE));
ModelReplacementAPI.RegisterSuitModelReplacement("SKYE", typeof(MRSKYE));
ModelReplacementAPI.RegisterSuitModelReplacement("SOVA", typeof(MRSOVA));
ModelReplacementAPI.RegisterSuitModelReplacement("VIPER", typeof(MRVIPER));
ModelReplacementAPI.RegisterSuitModelReplacement("VYSE", typeof(MRVYSE));
ModelReplacementAPI.RegisterSuitModelReplacement("WINGMAN", typeof(MRWINGMAN));
ModelReplacementAPI.RegisterSuitModelReplacement("YORU", typeof(MRYORU));
Harmony val = new Harmony("astrodart_VALORANT_AGENTS");
val.PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin astrodart_VALORANT_AGENTS is loaded!");
}
}
public static class Assets
{
public static string mainAssetBundleName = "valorant_bundle";
public static AssetBundle MainAssetBundle = null;
private static string GetAssemblyName()
{
return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_");
}
public static void PopulateAssets()
{
if ((Object)(object)MainAssetBundle == (Object)null)
{
Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName);
using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName);
MainAssetBundle = AssetBundle.LoadFromStream(stream);
}
}
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}