Auto reload no longer waits for trigger release
This commit is contained in:
+6
-2
@@ -374,7 +374,7 @@ internal static class CheckFireInputPatch
|
||||
return;
|
||||
|
||||
var ammo = weapon.GetAmmo();
|
||||
if (ammo == null || !ammo.IsEmpty() || FirePressed())
|
||||
if (ammo == null || !ammo.IsEmpty())
|
||||
{
|
||||
_emptySince = -1f;
|
||||
return;
|
||||
@@ -390,10 +390,14 @@ internal static class CheckFireInputPatch
|
||||
if (now - _emptySince < AutoReloadDelay || now < _nextReloadTry)
|
||||
return;
|
||||
|
||||
_nextReloadTry = now + 2f;
|
||||
_nextReloadTry = now + 0.5f;
|
||||
|
||||
if (!controller.CanReload())
|
||||
{
|
||||
if (FullAuto.Verbose)
|
||||
RLog.Msg($"FullAuto auto reload waiting, game says cannot reload (aiming: {controller.IsAiming})");
|
||||
return;
|
||||
}
|
||||
|
||||
if (PressReloadKey())
|
||||
{
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
"id": "FullAuto",
|
||||
"name": "FullAuto",
|
||||
"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",
|
||||
"gameVersion": "1.0.0",
|
||||
"platform": "Client",
|
||||
|
||||
Reference in New Issue
Block a user