Added default game_text speech color for every major HL2 character

This commit is contained in:
Blixibon
2021-04-23 00:17:08 -05:00
parent bb250dbae6
commit 62a6481d0d
11 changed files with 59 additions and 9 deletions

View File

@@ -799,6 +799,15 @@ bool CBaseFlex::StartSceneEvent( CSceneEventInfo *info, CChoreoScene *scene, CCh
textParams.fadeinTime = 0.5f;
textParams.fadeoutTime = 0.5f;
textParams.channel = 3;
textParams.x = -1;
textParams.y = 0.6;
textParams.effect = 0;
textParams.r1 = 255;
textParams.g1 = 255;
textParams.b1 = 255;
if ( GetGameTextSpeechParams( textParams ) )
{
CRecipientFilter filter;
@@ -2091,15 +2100,6 @@ float CBaseFlex::PlayAutoGeneratedSoundScene( const char *soundname )
//-----------------------------------------------------------------------------
bool CBaseFlex::GetGameTextSpeechParams( hudtextparms_t &params )
{
params.channel = 3;
params.x = -1;
params.y = 0.6;
params.effect = 0;
params.r1 = 255;
params.g1 = 255;
params.b1 = 255;
ScriptVariant_t varTable;
if (g_pScriptVM->GetValue(m_ScriptScope, "m_GameTextSpeechParams", &varTable) && varTable.m_type == FIELD_HSCRIPT)
{