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 getOrientation();
|
||||||
|
|
||||||
|
int getCurrentOrientation();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current animation the actor is performing.
|
* Gets the current animation the actor is performing.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user