Client: Add fade.h and add definition in worldspawn's QUAKED comment for

startdark.
This commit is contained in:
Marco Cawthorne 2022-01-02 21:21:06 -08:00
parent d375ec5f93
commit 758b28346d
Signed by: eukara
GPG Key ID: C196CD8BA993248A
4 changed files with 24 additions and 4 deletions

View File

@ -17,6 +17,7 @@
#include "textmenu.h"
#include "efx.h"
#include "font.h"
#include "fade.h"
/* flags for 2d drawing */
#define DRAWFLAG_NORMAL 0

20
src/client/fade.h Normal file
View File

@ -0,0 +1,20 @@
/*
* Copyright (c) 2016-2022 Marco Hladik <marco@icculus.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
void Fade_Init(void);
void Fade_Update (int x, int y, int w, int h);
void Fade_StartDark(void);
void Fade_Parse(void);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2020 Marco Hladik <marco@icculus.org>
* Copyright (c) 2016-2022 Marco Hladik <marco@icculus.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@ -99,7 +99,7 @@ Fade_StartDark(void)
}
void
Fade_Parse (void)
Fade_Parse(void)
{
pSeat->m_vecFadeColor[0] = readfloat();
pSeat->m_vecFadeColor[1] = readfloat();

View File

@ -26,6 +26,7 @@ Only used for the world.
"_skyroomfog" : Fog in the skybox area. Format: (density red green blue alpha depthbias)
"skyname" : Which skybox to use. (e.g. textures/skies/sundown)
"ambientsound" : Sound shader to play in the background (looping) for when other env_soundscape entities are NOT active.
"startdark" : Starts the level with a fade in similar to using an env_fade, which lasts for nine seconds.
"hdr_iris_minvalue" : Minimum HDR brightness adjustment. Default is "0.0".
"hdr_iris_maxvalue" : Maximum HDR brightness adjustment. Default is "2.0".
"hdr_iris_multiplier" : HDR effect multiplier. Default is "1.0".
@ -50,8 +51,6 @@ var float g_flHDRIrisFadeUp = 0.1;
var float g_flHDRIrisFadeDown = 0.5;
var int g_iHDREnabled = 0;
void Fade_StartDark(void);
class worldspawn:NSEntity
{
void(void) worldspawn;