X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=player_walk.c;h=4619c2e995f2b6334ece0fb97e411a5bf955ce9c;hb=933fb1873e61061648d0ee183df915c76f47a9cc;hp=ca264f33160051159fc5846181b2ffda4e1fc6a3;hpb=d11e7e290daf69b4baa3e82ba4861a5ccedbf5d1;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_walk.c b/player_walk.c index ca264f3..4619c2e 100644 --- a/player_walk.c +++ b/player_walk.c @@ -964,8 +964,19 @@ static void player__walk_reset( ent_spawn *rp ){ static void player__walk_animator_exchange( bitpack_ctx *ctx, void *data ){ struct player_walk_animator *animator = data; - //bitpack_bytes( ctx, sizeof(*animator), animator ); - bitpack_bytes( ctx, sizeof(animator->root_co), animator->root_co ); + + bitpack_qv3f( ctx, 16, -1024.0f, 1024.0f, animator->root_co ); bitpack_qquat( ctx, animator->root_q ); + bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->fly ); + bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->run ); + bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->walk ); + bitpack_qf32( ctx, 16, 0.0f, 120.0f, &animator->walk_timer ); + + bitpack_bytes( ctx, 8, &animator->outro_type ); + if( animator->outro_type ){ + bitpack_bytes(ctx, sizeof(animator->foot_anchor), animator->foot_anchor ); + bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->outro_t ); + bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->commit_t ); + } } #endif /* PLAYER_DEVICE_WALK_H */