回滚手持武器开火计时逻辑

This commit is contained in:
Atsuihsio 2025-01-14 22:00:29 +08:00
parent da650e66a8
commit 30f828e08e

View file

@ -409,18 +409,24 @@ public class ClientEventHandler {
} else {
if (!clientTimer.started()) {
clientTimer.start();
shootClient(player);
// 首发瞬间发射
clientTimer.setProgress((cooldown + 1));
}
if (clientTimer.getProgress() >= cooldown) {
clientTimer.stop();
shootClient(player);
clientTimer.setProgress((clientTimer.getProgress() - cooldown));
}
}
if (notInGame()) {
clientTimer.stop();
}
} else {
if (mode != 0) {
clientTimer.stop();
}
fireSpread = 0;
}