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.Unity.IL2CPP; using GTFO.API; using GameData; 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(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("Bulpapa")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Bulpapa")] [assembly: AssemblyTitle("Bulpapa")] [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; } } } internal class bulpapa : MonoBehaviour { public static void Initialize() { //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: Unknown result type (might be due to invalid IL or missing references) //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_0179: Unknown result type (might be due to invalid IL or missing references) //IL_021a: Unknown result type (might be due to invalid IL or missing references) //IL_02dc: Unknown result type (might be due to invalid IL or missing references) //IL_0363: Unknown result type (might be due to invalid IL or missing references) ArchetypeDataBlock block = GameDataBlockBase.GetBlock(42u); block.Damage = 4f; block.DefaultReloadTime = 1.3f; block.StaggerDamageMulti = 1.6f; ArchetypeDataBlock block2 = GameDataBlockBase.GetBlock(77u); block2.Damage = 2.45f; Vector2 damageFalloff = default(Vector2); ((Vector2)(ref damageFalloff))..ctor(8f, 65f); GameDataBlockBase.GetBlock(77u).DamageFalloff = damageFalloff; ArchetypeDataBlock block3 = GameDataBlockBase.GetBlock(49u); block3.DefaultClipSize = 44; block3.Damage = 2.41f; block3.DefaultReloadTime = 1.35f; block3.ShotDelay = 0.064f; block3.PrecisionDamageMulti = 0.8f; Vector2 damageFalloff2 = default(Vector2); ((Vector2)(ref damageFalloff2))..ctor(12f, 65f); GameDataBlockBase.GetBlock(49u).DamageFalloff = damageFalloff2; ArchetypeDataBlock block4 = GameDataBlockBase.GetBlock(19u); block4.Damage = 2.45f; ArchetypeDataBlock block5 = GameDataBlockBase.GetBlock(69u); block5.PiercingBullets = true; block5.PiercingDamageCountLimit = 2; block5.Damage = 3.2f; Vector2 damageFalloff3 = default(Vector2); ((Vector2)(ref damageFalloff3))..ctor(10f, 65f); GameDataBlockBase.GetBlock(69u).DamageFalloff = damageFalloff3; ArchetypeDataBlock block6 = GameDataBlockBase.GetBlock(5u); block6.Damage = 2.45f; block6.DefaultClipSize = 40; block6.DefaultReloadTime = 1.6f; ArchetypeDataBlock block7 = GameDataBlockBase.GetBlock(81u); block7.ShotDelay = 0.55f; Vector2 damageFalloff4 = default(Vector2); ((Vector2)(ref damageFalloff4))..ctor(10f, 40f); GameDataBlockBase.GetBlock(81u).DamageFalloff = damageFalloff4; ArchetypeDataBlock block8 = GameDataBlockBase.GetBlock(73u); block8.Damage = 5.45f; block8.DefaultClipSize = 20; block8.DefaultReloadTime = 3.25f; block8.PrecisionDamageMulti = 0.7f; block8.CostOfBullet = 1.8f; RecoilDataBlock block9 = GameDataBlockBase.GetBlock(42u); block9.power.Min = 0.45f; block9.power.Max = 0.6f; block9.recoilAimingWeight = 0.6f; Vector2 damageFalloff5 = default(Vector2); ((Vector2)(ref damageFalloff5))..ctor(15f, 80f); GameDataBlockBase.GetBlock(73u).DamageFalloff = damageFalloff5; ArchetypeDataBlock block10 = GameDataBlockBase.GetBlock(79u); block10.DefaultReloadTime = 2.8f; block10.CostOfBullet = 3.5f; block10.Damage = 15f; block10.DefaultClipSize = 8; ArchetypeDataBlock block11 = GameDataBlockBase.GetBlock(37u); block11.Damage = 16f; block11.CostOfBullet = 4.2f; block11.PrecisionDamageMulti = 0.8f; ArchetypeDataBlock block12 = GameDataBlockBase.GetBlock(17u); block12.CostOfBullet = 1.24f; block12.FireMode = (eWeaponFireMode)2; block12.ShotDelay = 0.1f; block12.DefaultReloadTime = 2.3f; Vector2 damageFalloff6 = default(Vector2); ((Vector2)(ref damageFalloff6))..ctor(10f, 58f); GameDataBlockBase.GetBlock(17u).DamageFalloff = damageFalloff6; RecoilDataBlock block13 = GameDataBlockBase.GetBlock(15u); block13.power.Min = 0.25f; block13.power.Max = 0.35f; RecoilDataBlock block14 = GameDataBlockBase.GetBlock(47u); block14.power.Min = 8f; block14.power.Max = 10f; block14.recoilAimingWeight = 0.7f; Vector2 damageFalloff7 = default(Vector2); ((Vector2)(ref damageFalloff7))..ctor(15f, 65f); GameDataBlockBase.GetBlock(80u).DamageFalloff = damageFalloff7; ArchetypeDataBlock block15 = GameDataBlockBase.GetBlock(21u); block15.SpecialChargetupTime = 0.1f; } } namespace Bulpapa { [BepInPlugin("Caera.BetterGuns", "BetterGuns", "1.2.7")] internal sealed class EntryPoint : BasePlugin { public const string MODNAME = "BetterGuns"; public override void Load() { ((BasePlugin)this).Log.LogMessage((object)"Loading BetterGuns"); ((BasePlugin)this).AddComponent(); EventAPI.OnAssetsLoaded += bulpapa.Initialize; ((BasePlugin)this).Log.LogMessage((object)"Loaded BetterGuns"); } } }