Jester stomp sounds, not step !

This commit is contained in:
2026-11-22 11:08:36 -03:00
parent 8add5f852e
commit dfb110e0f8
11 changed files with 50 additions and 12 deletions
+4 -2
View File
@@ -161,8 +161,8 @@ function nearest_player(ctx: ServerContext, mob: MobRef) {
}
// what bedrock's animation controller did: idle and walk while it roams, crank, then pop, then its chase. what its
// clips did with expressions is here as code. its music box plays while it cranks, and it screams while it's popped.
// a player who comes upon it partway sees and hears it from as far as it's got, by when its state started
// clips did with expressions is here as code. its music box plays while it cranks, and it screams and stomps while
// it's popped. a player who comes upon it partway sees and hears it from as far as it's got, by when its state started
export function register_jester_animator(ctx: ClientContext) {
const clip = (name: string) => ctx.render.clip(`dangerous_business:jester/${name}`);
const idle = clip("idle");
@@ -195,6 +195,8 @@ export function register_jester_animator(ctx: ClientContext) {
theme = sound_while(state === CRANKING, theme, () => play("dangerous_business:jester/theme"));
scream = sound_while(state === AGGRO, scream, () => play("dangerous_business:jester/scream"));
},
step_sound: () =>
jester.get_client_data<number>("state") === AGGRO ? "dangerous_business:jester/stomp" : undefined,
pose(pose, time) {
if (cranking.started) {
pose.play_state(crank, cranking, time);