mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-03-04 01:35:26 +03:00
Add precache for choreo sentence responses
This commit is contained in:
parent
309f8019dd
commit
d9d877a96b
@ -31,6 +31,9 @@
|
||||
|
||||
#ifdef GAME_DLL
|
||||
#include "sceneentity.h"
|
||||
#ifdef MAPBASE
|
||||
#include "mapbase/choreosentence.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "networkstringtabledefs.h"
|
||||
@ -492,6 +495,17 @@ void CGameResponseSystem::Precache()
|
||||
CBaseEntity::PrecacheScriptSound( response.value );
|
||||
}
|
||||
break;
|
||||
#ifdef MAPBASE
|
||||
case RESPONSE_CHOREOSENTENCE:
|
||||
{
|
||||
const ChoreoSentence_t *pSentence = LookupChoreoSentence( NULL, response.value );
|
||||
if (pSentence)
|
||||
PrecacheChoreoSentence( *pSentence );
|
||||
else
|
||||
Msg( "Choreo scene '%s' not found\n", response.value );
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user