mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Initial Mapbase commit (squashed from mapbase-beta)
This commit is contained in:
@@ -31,12 +31,20 @@
|
||||
extern ISoundEmitterSystemBase *soundemitterbase;
|
||||
|
||||
// Marked as FCVAR_USERINFO so that the server can cull CC messages before networking them down to us!!!
|
||||
#ifdef MAPBASE
|
||||
ConVar closecaption( "closecaption", "1", FCVAR_ARCHIVE | FCVAR_ARCHIVE_XBOX | FCVAR_USERINFO, "Enable close captioning." );
|
||||
#else
|
||||
ConVar closecaption( "closecaption", "0", FCVAR_ARCHIVE | FCVAR_ARCHIVE_XBOX | FCVAR_USERINFO, "Enable close captioning." );
|
||||
#endif
|
||||
extern ConVar cc_lang;
|
||||
static ConVar cc_linger_time( "cc_linger_time", "1.0", FCVAR_ARCHIVE, "Close caption linger time." );
|
||||
static ConVar cc_predisplay_time( "cc_predisplay_time", "0.25", FCVAR_ARCHIVE, "Close caption delay before showing caption." );
|
||||
static ConVar cc_captiontrace( "cc_captiontrace", "1", 0, "Show missing closecaptions (0 = no, 1 = devconsole, 2 = show in hud)" );
|
||||
#ifdef MAPBASE
|
||||
static ConVar cc_subtitles( "cc_subtitles", "1", FCVAR_ARCHIVE | FCVAR_ARCHIVE_XBOX, "If set, don't show sound effect captions, just voice overs (i.e., won't help hearing impaired players)." );
|
||||
#else
|
||||
static ConVar cc_subtitles( "cc_subtitles", "0", FCVAR_ARCHIVE | FCVAR_ARCHIVE_XBOX, "If set, don't show sound effect captions, just voice overs (i.e., won't help hearing impaired players)." );
|
||||
#endif
|
||||
ConVar english( "english", "1", FCVAR_USERINFO, "If set to 1, running the english language set of assets." );
|
||||
static ConVar cc_smallfontlength( "cc_smallfontlength", "300", 0, "If text stream is this long, force usage of small font size." );
|
||||
|
||||
@@ -2692,6 +2700,11 @@ CON_COMMAND_F_COMPLETION( cc_emit, "Emits a closed caption", 0, EmitCaptionCompl
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef MAPBASE // 1upD
|
||||
if (!closecaption.GetBool())
|
||||
return;
|
||||
#endif
|
||||
|
||||
CHudCloseCaption *hudCloseCaption = GET_HUDELEMENT( CHudCloseCaption );
|
||||
if ( hudCloseCaption )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user