降低整体后座,修复M60弹链动画

This commit is contained in:
Atsuihsio 2024-11-13 03:11:57 +08:00
parent 1475f3a061
commit c608e69f01
2 changed files with 9 additions and 3 deletions

View file

@ -802,10 +802,16 @@ public class ClientEventHandler {
double gripRecoilY = switch (gripType) {
case 1 -> 0.7;
case 2 -> 2.25;
default -> 2.5;
case 2 -> 1.75;
default -> 2.0;
};
if (!player.getMainHandItem().is(ModTags.Items.CAN_CUSTOM_GUN)) {
recoil = 1.6;
gripRecoilX = 0.75;
gripRecoilY = 1.25;
}
double cusWeight = player.getMainHandItem().getOrCreateTag().getDouble("CustomWeight");
double rpm = 1;

View file

@ -77,7 +77,7 @@ public class M60Item extends GunItem implements GeoItem, AnimatedItem {
ItemStack stack = player.getMainHandItem();
if (!stack.is(ModTags.Items.GUN)) return PlayState.STOP;
if (stack.getOrCreateTag().getInt("fire_animation") > 0) {
if (ClientEventHandler.firePosTimer > 0 && ClientEventHandler.firePosTimer < 0.45) {
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.m60.fire"));
}