4 void View_Update (void)
10 angle_alive = input_angles;
11 makevectors(input_angles);
13 if(player_flags & PFL_DEAD && !spec)
15 R_SetView(VF_ORIGIN, vieworg+'0 0 4');
17 R_SetView(VF_ANGLES, angle_alive);
18 R_SetView(VF_CL_VIEWANGLES, angle_alive);
22 if(input_buttons & 16 && !spec)
23 vieworg += PL_CROUCH_VIEW_OFS;
25 vieworg += PL_VIEW_OFS;
27 if(cvar("chase_active") && !spec)
28 vieworg = vieworg + v_up * cvar("chase_up") - v_forward * cvar("chase_back");
30 R_SetView(VF_ORIGIN, vieworg);
31 R_SetView(VF_ANGLES, input_angles);
33 if(!cvar("cg_showvelocity"))
40 s = strcat(s, " ups");
41 drawstring('1 0 0'*vid_width + '-64 64 0', s, '8 8 0', VEC_1, 1, 0);
43 s = strcat(s, " max");
44 drawstring('1 0 0'*vid_width + '-64 72 0', s, '8 8 0', VEC_1, 1, 0);