Decompiled source of R6 HELGun v0.0.2

HelGun.dll

Decompiled 2 weeks ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
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("HelGun")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("HelGun")]
[assembly: AssemblyTitle("HelGun")]
[assembly: AssemblyVersion("1.0.0.0")]
[BepInPlugin("HelGun R6", "HelGun R6", "0.0.2")]
internal class Loader : BasePlugin
{
	public override void Load()
	{
		((BasePlugin)this).AddComponent<HelGun>();
		EventAPI.OnAssetsLoaded += HelGun.Initialize;
	}
}
internal class HelGun : MonoBehaviour
{
	public static void Initialize()
	{
		GameDataBlockBase<ArchetypeDataBlock>.GetBlock(21u).SpecialChargetupTime = 0.07f;
		RecoilDataBlock block = GameDataBlockBase<RecoilDataBlock>.GetBlock(22u);
		block.power.Min = 3f;
		block.power.Max = 4f;
		block.recoilAimingWeight = 0.6f;
	}
}