mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-14 15:57:59 +03:00
Added VScript file response to base response dispatch code
This commit is contained in:
parent
24ac080608
commit
e10a4d6613
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user