WeaponMechanics / MechanicsMain

A New Age of Weapons in Minecraft.
https://www.spigotmc.org/resources/WeaponMechanics.99913/
MIT License
85 stars 29 forks source link

Realistic reload for SLIDE weapons(like AKM: 30+1) #476

Open 0512-1912 opened 2 weeks ago

0512-1912 commented 2 weeks ago

Description

Modern SLIDE Weapons usually contains 1 bullet in gun before you shoot all the ammo out,changing magazine(30 rounds) will make the weapon actually contain 30+1 bullets.

In game, the weapon will automatically reload twice when ammo comes to 0(0->30,30->31)

I wonder if there's a better solution for it.

Versions: WeaponMechanics: 3.5.3 Minecraft Server: 1.21

Configuration

Firearm_Action: Type: "SLIDE" Reload: Magazine_Size: 31 Ammo_Per_Reload: 30

Payment (optional)

0512-1912 commented 2 weeks ago

Add: Firearm_Action: Type: "SLIDE" IsClosedBolt: true Reload: Magazine_Size: 31 Ammo_Per_Reload: 30

Stops reload when the 30-rounds mag is on(Ammo of the weapon 0->30),if the gunner wants 31 rounds,they need to reload again.