Decompiled source of Bullpapa v1.2.1

Bullpapa.dll

Decompiled 2 weeks ago
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 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("Bullpapa")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("Bullpapa")]
[assembly: AssemblyTitle("Bullpapa")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
internal class Bullpapa : MonoBehaviour
{
	public static void Initialize()
	{
		//IL_004e: Unknown result type (might be due to invalid IL or missing references)
		ArchetypeDataBlock block = GameDataBlockBase<ArchetypeDataBlock>.GetBlock(49u);
		block.DefaultClipSize = 44;
		block.Damage = 2.31f;
		block.DefaultReloadTime = 1.9f;
		block.ShotDelay = 0.06f;
		Vector2 damageFalloff = default(Vector2);
		((Vector2)(ref damageFalloff))..ctor(12f, 65f);
		GameDataBlockBase<ArchetypeDataBlock>.GetBlock(49u).DamageFalloff = damageFalloff;
		GameDataBlockBase<ArchetypeDataBlock>.GetBlock(49u).PrecisionDamageMulti = 0.8f;
	}
}
[BepInPlugin("Bullpapa", "Bullpapa", "1.2.1")]
internal class Loader : BasePlugin
{
	public override void Load()
	{
		((BasePlugin)this).AddComponent<Bullpapa>();
		EventAPI.OnAssetsLoaded += Bullpapa.Initialize;
	}
}