remove references to glide in master
[carveJwlIkooP6JGAAIwe30JlM.git] / player_basic_info.c
1 #include "player_basic_info.h"
2 #include "network_compression.h"
3
4 static void player__basic_info_animator_exchange(bitpack_ctx *ctx, void *data){
5 struct player_basic_info_animator *animator = data;
6 /* TODO: This range needs to be standardized in a common header */
7 bitpack_qv3f( ctx, 24, -1024.0f, 1024.0f, animator->root_co );
8 }
9
10 static void player__basic_info_pose( void *_animator, player_pose *pose ){
11 struct player_basic_info_animator *animator = _animator;
12 v3_copy( animator->root_co, pose->root_co );
13 q_identity( pose->root_q );
14 pose->type = k_player_pose_type_fk_2;
15 pose->board.lean = 0.0f;
16
17 for( int i=0; i<localplayer.skeleton.bone_count; i ++ ){
18 v3_zero(pose->keyframes[i].co);
19 q_identity(pose->keyframes[i].q);
20 v3_fill(pose->keyframes[i].s,1.0f);
21 }
22 }