mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 06:45:31 +03:00
Added default game_text speech color for every major HL2 character
This commit is contained in:
parent
bb250dbae6
commit
62a6481d0d
@ -905,6 +905,15 @@ bool CAI_Expresser::SpeakDispatchResponse( AIConcept_t &concept, AI_Response *re
|
||||
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 (ai_speech_print_mode.GetBool() && GetOuter()->GetGameTextSpeechParams( textParams ))
|
||||
{
|
||||
CRecipientFilter filter;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -37,6 +37,11 @@ public:
|
||||
Class_T Classify ( void );
|
||||
void HandleAnimEvent( animevent_t *pEvent );
|
||||
int GetSoundInterests ( void );
|
||||
|
||||
#ifdef MAPBASE
|
||||
// Use Magnusson's default subtitle color (209,178,178)
|
||||
bool GetGameTextSpeechParams( hudtextparms_t ¶ms ) { params.r1 = 209; params.g1 = 178; params.b1 = 178; return BaseClass::GetGameTextSpeechParams( params ); }
|
||||
#endif
|
||||
};
|
||||
|
||||
LINK_ENTITY_TO_CLASS( npc_magnusson, CNPC_Magnusson );
|
||||
|
@ -36,6 +36,9 @@ public:
|
||||
// Now that all allies can holster/unholster, this is a precaution in case it breaks anything.
|
||||
// Try OnFoundEnemy > UnholsterWeapon if you want Alyx to automatically unholster in non-episodic HL2 maps.
|
||||
bool CanUnholsterWeapon() { return false; }
|
||||
|
||||
// Use Alyx's default subtitle color (255,212,255)
|
||||
bool GetGameTextSpeechParams( hudtextparms_t ¶ms ) { params.r1 = 255; params.g1 = 212; params.b1 = 255; return BaseClass::GetGameTextSpeechParams( params ); }
|
||||
#endif
|
||||
|
||||
EHANDLE m_hEmpTool;
|
||||
|
@ -57,6 +57,9 @@ public:
|
||||
#ifdef MAPBASE
|
||||
// This skips CAI_PlayerAlly's CanFlinch() function since Episodic Alyx can flinch to begin with.
|
||||
virtual bool CanFlinch( void ) { return CAI_BaseActor::CanFlinch(); }
|
||||
|
||||
// Use Alyx's default subtitle color (255,212,255)
|
||||
bool GetGameTextSpeechParams( hudtextparms_t ¶ms ) { params.r1 = 255; params.g1 = 212; params.b1 = 255; return BaseClass::GetGameTextSpeechParams( params ); }
|
||||
#endif
|
||||
|
||||
virtual float GetJumpGravity() const { return 1.8f; }
|
||||
|
@ -81,6 +81,11 @@ public:
|
||||
void GatherConditions();
|
||||
void UseFunc( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
|
||||
|
||||
#ifdef MAPBASE
|
||||
// Use Barney's default subtitle color (215,255,255)
|
||||
bool GetGameTextSpeechParams( hudtextparms_t ¶ms ) { params.r1 = 215; params.g1 = 255; params.b1 = 255; return BaseClass::GetGameTextSpeechParams( params ); }
|
||||
#endif
|
||||
|
||||
CAI_FuncTankBehavior m_FuncTankBehavior;
|
||||
COutputEvent m_OnPlayerUse;
|
||||
|
||||
|
@ -34,6 +34,11 @@ public:
|
||||
void HandleAnimEvent( animevent_t *pEvent );
|
||||
int GetSoundInterests ( void );
|
||||
bool UseSemaphore( void );
|
||||
|
||||
#ifdef MAPBASE
|
||||
// Use Breen's default subtitle color (188,188,188)
|
||||
bool GetGameTextSpeechParams( hudtextparms_t ¶ms ) { params.r1 = 188; params.g1 = 188; params.b1 = 188; return BaseClass::GetGameTextSpeechParams( params ); }
|
||||
#endif
|
||||
};
|
||||
|
||||
LINK_ENTITY_TO_CLASS( npc_breen, CNPC_Breen );
|
||||
|
@ -37,6 +37,11 @@ public:
|
||||
int GetSoundInterests( void );
|
||||
void SetupWithoutParent( void );
|
||||
void PrescheduleThink( void );
|
||||
|
||||
#ifdef MAPBASE
|
||||
// Use Eli's default subtitle color (255,208,172)
|
||||
bool GetGameTextSpeechParams( hudtextparms_t ¶ms ) { params.r1 = 255; params.g1 = 208; params.b1 = 172; return BaseClass::GetGameTextSpeechParams( params ); }
|
||||
#endif
|
||||
};
|
||||
|
||||
LINK_ENTITY_TO_CLASS( npc_eli, CNPC_Eli );
|
||||
|
@ -35,6 +35,11 @@ public:
|
||||
Class_T Classify ( void );
|
||||
void HandleAnimEvent( animevent_t *pEvent );
|
||||
int GetSoundInterests ( void );
|
||||
|
||||
#ifdef MAPBASE
|
||||
// Use Kleiner's default subtitle color (255,255,200)
|
||||
bool GetGameTextSpeechParams( hudtextparms_t ¶ms ) { params.r1 = 255; params.g1 = 255; params.b1 = 200; return BaseClass::GetGameTextSpeechParams( params ); }
|
||||
#endif
|
||||
};
|
||||
|
||||
LINK_ENTITY_TO_CLASS( npc_kleiner, CNPC_Kleiner );
|
||||
|
@ -41,6 +41,11 @@ public:
|
||||
bool CreateBehaviors( void );
|
||||
int SelectSchedule( void );
|
||||
|
||||
#ifdef MAPBASE
|
||||
// Use Mossman's default subtitle color (220,255,198)
|
||||
bool GetGameTextSpeechParams( hudtextparms_t ¶ms ) { params.r1 = 220; params.g1 = 255; params.b1 = 198; return BaseClass::GetGameTextSpeechParams( params ); }
|
||||
#endif
|
||||
|
||||
private:
|
||||
CAI_FollowBehavior m_FollowBehavior;
|
||||
};
|
||||
|
@ -138,6 +138,11 @@ public:
|
||||
// used so a grub can notify me that I stepped on it. Says a line.
|
||||
void OnSquishedGrub( const CBaseEntity *pGrub );
|
||||
|
||||
#ifdef MAPBASE
|
||||
// Use the vortigaunts' default subtitle color (188,241,174)
|
||||
bool GetGameTextSpeechParams( hudtextparms_t ¶ms ) { params.r1 = 188; params.g1 = 241; params.b1 = 174; return BaseClass::GetGameTextSpeechParams( params ); }
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
||||
int NumAntlionsInRadius( float flRadius );
|
||||
|
Loading…
Reference in New Issue
Block a user