animation smoothing: don't interpolate hellhound defence animation
This commit is contained in:
@@ -136,6 +136,7 @@ public final class AnimationID
|
|||||||
// NPC animations
|
// NPC animations
|
||||||
public static final int TZTOK_JAD_MAGIC_ATTACK = 2656;
|
public static final int TZTOK_JAD_MAGIC_ATTACK = 2656;
|
||||||
public static final int TZTOK_JAD_RANGE_ATTACK = 2652;
|
public static final int TZTOK_JAD_RANGE_ATTACK = 2652;
|
||||||
|
public static final int HELLHOUND_DEFENCE = 6566;
|
||||||
|
|
||||||
// Farming
|
// Farming
|
||||||
public static final int FARMING_HARVEST_FRUIT_TREE = 2280;
|
public static final int FARMING_HARVEST_FRUIT_TREE = 2280;
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.mixins;
|
package net.runelite.mixins;
|
||||||
|
|
||||||
|
import net.runelite.api.AnimationID;
|
||||||
import net.runelite.api.NPCComposition;
|
import net.runelite.api.NPCComposition;
|
||||||
import net.runelite.api.events.NpcDespawned;
|
import net.runelite.api.events.NpcDespawned;
|
||||||
import net.runelite.api.mixins.Copy;
|
import net.runelite.api.mixins.Copy;
|
||||||
@@ -115,7 +116,8 @@ public abstract class RSNPCMixin implements RSNPC
|
|||||||
@Replace("getModel")
|
@Replace("getModel")
|
||||||
public RSModel rl$getModel()
|
public RSModel rl$getModel()
|
||||||
{
|
{
|
||||||
if (!client.isInterpolateNpcAnimations())
|
if (!client.isInterpolateNpcAnimations()
|
||||||
|
|| getAnimation() == AnimationID.HELLHOUND_DEFENCE)
|
||||||
{
|
{
|
||||||
return rs$getModel();
|
return rs$getModel();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user