mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
force_centerview is back
This commit is contained in:
parent
0fddfe4931
commit
03c0216dde
2 changed files with 21 additions and 0 deletions
|
@ -751,6 +751,13 @@ CL_SendCmd (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
Force_CenterView_f (void)
|
||||||
|
{
|
||||||
|
cl.viewangles[PITCH] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
CL_Init (void)
|
CL_Init (void)
|
||||||
{
|
{
|
||||||
|
@ -769,6 +776,10 @@ CL_Init (void)
|
||||||
Cmd_AddCommand ("timedemo", CL_TimeDemo_f, "No Description");
|
Cmd_AddCommand ("timedemo", CL_TimeDemo_f, "No Description");
|
||||||
Cmd_AddCommand ("maplist", COM_Maplist_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++) {
|
for (i = 0; i < MAX_STATIC_ENTITIES; i++) {
|
||||||
cl_static_entities[i].baseline = &cl_static_entity_baselines[i];
|
cl_static_entities[i].baseline = &cl_static_entity_baselines[i];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1083,6 +1083,13 @@ CL_Download_f (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
Force_CenterView_f (void)
|
||||||
|
{
|
||||||
|
cl.viewangles[PITCH] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
CL_Init (void)
|
CL_Init (void)
|
||||||
{
|
{
|
||||||
|
@ -1154,6 +1161,9 @@ CL_Init (void)
|
||||||
Cmd_AddCommand ("stopul", CL_StopUpload, "Tells the client to stop "
|
Cmd_AddCommand ("stopul", CL_StopUpload, "Tells the client to stop "
|
||||||
"uploading");
|
"uploading");
|
||||||
|
|
||||||
|
Cmd_AddCommand ("force_centerview", Force_CenterView_f, "force the view to "
|
||||||
|
"be level");
|
||||||
|
|
||||||
// forward to server commands
|
// forward to server commands
|
||||||
Cmd_AddCommand ("kill", Cmd_ForwardToServer, "Suicide :)");
|
Cmd_AddCommand ("kill", Cmd_ForwardToServer, "Suicide :)");
|
||||||
Cmd_AddCommand ("pause", Cmd_ForwardToServer, "Pause the game");
|
Cmd_AddCommand ("pause", Cmd_ForwardToServer, "Pause the game");
|
||||||
|
|
Loading…
Reference in a new issue