优化AK中距瞄准镜效果,提高SVD爆头倍率

This commit is contained in:
Atsuihsio 2025-02-23 01:50:55 +08:00
parent fef8d94fe2
commit b6e170cbca
5 changed files with 12732 additions and 12831 deletions

View file

@ -100,7 +100,7 @@ public class AK47ItemModel extends GeoModel<AK47Item> {
};
float posZ = switch (type) {
case 0, 1 -> 2.8f;
case 2 -> 4.2f;
case 2 -> 4.74f;
case 3 -> 3.9f;
default -> 0f;
};

View file

@ -114,8 +114,9 @@ public class AK47ItemRenderer extends GeoItemRenderer<AK47Item> {
}
if (GunsTool.getAttachmentType(itemStack, GunsTool.AttachmentType.SCOPE) == 2
&& (name.equals("Hidden") || name.equals("Barrel") || name.equals("humu") || name.equals("qiangguan") || name.equals("houzhunxing"))) {
bone.setHidden(!itemStack.getOrCreateTag().getBoolean("HoloHidden") && ClientEventHandler.zoom);
&& (name.equals("Hidden") || name.equals("gun") || name.equals("Lefthand")) && ClientEventHandler.zoom && !itemStack.getOrCreateTag().getBoolean("HoloHidden")) {
bone.setHidden(true);
renderingArms = false;
}
if (GunsTool.getAttachmentType(itemStack, GunsTool.AttachmentType.SCOPE) == 3

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 91 KiB

View file

@ -3,7 +3,7 @@
"RecoilX": 0.004,
"RecoilY": 0.009,
"Damage": 18,
"Headshot": 2,
"Headshot": 3,
"Velocity": 42,
"Magazine": 10,
"Weight": 5,