The plugin doesn't reload the launcher when moving around in noclip and holding shift while at speeds of 30-35+ (player.noclipspeedfast). Not sure if just a limitation of Rust or not.
Noclip Launcher Bug
Which launcher are you referring to?
Lincoln
Which launcher are you referring to?
Rocket launcher and the new homing rocket launcher
As a plugin dev, I believe you get the option to submit a patch with a fix.
8SecSleeperAs a plugin dev, I believe you get the option to submit a patch with a fix.
Yep, you can, but not all plugins allow it, I believe this one did, but I have no idea how to fix it tbh lol didn't look into it enough, not sure the exact cause of it either, likely a speed issue kinda thing, just not sure why. Thats why I mentioned the not being sure if its just a limitation of Rust itself.
@ViolationHandler
When you noclip across the map very quickly, you'll notice that your held weapon animation cycles. I suspect during this time the held entity goes null for a brief moment.
Every time the rocket launcher is fired, my code runs this snippet below. If for whatever reason the weapon is null, it just returns. I wonder if the fast noclipping that causes the animation reload causes the weapon to go null.
var weapon = heldEntity.GetHeldEntity() as BaseProjectile;
if (weapon == null)
{
return;
}Merged post
Actually, after further debugging I found the issue... When noclipping at normal speed and shooting the rocket, the hook
OnRocketLaunched(BasePlayer player)is called normally. However, when you noclip too quickly across the map and shoot the rocket launcher, this function is never called, hence why the rocket launcher never gets auto reloaded by this code
heldEntity.condition = heldEntity.info.condition.max;
Lincoln
Actually, after further debugging I found the issue... When noclipping at normal speed and shooting the rocket, the hook
OnRocketLaunched(BasePlayer player)is called normally. However, when you noclip too quickly across the map and shoot the rocket launcher, this function is never called, hence why the rocket launcher never gets auto reloaded by this code
Ah, interesting, after further testing I notice its seemingly a noclip issue too, I was going really fast on a tugboat and it seemed to allow me to shoot rockets perfectly fine. Also, while no clipping and going fast, the rocket doesn't even actually launch, thats presumably why the hook doesn't actually get called.