1 void SysParms_UPDATE (void)
5 vid_width = cvar("vid_conwidth");
6 vid_height = cvar("vid_conheight");
7 makevectors(input_angles);
8 pl_view_forward = v_forward;
9 pl_view_right = v_right;
11 pl_xyspeed = floor(sqrt(pmove_vel_x*pmove_vel_x + pmove_vel_y*pmove_vel_y));
13 f = getstati(STAT_HEALTH);
15 if(f < 1 && !(player_flags & PFL_DEAD))
16 player_flags |= PFL_DEAD;
17 else if(f >= 1 && player_flags & PFL_DEAD)
18 player_flags -= player_flags & (PFL_DEAD | PFL_GIBBED);
21 void CSQC_Ent_Update (float isnew)
27 void CSQC_Ent_Remove ()
37 void CSQC_Shutdown (void)
41 void CSQC_ConsoleCommand (string str)
45 void CSQC_UpdateView (void)
52 R_SetView(VF_DRAWWORLD, 1);
54 if(getstati(STAT_HEALTH) == 6666)
56 R_SetView(VF_DRAWCROSSHAIR, 0);
57 R_SetView(VF_DRAWENGINESBAR, 0);
61 R_SetView(VF_DRAWCROSSHAIR, 1);
62 R_SetView(VF_DRAWENGINESBAR, 1);
65 R_AddEntities(MASK_NORMAL | MASK_ENGINE | MASK_ENGINEVIEWMODELS);
68 if(cvar("cg_showvelocity"))
76 s = strcat(s, " ups");
77 drawstring('1 0 0'*vid_width + '-64 64 0', s, '8 8 0', VEC_1, 1, 0);
79 s = strcat(s, " max");
80 drawstring('1 0 0'*vid_width + '-64 72 0', s, '8 8 0', VEC_1, 1, 0);
84 float CSQC_InputEvent (float event, float parama)
89 void CSQC_Parse_StuffCmd (string msg)
91 // doesn't work, dp obviously doesn't execute csprogs.dat on demo playback
92 if(isdemo() && msg == "menu_showteamselect\n")
97 void CSQC_Parse_Print (string msg)
102 void CSQC_Parse_CenterPrint (string msg)