Made HUD movie parameters more flexible; Added WIP movie fade effects for replicating the Portal 2 keyvalues

This commit is contained in:
Blixibon
2021-03-07 11:39:50 -06:00
parent a4a292975b
commit c4abb0b07f
3 changed files with 109 additions and 21 deletions

View File

@@ -71,19 +71,18 @@ void CLogicPlayMovie::Spawn( void )
//-----------------------------------------------------------------------------
void CLogicPlayMovie::InputPlayMovie( inputdata_t &data )
{
const char *szVideoCommand = ( m_bAllowUserSkip ) ? "playvideo_exitcommand" : "playvideo_exitcommand_nointerrupt";
// Build the hacked string
char szClientCmd[256];
Q_snprintf( szClientCmd, sizeof(szClientCmd),
"%s %s \"ent_fire %s __MovieFinished\" %s\n",
szVideoCommand,
"playvideo_complex %s \"ent_fire %s __MovieFinished\" %d %d\n",
STRING(m_strMovieFilename),
GetEntityNameAsCStr(),
m_bAllowUserSkip,
#ifdef MAPBASE
m_bLooping ? "1" : "0"
m_bLooping
#else
"0"
0
#endif
);