Merge pull request #653 from Calinou/rename-anglekicks-cvar

Rename `cl_anglekicks` to `cl_kickangles` for consistency with Q2PRO
This commit is contained in:
Yamagi 2021-01-22 12:21:50 +01:00 committed by GitHub
commit f322b28fa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 8 deletions

View file

@ -56,8 +56,8 @@ it's `+set busywait 0` (setting the `busywait` cvar) and `-portable`
time for the next frame. The later is more CPU friendly but rather time for the next frame. The later is more CPU friendly but rather
inaccurate, especially on Windows. Use with care. inaccurate, especially on Windows. Use with care.
* **cl_anglekicks**: If set to `0` angle kicks (weapon recoil, damage * **cl_kickangles**: If set to `0` angle kicks (weapon recoil, damage
hits and the like) are ignored. Cheat protected. Defaults to `1`. hits and the like) are ignored. Cheat-protected. Defaults to `1`.
* **cl_async**: If set to `1` (the default) the client is asynchronous. * **cl_async**: If set to `1` (the default) the client is asynchronous.
The client framerate is fixed, the renderer framerate is variable. The client framerate is fixed, the renderer framerate is variable.

View file

@ -764,7 +764,7 @@ CL_CalcViewValues(void)
} }
} }
if (cl_anglekicks->value) if (cl_kickangles->value)
{ {
for (i = 0; i < 3; i++) for (i = 0; i < 3; i++)
{ {

View file

@ -48,7 +48,7 @@ cvar_t *cl_add_particles;
cvar_t *cl_add_lights; cvar_t *cl_add_lights;
cvar_t *cl_add_entities; cvar_t *cl_add_entities;
cvar_t *cl_add_blend; cvar_t *cl_add_blend;
cvar_t *cl_anglekicks; cvar_t *cl_kickangles;
cvar_t *cl_shownet; cvar_t *cl_shownet;
cvar_t *cl_showmiss; cvar_t *cl_showmiss;
@ -494,7 +494,7 @@ CL_InitLocal(void)
cl_add_lights = Cvar_Get("cl_lights", "1", 0); cl_add_lights = Cvar_Get("cl_lights", "1", 0);
cl_add_particles = Cvar_Get("cl_particles", "1", 0); cl_add_particles = Cvar_Get("cl_particles", "1", 0);
cl_add_entities = Cvar_Get("cl_entities", "1", 0); cl_add_entities = Cvar_Get("cl_entities", "1", 0);
cl_anglekicks = Cvar_Get("cl_anglekicks", "1", 0); cl_kickangles = Cvar_Get("cl_kickangles", "1", 0);
cl_gun = Cvar_Get("cl_gun", "2", CVAR_ARCHIVE); cl_gun = Cvar_Get("cl_gun", "2", CVAR_ARCHIVE);
cl_footsteps = Cvar_Get("cl_footsteps", "1", 0); cl_footsteps = Cvar_Get("cl_footsteps", "1", 0);
cl_noskins = Cvar_Get("cl_noskins", "0", 0); cl_noskins = Cvar_Get("cl_noskins", "0", 0);
@ -663,7 +663,7 @@ cheatvar_t cheatvars[] = {
{"sw_draworder", "0"}, {"sw_draworder", "0"},
{"gl_lightmap", "0"}, {"gl_lightmap", "0"},
{"gl_saturatelighting", "0"}, {"gl_saturatelighting", "0"},
{"cl_anglekicks", "1"}, {"cl_kickangles", "1"},
{NULL, NULL} {NULL, NULL}
}; };
@ -949,4 +949,3 @@ CL_Shutdown(void)
IN_Shutdown(); IN_Shutdown();
VID_Shutdown(); VID_Shutdown();
} }

View file

@ -314,7 +314,7 @@ extern cvar_t *cl_vwep;
extern cvar_t *horplus; extern cvar_t *horplus;
extern cvar_t *cin_force43; extern cvar_t *cin_force43;
extern cvar_t *vid_fullscreen; extern cvar_t *vid_fullscreen;
extern cvar_t *cl_anglekicks; extern cvar_t *cl_kickangles;
extern cvar_t *cl_r1q2_lightstyle; extern cvar_t *cl_r1q2_lightstyle;
typedef struct typedef struct