mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-05-11 22:39:34 +03:00
Add precache for choreo sentence responses
This commit is contained in:
parent
309f8019dd
commit
d9d877a96b
@ -31,6 +31,9 @@
|
|||||||
|
|
||||||
#ifdef GAME_DLL
|
#ifdef GAME_DLL
|
||||||
#include "sceneentity.h"
|
#include "sceneentity.h"
|
||||||
|
#ifdef MAPBASE
|
||||||
|
#include "mapbase/choreosentence.h"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "networkstringtabledefs.h"
|
#include "networkstringtabledefs.h"
|
||||||
@ -492,6 +495,17 @@ void CGameResponseSystem::Precache()
|
|||||||
CBaseEntity::PrecacheScriptSound( response.value );
|
CBaseEntity::PrecacheScriptSound( response.value );
|
||||||
}
|
}
|
||||||
break;
|
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