Auto reload no longer waits for trigger release

This commit is contained in:
Justin Oros
2026-09-20 23:35:53 -07:00
parent 6defa601d5
commit 6def40ffeb
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -374,7 +374,7 @@ internal static class CheckFireInputPatch
return; return;
var ammo = weapon.GetAmmo(); var ammo = weapon.GetAmmo();
if (ammo == null || !ammo.IsEmpty() || FirePressed()) if (ammo == null || !ammo.IsEmpty())
{ {
_emptySince = -1f; _emptySince = -1f;
return; return;
@@ -390,10 +390,14 @@ internal static class CheckFireInputPatch
if (now - _emptySince < AutoReloadDelay || now < _nextReloadTry) if (now - _emptySince < AutoReloadDelay || now < _nextReloadTry)
return; return;
_nextReloadTry = now + 2f; _nextReloadTry = now + 0.5f;
if (!controller.CanReload()) if (!controller.CanReload())
{
if (FullAuto.Verbose)
RLog.Msg($"FullAuto auto reload waiting, game says cannot reload (aiming: {controller.IsAiming})");
return; return;
}
if (PressReloadKey()) if (PressReloadKey())
{ {
+1 -1
View File
@@ -3,7 +3,7 @@
"id": "FullAuto", "id": "FullAuto",
"name": "FullAuto", "name": "FullAuto",
"author": "JustinOros", "author": "JustinOros",
"version": "1.5.4", "version": "1.5.5",
"description": "Full-auto, semi-auto and 3-round burst for guns, with fast reload and a flashlight toggle", "description": "Full-auto, semi-auto and 3-round burst for guns, with fast reload and a flashlight toggle",
"gameVersion": "1.0.0", "gameVersion": "1.0.0",
"platform": "Client", "platform": "Client",