mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-05 10:10:42 +03:00
Added missing parameters to function in new response code
This commit is contained in:
parent
08727cc322
commit
32bbb0c231
@ -851,7 +851,11 @@ bool CAI_Expresser::SpeakDispatchResponse( AIConcept_t concept, AI_Response *res
|
|||||||
if ( !result->ShouldntUseScene() )
|
if ( !result->ShouldntUseScene() )
|
||||||
{
|
{
|
||||||
// This generates a fake CChoreoScene wrapping the sound.txt name
|
// This generates a fake CChoreoScene wrapping the sound.txt name
|
||||||
|
#ifdef MAPBASE
|
||||||
|
spoke = SpeakAutoGeneratedScene( response, delay, result, filter );
|
||||||
|
#else
|
||||||
spoke = SpeakAutoGeneratedScene( response, delay );
|
spoke = SpeakAutoGeneratedScene( response, delay );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1300,9 +1304,17 @@ bool CAI_Expresser::SpeakRawScene( const char *pszScene, float delay, AI_Respons
|
|||||||
}
|
}
|
||||||
|
|
||||||
// This will create a fake .vcd/CChoreoScene to wrap the sound to be played
|
// This will create a fake .vcd/CChoreoScene to wrap the sound to be played
|
||||||
|
#ifdef MAPBASE
|
||||||
|
bool CAI_Expresser::SpeakAutoGeneratedScene( char const *soundname, float delay, AI_Response *response, IRecipientFilter *filter )
|
||||||
|
#else
|
||||||
bool CAI_Expresser::SpeakAutoGeneratedScene( char const *soundname, float delay )
|
bool CAI_Expresser::SpeakAutoGeneratedScene( char const *soundname, float delay )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
|
#ifdef MAPBASE
|
||||||
|
float speakTime = GetOuter()->PlayAutoGeneratedSoundScene( soundname, delay, response, filter );
|
||||||
|
#else
|
||||||
float speakTime = GetOuter()->PlayAutoGeneratedSoundScene( soundname );
|
float speakTime = GetOuter()->PlayAutoGeneratedSoundScene( soundname );
|
||||||
|
#endif
|
||||||
if ( speakTime > 0 )
|
if ( speakTime > 0 )
|
||||||
{
|
{
|
||||||
SpeechMsg( GetOuter(), "SpeakAutoGeneratedScene( %s, %f) %f\n", soundname, delay, speakTime );
|
SpeechMsg( GetOuter(), "SpeakAutoGeneratedScene( %s, %f) %f\n", soundname, delay, speakTime );
|
||||||
|
@ -249,7 +249,11 @@ protected:
|
|||||||
|
|
||||||
bool SpeakRawScene( const char *pszScene, float delay, AI_Response *response, IRecipientFilter *filter = NULL );
|
bool SpeakRawScene( const char *pszScene, float delay, AI_Response *response, IRecipientFilter *filter = NULL );
|
||||||
// This will create a fake .vcd/CChoreoScene to wrap the sound to be played
|
// This will create a fake .vcd/CChoreoScene to wrap the sound to be played
|
||||||
|
#ifdef MAPBASE
|
||||||
|
bool SpeakAutoGeneratedScene( char const *soundname, float delay, AI_Response *response = NULL, IRecipientFilter *filter = NULL );
|
||||||
|
#else
|
||||||
bool SpeakAutoGeneratedScene( char const *soundname, float delay );
|
bool SpeakAutoGeneratedScene( char const *soundname, float delay );
|
||||||
|
#endif
|
||||||
|
|
||||||
void DumpHistories();
|
void DumpHistories();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user