FF Diff Viewer

Comparing 2006 Base SDK to Fortress Forever 2.46

dlls/sound.cpp

12121213121412151216121712181219
{ if ( iSentenceIndex >= 0 ) { CPASAttenuationFilter filter( GetContainingEntity( entity ), soundlevel ); CBaseEntity::EmitSentenceByIndex( filter, ENTINDEX(entity), CHAN_VOICE, iSentenceIndex, volume, soundlevel, flags, pitch ); } }
121212131214121512161217121812191220122112221223122412251226
{ if ( iSentenceIndex >= 0 ) { //CPASAttenuationFilter filter( GetContainingEntity( entity ), soundlevel ); // Jiggles: We don't want to send this to other players -- just use a SingleRecipientFilter CBasePlayer *pPlayer = ToBasePlayer( GetContainingEntity( entity ) ); if ( pPlayer ) { CSingleUserRecipientFilter filter( pPlayer ); // Using CHAN_VOICE, the vox was getting cut-off by pain/death sounds CBaseEntity::EmitSentenceByIndex( filter, ENTINDEX(entity), CHAN_STREAM/* CHAN_VOICE */, iSentenceIndex, volume, soundlevel, flags, pitch ); } } }
131613171318131913201321
engine->PrecacheSentenceFile( scriptName ); #else engine->PrecacheSentenceFile( "scripts/sentences.txt" ); #endif fSentencesInit = true; }
132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349
engine->PrecacheSentenceFile( scriptName ); #else engine->PrecacheSentenceFile( "scripts/sentences.txt" ); // begin jon: ability to use "maps\mapname_sentences.txt" and "scripts/sentences_common.txt" as well Msg( "SENTENCEG_Init: precached scripts/sentences.txt\n" ); engine->PrecacheSentenceFile( "scripts/sentences_common.txt" ); Msg( "SENTENCEG_Init: precached scripts/sentences_common.txt\n" ); const char *mapname = STRING( gpGlobals->mapname ); if ( mapname && *mapname ) { if ( filesystem->FileExists( UTIL_VarArgs( "maps/%s_sentences.txt", mapname ) ) ) { char mapSentencesFilename[256] = {0}; Q_snprintf(mapSentencesFilename, sizeof(mapSentencesFilename), "maps/%s_sentences.txt", mapname); engine->PrecacheSentenceFile( mapSentencesFilename ); Msg( "SENTENCEG_Init: precached maps/%s_sentences.txt\n", mapname ); } } // end jon: ability to use "maps\mapname_sentences.txt" and "scripts/sentences_common.txt" as well #endif fSentencesInit = true; }