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 getCurrentOrientation();
/**
* Gets the current animation the actor is performing.
*

View File

@@ -948,7 +948,7 @@ public class ModelOutlineRenderer
drawModelOutline(npc.getModel(), lp.getX(), lp.getY(),
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(),
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
int getOrientation();
@Import("rotation")
@Override
int getCurrentOrientation();
// Health stuff
@Import("healthBars")