3 void SysParms_UPDATE (void)
7 vid_width = cvar("vid_conwidth");
8 vid_height = cvar("vid_conheight");
9 makevectors(input_angles);
10 pl_view_forward = v_forward;
11 pl_view_right = v_right;
13 pl_xyspeed = floor(sqrt(pmove_vel_x*pmove_vel_x + pmove_vel_y*pmove_vel_y));
15 f = getstati(STAT_HEALTH);
16 if(f <= 0 && !(player_flags & PFL_DEAD))
17 player_flags |= PFL_DEAD;
18 else if(f > 0 && player_flags & PFL_DEAD)
19 player_flags -= player_flags & (PFL_DEAD | PFL_GIBBED);
24 localcmd("r_showtris 0\n");
29 void CSQC_Ent_Update (float isnew)
35 void CSQC_Ent_Remove ()
45 void CSQC_Shutdown (void)
49 void CSQC_ConsoleCommand (string str)
53 void CSQC_UpdateView (void)
60 R_SetView(VF_DRAWWORLD, 1);
62 if(getstati(STAT_HEALTH) == 6666)
64 R_SetView(VF_DRAWCROSSHAIR, 0);
65 R_SetView(VF_DRAWENGINESBAR, 0);
69 R_SetView(VF_DRAWCROSSHAIR, 1);
70 R_SetView(VF_DRAWENGINESBAR, 1);
73 R_AddEntities(MASK_NORMAL | MASK_ENGINE | MASK_ENGINEVIEWMODELS);
77 float CSQC_InputEvent (float event, float parama)
82 void CSQC_Parse_StuffCmd (string msg)
84 // doesn't work, dp obviously doesn't execute csprogs.dat on demo playback
85 if(isdemo() && msg == "menu_showteamselect\n")
90 void CSQC_Parse_Print (string msg)
95 void CSQC_Parse_CenterPrint (string msg)