WeaponMechanics / MechanicsMain

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

Single shot of automatic weapon #101

Open MelonHell opened 2 years ago

MelonHell commented 2 years ago

Description

The idea is that the first shot from an automatic weapon is single, after 200 ms auto-shooting begins. This will allow you to make single shots with a single press of the RMB and auto-shoot by holding the RMB

I did it like this, but it's shitcode image

DeeCaaD commented 2 years ago

hmm... this is reasonable way to do that. The full-auto can then only be started after 4 ticks, but I guess it isn't that noticable difference

CJCrafter commented 2 years ago

1/5th of a second will be extremely noticeable for humans... But since multiple people have requested this, maybe we should add it as a config.yml option

DeeCaaD commented 2 years ago

Maybe simple boolean? And in wiki tell how this affects weapon Fully_Automatic_Allow_One_Shot: <true/false>