Jester stomp sounds, not step !
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user