modeloutline: Use rotation instead of orientation (#1607)

Orientation lags behind most of the times while rotation doesn't
This commit is contained in:
Owain van Brakel
2019-09-15 03:50:18 +02:00
committed by Ganom
parent 36259e0792
commit 7c4f1ae253
3 changed files with 8 additions and 2 deletions

View File

@@ -112,6 +112,8 @@ public interface Actor extends Entity
*/ */
int getOrientation(); int getOrientation();
int getCurrentOrientation();
/** /**
* Gets the current animation the actor is performing. * Gets the current animation the actor is performing.
* *

View File

@@ -948,7 +948,7 @@ public class ModelOutlineRenderer
drawModelOutline(npc.getModel(), lp.getX(), lp.getY(), drawModelOutline(npc.getModel(), lp.getX(), lp.getY(),
Perspective.getTileHeight(client, northEastLp, client.getPlane()), Perspective.getTileHeight(client, northEastLp, client.getPlane()),
npc.getOrientation(), outlineWidth, innerColor, outerColor); npc.getCurrentOrientation(), outlineWidth, innerColor, outerColor);
} }
} }
@@ -964,7 +964,7 @@ public class ModelOutlineRenderer
{ {
drawModelOutline(player.getModel(), lp.getX(), lp.getY(), drawModelOutline(player.getModel(), lp.getX(), lp.getY(),
Perspective.getTileHeight(client, lp, client.getPlane()), Perspective.getTileHeight(client, lp, client.getPlane()),
player.getOrientation(), outlineWidth, innerColor, outerColor); player.getCurrentOrientation(), outlineWidth, innerColor, outerColor);
} }
} }

View File

@@ -127,6 +127,10 @@ public interface RSActor extends RSEntity, Actor
@Override @Override
int getOrientation(); int getOrientation();
@Import("rotation")
@Override
int getCurrentOrientation();
// Health stuff // Health stuff
@Import("healthBars") @Import("healthBars")