优化AK中距瞄准镜效果,提高SVD爆头倍率
This commit is contained in:
parent
fef8d94fe2
commit
b6e170cbca
5 changed files with 12732 additions and 12831 deletions
|
@ -100,7 +100,7 @@ public class AK47ItemModel extends GeoModel<AK47Item> {
|
||||||
};
|
};
|
||||||
float posZ = switch (type) {
|
float posZ = switch (type) {
|
||||||
case 0, 1 -> 2.8f;
|
case 0, 1 -> 2.8f;
|
||||||
case 2 -> 4.2f;
|
case 2 -> 4.74f;
|
||||||
case 3 -> 3.9f;
|
case 3 -> 3.9f;
|
||||||
default -> 0f;
|
default -> 0f;
|
||||||
};
|
};
|
||||||
|
|
|
@ -114,8 +114,9 @@ public class AK47ItemRenderer extends GeoItemRenderer<AK47Item> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GunsTool.getAttachmentType(itemStack, GunsTool.AttachmentType.SCOPE) == 2
|
if (GunsTool.getAttachmentType(itemStack, GunsTool.AttachmentType.SCOPE) == 2
|
||||||
&& (name.equals("Hidden") || name.equals("Barrel") || name.equals("humu") || name.equals("qiangguan") || name.equals("houzhunxing"))) {
|
&& (name.equals("Hidden") || name.equals("gun") || name.equals("Lefthand")) && ClientEventHandler.zoom && !itemStack.getOrCreateTag().getBoolean("HoloHidden")) {
|
||||||
bone.setHidden(!itemStack.getOrCreateTag().getBoolean("HoloHidden") && ClientEventHandler.zoom);
|
bone.setHidden(true);
|
||||||
|
renderingArms = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GunsTool.getAttachmentType(itemStack, GunsTool.AttachmentType.SCOPE) == 3
|
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 |
|
@ -3,7 +3,7 @@
|
||||||
"RecoilX": 0.004,
|
"RecoilX": 0.004,
|
||||||
"RecoilY": 0.009,
|
"RecoilY": 0.009,
|
||||||
"Damage": 18,
|
"Damage": 18,
|
||||||
"Headshot": 2,
|
"Headshot": 3,
|
||||||
"Velocity": 42,
|
"Velocity": 42,
|
||||||
"Magazine": 10,
|
"Magazine": 10,
|
||||||
"Weight": 5,
|
"Weight": 5,
|
||||||
|
|
Loading…
Add table
Reference in a new issue