Bump version to 1.2.0
This commit is contained in:
1 parent
10d6f82d0d
commit
0bdd0e65e8
2 files changed
+8
-6
No files matched your search
+7
-5
@@ -1,3 +1,4 @@
|
|||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
@@ -53,7 +54,7 @@ public class FullAuto : SonsMod
|
|||||||
if (!CheckFireInputPatch.HoldingGun)
|
if (!CheckFireInputPatch.HoldingGun)
|
||||||
CheckFireInputPatch.RestoreReloadSpeed();
|
CheckFireInputPatch.RestoreReloadSpeed();
|
||||||
|
|
||||||
if (!Enabled || !GameState.IsPlayerControllable || !CheckFireInputPatch.HoldingGun)
|
if (!Enabled || !CheckFireInputPatch.InGame || !CheckFireInputPatch.HoldingGun)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (Input.GetMouseButtonDown(2))
|
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 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()
|
internal static void CancelBurst()
|
||||||
{
|
{
|
||||||
_burstLeft = 0;
|
_burstLeft = 0;
|
||||||
@@ -387,7 +390,7 @@ internal static class CheckFireInputPatch
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
_triggerDown = true;
|
_triggerDown = true;
|
||||||
if (FullAuto.Enabled && FullAuto.Mode == FireMode.Burst && HoldingGun && GameState.IsPlayerControllable)
|
if (FullAuto.Enabled && FullAuto.Mode == FireMode.Burst && HoldingGun && InGame)
|
||||||
StartBurst();
|
StartBurst();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -446,7 +449,7 @@ internal static class CheckFireInputPatch
|
|||||||
var pressed = FirePressed();
|
var pressed = FirePressed();
|
||||||
var held = _triggerDown || pressed;
|
var held = _triggerDown || pressed;
|
||||||
|
|
||||||
if (!GameState.IsPlayerControllable)
|
if (!InGame)
|
||||||
{
|
{
|
||||||
_burstLeft = 0;
|
_burstLeft = 0;
|
||||||
return !held;
|
return !held;
|
||||||
@@ -554,5 +557,4 @@ internal static class CheckFireInputPatch
|
|||||||
RLog.Msg($"FullAuto {name}: {(allowed ? "full-auto" : "ignored")}");
|
RLog.Msg($"FullAuto {name}: {(allowed ? "full-auto" : "ignored")}");
|
||||||
return allowed;
|
return allowed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
"id": "FullAuto",
|
"id": "FullAuto",
|
||||||
"name": "FullAuto",
|
"name": "FullAuto",
|
||||||
"author": "JustinOros",
|
"author": "JustinOros",
|
||||||
"version": "1.1.0",
|
"version": "1.2.0",
|
||||||
"description": "Hold fire to shoot any gun full-auto at a configurable rate",
|
"description": "Hold fire to shoot any gun full-auto at a configurable rate",
|
||||||
"gameVersion": "1.0.0",
|
"gameVersion": "1.0.0",
|
||||||
"platform": "Client",
|
"platform": "Client",
|
||||||
|
|||||||
Reference in new issue
Block a user