animation smoothing: don't interpolate hellhound defence animation

This commit is contained in:
Adam
2018-06-25 08:17:01 -04:00
parent 714a533735
commit 8247163fee
2 changed files with 4 additions and 1 deletions

View File

@@ -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;

View File

@@ -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();
} }