h
This commit is contained in:
parent
0cdf560f09
commit
56648b5bdb
@ -603,7 +603,7 @@ public class mainThread extends JFrame implements KeyListener, ActionListener, M
|
|||||||
|
|
||||||
if(capturedMouse && !mouseLeftScreen && !focusLost) {
|
if(capturedMouse && !mouseLeftScreen && !focusLost) {
|
||||||
currentMouseX = MouseInfo.getPointerInfo().getLocation().x;
|
currentMouseX = MouseInfo.getPointerInfo().getLocation().x;
|
||||||
currentMouseY = MouseInfo.getPointerInfo().getLocation().y;
|
currentMouseY = MouseInfo.getPointerInfo().getLocation().y;
|
||||||
|
|
||||||
int deltaX = currentMouseX - centerScreenX;
|
int deltaX = currentMouseX - centerScreenX;
|
||||||
int deltaY = currentMouseY - centerScreenY;
|
int deltaY = currentMouseY - centerScreenY;
|
||||||
|
@ -1067,7 +1067,7 @@ public class heavyTank extends solidObject{
|
|||||||
|
|
||||||
|
|
||||||
if(targetObject.type == 6)
|
if(targetObject.type == 6)
|
||||||
theDamage = 20;
|
theDamage = myDamage/3*4;
|
||||||
|
|
||||||
firingPosition.set(0.022f, -0.4f, 0.2f);
|
firingPosition.set(0.022f, -0.4f, 0.2f);
|
||||||
firingPosition.rotate_XZ(360 - attackAngle);
|
firingPosition.rotate_XZ(360 - attackAngle);
|
||||||
@ -1091,7 +1091,7 @@ public class heavyTank extends solidObject{
|
|||||||
if(attackCoolDown == myAttackCooldown - 8 && targetObject.currentHP >0 && hasLineOfSightToTarget){
|
if(attackCoolDown == myAttackCooldown - 8 && targetObject.currentHP >0 && hasLineOfSightToTarget){
|
||||||
|
|
||||||
if(targetObject.type == 6)
|
if(targetObject.type == 6)
|
||||||
theDamage = 20;
|
theDamage = myDamage/3*4;
|
||||||
|
|
||||||
firingPosition.set(-0.022f, -0.4f, 0.2f);
|
firingPosition.set(-0.022f, -0.4f, 0.2f);
|
||||||
firingPosition.rotate_XZ(360 - attackAngle);
|
firingPosition.rotate_XZ(360 - attackAngle);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user