Bump version to 1.2.0

This commit is contained in:
Justin Oros
2026-09-16 16:21:03 -07:00
parent 10d6f82d0d
commit 0bdd0e65e8
2 changed files with 8 additions and 6 deletions
+6 -4
View File
@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO;
using HarmonyLib;
@@ -53,7 +54,7 @@ public class FullAuto : SonsMod
if (!CheckFireInputPatch.HoldingGun)
CheckFireInputPatch.RestoreReloadSpeed();
if (!Enabled || !GameState.IsPlayerControllable || !CheckFireInputPatch.HoldingGun)
if (!Enabled || !CheckFireInputPatch.InGame || !CheckFireInputPatch.HoldingGun)
return;
if (Input.GetMouseButtonDown(2))
@@ -232,6 +233,8 @@ internal static class CheckFireInputPatch
internal static bool HoldingGun => _lastGunTime >= 0f && Time.time - _lastGunTime < 0.25f;
internal static bool InGame => GameState.IsPlayerControllable && !Cursor.visible && !LocalPlayer.IsInInventory && Time.timeScale > 0f;
internal static void CancelBurst()
{
_burstLeft = 0;
@@ -387,7 +390,7 @@ internal static class CheckFireInputPatch
return;
_triggerDown = true;
if (FullAuto.Enabled && FullAuto.Mode == FireMode.Burst && HoldingGun && GameState.IsPlayerControllable)
if (FullAuto.Enabled && FullAuto.Mode == FireMode.Burst && HoldingGun && InGame)
StartBurst();
return;
}
@@ -446,7 +449,7 @@ internal static class CheckFireInputPatch
var pressed = FirePressed();
var held = _triggerDown || pressed;
if (!GameState.IsPlayerControllable)
if (!InGame)
{
_burstLeft = 0;
return !held;
@@ -555,4 +558,3 @@ internal static class CheckFireInputPatch
return allowed;
}
}
+1 -1
View File
@@ -3,7 +3,7 @@
"id": "FullAuto",
"name": "FullAuto",
"author": "JustinOros",
"version": "1.1.0",
"version": "1.2.0",
"description": "Hold fire to shoot any gun full-auto at a configurable rate",
"gameVersion": "1.0.0",
"platform": "Client",