Support diving and climbing locomotion modes in runner logic
This commit is contained in:
@@ -2002,6 +2002,10 @@ function formatRunnerLocomotionMode(
|
||||
return "Flying";
|
||||
case "swimming":
|
||||
return "Swimming";
|
||||
case "diving":
|
||||
return "Diving";
|
||||
case "climbing":
|
||||
return "Climbing";
|
||||
default:
|
||||
return "n/a";
|
||||
}
|
||||
@@ -2134,6 +2138,10 @@ function formatRunnerAnimationHook(
|
||||
return `swim ${animationHook.movementAmount.toFixed(2)}`;
|
||||
}
|
||||
|
||||
if (animationHook.locomotionMode === "climbing") {
|
||||
return `climb ${animationHook.movementAmount.toFixed(2)}`;
|
||||
}
|
||||
|
||||
return animationHook.moving
|
||||
? `${animationHook.gait} ${animationHook.movementAmount.toFixed(2)}`
|
||||
: "idle";
|
||||
|
||||
Reference in New Issue
Block a user