public void GetMovementSpeed() { var moveSpeed = MotionTable.GetRunSpeed(MotionTableId); if (moveSpeed == 0) { moveSpeed = 2.5f; } var scale = ObjScale ?? 1.0f; RunRate = GetRunRate(); MoveSpeed = moveSpeed * RunRate * scale; //Console.WriteLine(Name + " - Run: " + runSkill + " - RunRate: " + RunRate + " - Move: " + MoveSpeed + " - Scale: " + scale); }
public void GetMovementSpeed() { var moveSpeed = MotionTable.GetRunSpeed(MotionTableId); if (moveSpeed == 0) { moveSpeed = 2.5f; } var scale = ObjScale ?? 1.0f; var runSkill = GetCreatureSkill(Skill.Run).Current; RunRate = (float)MovementSystem.GetRunRate(0.0f, (int)runSkill, 1.0f); MoveSpeed = moveSpeed * RunRate * scale; //Console.WriteLine(Name + " - Run: " + runSkill + " - RunRate: " + RunRate + " - Move: " + MoveSpeed + " - Scale: " + scale); }