change stagger state to actuall stun objects temporarily.
Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com> Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
57f9a1d132
commit
6fd0b4feb4
@ -47,6 +47,9 @@ public abstract class PhysicsObject extends AnimatedObject implements PhysicsObj
|
||||
}
|
||||
|
||||
protected void handleMovementPhysics(double updateMult) {
|
||||
if (state==State.STAGGER) {
|
||||
return;
|
||||
}
|
||||
int right = rightKeyHeld()?1:0;
|
||||
int left = leftKeyHeld()?1:0;
|
||||
if(state==State.SLIDE){
|
||||
|
@ -34,7 +34,7 @@ public class KnifeSwing extends AttachableObject{
|
||||
|
||||
@Override
|
||||
public void collisionEvent(AnimatedObject obj) {
|
||||
System.out.println("Bonk");
|
||||
//System.out.println("Bonk");
|
||||
if(obj instanceof PhysicsObject){
|
||||
PhysicsObject pobj = (PhysicsObject)obj;
|
||||
if(pobj.state!=State.STAGGER){
|
||||
|
Loading…
x
Reference in New Issue
Block a user