NX/VITA: Add cl_crosshair_debug
This commit is contained in:
parent
db62654d8e
commit
1eab2f6e9d
|
@ -557,7 +557,7 @@ void CL_RelinkEntities (void)
|
||||||
up_offset -= 2;
|
up_offset -= 2;
|
||||||
|
|
||||||
// now a not-so hack to ensure the muzzleflash follows our viewheight
|
// now a not-so hack to ensure the muzzleflash follows our viewheight
|
||||||
up_offset -= (32 - cl.viewheight);
|
up_offset -= (36 - cl.viewheight);
|
||||||
|
|
||||||
VectorMA (start, forward_offset, v_forward ,smokeorg);
|
VectorMA (start, forward_offset, v_forward ,smokeorg);
|
||||||
VectorMA (smokeorg, up_offset, v_up ,smokeorg);
|
VectorMA (smokeorg, up_offset, v_up ,smokeorg);
|
||||||
|
|
|
@ -109,6 +109,8 @@ cvar_t scr_showpause = {"showpause","1",CVAR_NONE};
|
||||||
cvar_t scr_printspeed = {"scr_printspeed","8",CVAR_NONE};
|
cvar_t scr_printspeed = {"scr_printspeed","8",CVAR_NONE};
|
||||||
cvar_t gl_triplebuffer = {"gl_triplebuffer", "1", CVAR_ARCHIVE};
|
cvar_t gl_triplebuffer = {"gl_triplebuffer", "1", CVAR_ARCHIVE};
|
||||||
|
|
||||||
|
cvar_t cl_crosshair_debug = {"cl_crosshair_debug", "1", CVAR_NONE};
|
||||||
|
|
||||||
extern cvar_t crosshair;
|
extern cvar_t crosshair;
|
||||||
|
|
||||||
qboolean scr_initialized; // ready to draw
|
qboolean scr_initialized; // ready to draw
|
||||||
|
@ -687,6 +689,7 @@ void SCR_Init (void)
|
||||||
//johnfitz -- new cvars
|
//johnfitz -- new cvars
|
||||||
Cvar_RegisterVariable (&scr_menuscale);
|
Cvar_RegisterVariable (&scr_menuscale);
|
||||||
Cvar_RegisterVariable (&scr_sbarscale);
|
Cvar_RegisterVariable (&scr_sbarscale);
|
||||||
|
Cvar_RegisterVariable (&cl_crosshair_debug);
|
||||||
Cvar_SetCallback (&scr_sbaralpha, SCR_Callback_refdef);
|
Cvar_SetCallback (&scr_sbaralpha, SCR_Callback_refdef);
|
||||||
Cvar_RegisterVariable (&scr_loadscreen); //sB loading screen
|
Cvar_RegisterVariable (&scr_loadscreen); //sB loading screen
|
||||||
Cvar_RegisterVariable (&scr_sbaralpha);
|
Cvar_RegisterVariable (&scr_sbaralpha);
|
||||||
|
@ -1483,6 +1486,11 @@ void SCR_DrawCrosshair (void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cl_crosshair_debug.value) {
|
||||||
|
Draw_FillByColor(vid.width/2, 0, 1, vid.height, 255, 0, 0, 255);
|
||||||
|
Draw_FillByColor(0, vid.height/2, vid.width, 1, 0, 255, 0, 255);
|
||||||
|
}
|
||||||
|
|
||||||
float col;
|
float col;
|
||||||
|
|
||||||
if (sv_player->v.facingenemy == 1) {
|
if (sv_player->v.facingenemy == 1) {
|
||||||
|
|
Loading…
Reference in New Issue