Added VScript file response to base response dispatch code

This commit is contained in:
Blixibon 2021-03-10 02:11:39 -06:00
parent 24ac080608
commit e10a4d6613
2 changed files with 15 additions and 3 deletions

View File

@ -9243,10 +9243,15 @@ void CBaseEntity::DispatchResponse( const char *conceptName )
CAI_Expresser::FireEntIOFromResponse(response, this);
break;
}
#ifdef MAPBASE
#ifdef MAPBASE_VSCRIPT
case ResponseRules::RESPONSE_VSCRIPT:
{
RunScript( response, "ResponseScript" );
CAI_Expresser::RunScriptResponse( this, response, &set, false );
break;
}
case ResponseRules::RESPONSE_VSCRIPT_FILE:
{
CAI_Expresser::RunScriptResponse( this, response, &set, true );
break;
}
#endif

View File

@ -286,11 +286,18 @@ void CSpeaker::DispatchResponse( const char *conceptName )
CAI_Expresser::FireEntIOFromResponse( response, pTarget );
break;
}
#ifdef MAPBASE_VSCRIPT
case ResponseRules::RESPONSE_VSCRIPT:
{
pTarget->RunScript( response, "ResponseScript" );
CAI_Expresser::RunScriptResponse( pTarget, response, &set, false );
break;
}
case ResponseRules::RESPONSE_VSCRIPT_FILE:
{
CAI_Expresser::RunScriptResponse( pTarget, response, &set, true );
break;
}
#endif
default:
break;
}