Immersive Vehicles (Formerly Transport Simulator)

Immersive Vehicles (Formerly Transport Simulator)

4M Downloads

[BUG] Guns don't reload if they can fit ammo, they only reload when empty.

boot2big opened this issue ยท 7 comments

commented

For shotguns, missiles or the like where you're physically loading in a single ammo item at a time without doing it every time the gun runs out of ammo, because you only loaded in one shot.

Basically:
Undefined/False: Current load system, keep firing and wait to reload until the gun is at 0 ammo or the user manually reloads
True: Old load system where the gun would reload the first chance it gets, but less buggily so we don't load more ammo into the gun than it should hold.

Another possible solution to both this and a bug that you may have already patched, though I haven't tested for it recently, would be to just check if current ammo count > max ammo count, and if so then set the ammo to max ammo count minus one (or minus none, since you could theoretically have a fully loaded mag/clip along with a chambered round)

commented

I'm confused what you want here? As to guns, they reload whenever they have enough ammo slots to take an ammo. So a 6-shooter will fill up with a bullet if you fire one bullet, or if you fire all 6. It'll just take a while to fill up the shooter because you have a slow reload time. Or you can have pre-loaded cartriges like IE, and it'll load all 6.

commented

In my experience guns have not been working that way though.

Say I have two shotguns, a double barrel and a street sweeper, at least in creative mode the street sweeper only loads itself with one ammo item similarly to the DB shotty (Shotgun slug item is equivalent to two ammo bullets) meaning the streetsweeper essentially only seems to hold as much ammo as the DB.

I may need to test more in survival mode, but if this is too complex of a ticket I won't be heartbroken if it gets backburnered or wontdo'ed

commented

Since guns should always take ammo if they can fit it, this ticket is actually a bug, not an enhancement. If you could confirm and give me a gun to test with, it would be appreciated.

commented

Sure, will build a jar real quick and DM it to you ASAP

commented

Survival devmode test, it seems part of the issue could be related to devmode infinite ammo, or else guns just aren't consuming ammo at all.
Reloading game with devmode disabled

2022-08-06.12-37-37.mp4
commented

Unrelated to devmode ammo consumption, gun still won't load past two rounds (one item)

2022-08-06.12-40-46.mp4
commented

Fixed in V22.0.0