static void PostfixUpdate(Pathea.ActorNs.Actor __instance) { if (AnimHelper.IsPlayer(__instance)) { AnimHelper.playerAnimator.speed = AnimHelper.currentPCSpeed; } // set npc speeds else { AnimHelper.setNPCSpeed(__instance); } }
static void PostfixSetBool(Pathea.ActorNs.Actor __instance, string str, bool val) { if (!AnimHelper.IsPlayer(__instance)) { return; } // Main.dump("Pathea.ActorNs.Actor::SetBool "+__instance.name+" " + str); if (!val) { AnimHelper.clearPlayerAnimSpeed(); // release player from lingering anims. Pathea.MessageSystem.MessageManager.Instance.Dispatch("InteractAnimEnd"); return; } AnimHelper.SetPlayerAnimSpeed(AnimHelper.GetSpeedForAnimName(str)); }