modeloutline: Use rotation instead of orientation (#1607)
Orientation lags behind most of the times while rotation doesn't
This commit is contained in:
@@ -112,6 +112,8 @@ public interface Actor extends Entity
|
||||
*/
|
||||
int getOrientation();
|
||||
|
||||
int getCurrentOrientation();
|
||||
|
||||
/**
|
||||
* Gets the current animation the actor is performing.
|
||||
*
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -127,6 +127,10 @@ public interface RSActor extends RSEntity, Actor
|
||||
@Override
|
||||
int getOrientation();
|
||||
|
||||
@Import("rotation")
|
||||
@Override
|
||||
int getCurrentOrientation();
|
||||
|
||||
// Health stuff
|
||||
|
||||
@Import("healthBars")
|
||||
|
||||
Reference in New Issue
Block a user