调整子弹

This commit is contained in:
Atsuihsio 2024-12-15 16:59:20 +08:00
parent 8ff78be2cc
commit f5780ca256

View file

@ -223,11 +223,11 @@ public class ProjectileEntity extends Entity implements IEntityAdditionalSpawnDa
float eyeHeight = entity.getEyeHeight(); float eyeHeight = entity.getEyeHeight();
float BodyHeight = entity.getBbHeight(); float BodyHeight = entity.getBbHeight();
if ((eyeHeight - 0.35) < hitBoxPos.y && hitBoxPos.y < (eyeHeight + 0.4) && if ((eyeHeight - 0.35) < hitBoxPos.y && hitBoxPos.y < (eyeHeight + 0.4) &&
!(entity instanceof ClaymoreEntity || entity instanceof MortarEntity || entity instanceof ICannonEntity || entity instanceof DroneEntity)) { !(entity instanceof ClaymoreEntity || entity instanceof MortarEntity || entity instanceof IVehicleEntity || entity instanceof DroneEntity)) {
headshot = true; headshot = true;
} }
if (hitBoxPos.y < (0.33 * BodyHeight) && !(entity instanceof ClaymoreEntity || entity instanceof MortarEntity || if (hitBoxPos.y < (0.33 * BodyHeight) && !(entity instanceof ClaymoreEntity || entity instanceof MortarEntity ||
entity instanceof ICannonEntity || entity instanceof DroneEntity)) { entity instanceof IVehicleEntity || entity instanceof DroneEntity)) {
legShot = true; legShot = true;
} }