force_centerview is back

This commit is contained in:
Bill Currie 2001-07-06 17:42:04 +00:00
parent 0fddfe4931
commit 03c0216dde
2 changed files with 21 additions and 0 deletions

View file

@ -751,6 +751,13 @@ CL_SendCmd (void)
}
void
Force_CenterView_f (void)
{
cl.viewangles[PITCH] = 0;
}
void
CL_Init (void)
{
@ -769,6 +776,10 @@ CL_Init (void)
Cmd_AddCommand ("timedemo", CL_TimeDemo_f, "No Description");
Cmd_AddCommand ("maplist", COM_Maplist_f, "No Description");
Cmd_AddCommand ("force_centerview", Force_CenterView_f, "force the view to "
"be level");
for (i = 0; i < MAX_STATIC_ENTITIES; i++) {
cl_static_entities[i].baseline = &cl_static_entity_baselines[i];
}

View file

@ -1083,6 +1083,13 @@ CL_Download_f (void)
}
void
Force_CenterView_f (void)
{
cl.viewangles[PITCH] = 0;
}
void
CL_Init (void)
{
@ -1154,6 +1161,9 @@ CL_Init (void)
Cmd_AddCommand ("stopul", CL_StopUpload, "Tells the client to stop "
"uploading");
Cmd_AddCommand ("force_centerview", Force_CenterView_f, "force the view to "
"be level");
// forward to server commands
Cmd_AddCommand ("kill", Cmd_ForwardToServer, "Suicide :)");
Cmd_AddCommand ("pause", Cmd_ForwardToServer, "Pause the game");