From: hgn Date: Wed, 12 Jul 2023 16:24:17 +0000 (+0100) Subject: fixed drop in jitter X-Git-Url: https://harrygodden.com/git/?a=commitdiff_plain;h=0bd786096cf74a29ade347e47479b36c62b9019d;p=carveJwlIkooP6JGAAIwe30JlM.git fixed drop in jitter --- diff --git a/maps_src/mp_mtzero/main.mdl b/maps_src/mp_mtzero/main.mdl index 00a1df9..1dbaed8 100644 Binary files a/maps_src/mp_mtzero/main.mdl and b/maps_src/mp_mtzero/main.mdl differ diff --git a/player_common.h b/player_common.h index a83e39a..e4f332b 100644 --- a/player_common.h +++ b/player_common.h @@ -18,5 +18,6 @@ VG_STATIC void player__cam_iterate( player_instance *player ); VG_STATIC void player_vector_angles( v3f angles, v3f v, float C, float k ); struct player_board *player_get_player_board( struct player_instance *player ); struct player_model *player_get_player_model( struct player_instance *player ); +VG_STATIC float player_get_heading_yaw( player_instance *player ); #endif /* PLAYER_COMMON_H */ diff --git a/player_walk.c b/player_walk.c index 21390c2..b37095d 100644 --- a/player_walk.c +++ b/player_walk.c @@ -751,7 +751,12 @@ VG_STATIC void player__walk_animate( player_instance *player, skeleton_lerp_pose( sk, apose, bpose, w->blend_fly, apose ); /* Create transform */ - rb_extrapolate( &player->rb, dest->root_co, dest->root_q ); + if( !player->immobile ) + rb_extrapolate( &player->rb, dest->root_co, dest->root_q ); + else{ + v3_copy( player->rb.co, dest->root_co ); + v4_copy( player->rb.q, dest->root_q ); + } float walk_yaw = player_get_heading_yaw( player );