X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_walk.c;h=0503f48fde51853c300f8cccfaf868ca7c42d2b1;hb=b06394c241991d85211af98ed0a7f4d730fa13d4;hp=a2a2ed80198a0fd3dff2c08a1b2b141e3222b0e1;hpb=06e5d59a9b7fdd96a2e46f49be85089b43df75ae;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_walk.c b/player_walk.c index a2a2ed8..0503f48 100644 --- a/player_walk.c +++ b/player_walk.c @@ -682,6 +682,9 @@ VG_STATIC void player__walk_animate( player_instance *player, v4_copy( dest->root_q, player->rb.q ); v3_muladds( dest->root_co, player->rb.to_world[1], -0.28f * dop_t, dest->root_co ); + + skeleton_copy_pose( sk, dest->pose, player->holdout_pose ); + player->holdout_time = 1.0f; } return; } @@ -689,6 +692,9 @@ VG_STATIC void player__walk_animate( player_instance *player, { v3_muladds( dest->root_co, player->rb.to_world[1], -0.28f * outro_t, dest->root_co ); + + skeleton_copy_pose( sk, dest->pose, player->holdout_pose ); + player->holdout_time = 1.0f; } } else