mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2025-03-13 22:23:04 +00:00
added r_teleporterFlash
This commit is contained in:
parent
5b591f270d
commit
c8e1eb546f
4 changed files with 10 additions and 0 deletions
|
@ -4,6 +4,8 @@ See the end of this file for known issues.
|
|||
|
||||
DD Mmm 20 - 1.53
|
||||
|
||||
add: r_teleporterFlash <0|1> (default: 1) draws bright colors when being teleported (use 0 for black)
|
||||
|
||||
add: s_khz <22|44> (default: 22) is the sound mixing sampling frequency: 22.05 kHz or 44.1 kHz
|
||||
|
||||
add: /writeconfig now has a "-f" option to force writing all CVars (whether archived or not)
|
||||
|
|
|
@ -712,6 +712,11 @@ void RB_PopShader()
|
|||
// used when a player has predicted a teleport, but hasn't arrived yet
|
||||
float RB_HyperspaceColor()
|
||||
{
|
||||
if ( r_teleporterFlash->integer == 0 )
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
const float c = 0.25f + 0.5f * sinf(M_PI * (backEnd.refdef.time & 0x01FF) / 0x0200);
|
||||
|
||||
return c;
|
||||
|
|
|
@ -63,6 +63,7 @@ cvar_t *r_lightmap;
|
|||
cvar_t *r_lightmapGreyscale;
|
||||
cvar_t *r_mapGreyscale;
|
||||
cvar_t *r_mapGreyscaleCTF;
|
||||
cvar_t *r_teleporterFlash;
|
||||
cvar_t *r_novis;
|
||||
cvar_t *r_nocull;
|
||||
cvar_t *r_nocurves;
|
||||
|
@ -426,6 +427,7 @@ static const cvarTableItem_t r_cvars[] =
|
|||
{ &r_alphaToCoverageMipBoost, "r_alphaToCoverageMipBoost", "0.125", CVAR_ARCHIVE, CVART_FLOAT, "0", "0.5", "increases the alpha value of higher mip levels" },
|
||||
{ &r_mapGreyscale, "r_mapGreyscale", "0", CVAR_ARCHIVE, CVART_FLOAT, "0", "1", "how desaturated the map looks" },
|
||||
{ &r_mapGreyscaleCTF, "r_mapGreyscaleCTF", "0", CVAR_ARCHIVE, CVART_FLOAT, "0", "1", help_r_mapGreyscaleCTF },
|
||||
{ &r_teleporterFlash, "r_teleporterFlash", "1", CVAR_ARCHIVE, CVART_BOOL, NULL, NULL, "draws bright colors when being teleported" },
|
||||
|
||||
//
|
||||
// temporary variables that can change at any time
|
||||
|
|
|
@ -1025,6 +1025,7 @@ extern cvar_t *r_lightmap; // render lightmaps only
|
|||
extern cvar_t *r_lightmapGreyscale; // how monochrome the lightmap looks
|
||||
extern cvar_t *r_mapGreyscale; // how monochrome the map looks
|
||||
extern cvar_t *r_mapGreyscaleCTF; // how monochrome CTF map surfaces look
|
||||
extern cvar_t *r_teleporterFlash; // 1 is default Q3 behavior, 0 is pure black
|
||||
extern cvar_t *r_fullbright; // avoid lightmap pass
|
||||
extern cvar_t *r_depthFade; // fades marked shaders based on depth
|
||||
extern cvar_t *r_gpuMipGen; // uses GPU-side mip-map generation
|
||||
|
|
Loading…
Reference in a new issue