调整子弹
This commit is contained in:
parent
8ff78be2cc
commit
f5780ca256
1 changed files with 2 additions and 2 deletions
|
@ -223,11 +223,11 @@ public class ProjectileEntity extends Entity implements IEntityAdditionalSpawnDa
|
|||
float eyeHeight = entity.getEyeHeight();
|
||||
float BodyHeight = entity.getBbHeight();
|
||||
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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue