mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-17 20:10:21 +03:00
Added default game_text speech color for every major HL2 character
This commit is contained in:
@@ -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 ¶ms )
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user