降低整体后座,修复M60弹链动画
This commit is contained in:
parent
1475f3a061
commit
c608e69f01
2 changed files with 9 additions and 3 deletions
|
@ -802,10 +802,16 @@ public class ClientEventHandler {
|
||||||
|
|
||||||
double gripRecoilY = switch (gripType) {
|
double gripRecoilY = switch (gripType) {
|
||||||
case 1 -> 0.7;
|
case 1 -> 0.7;
|
||||||
case 2 -> 2.25;
|
case 2 -> 1.75;
|
||||||
default -> 2.5;
|
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 cusWeight = player.getMainHandItem().getOrCreateTag().getDouble("CustomWeight");
|
||||||
|
|
||||||
double rpm = 1;
|
double rpm = 1;
|
||||||
|
|
|
@ -77,7 +77,7 @@ public class M60Item extends GunItem implements GeoItem, AnimatedItem {
|
||||||
ItemStack stack = player.getMainHandItem();
|
ItemStack stack = player.getMainHandItem();
|
||||||
if (!stack.is(ModTags.Items.GUN)) return PlayState.STOP;
|
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"));
|
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.m60.fire"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue