
Originally Posted by
gaspartx
I tried putting a replay of background on the login screen, but not getting much success ..
m_pBackground->SetScene( CreateReplayGame("test.gzr") );
Code:
bool CreateReplayGame(char *filename)
{
static char szLastFile[256] = "";
char szBuf[256];
if (filename != NULL) strcpy(szBuf, filename);
else strcpy(szBuf, szLastFile);
if (filename != NULL) strcpy(szLastFile, filename);
ZReplayLoader loader;
if (!loader.Load(szBuf)) return false;
ZGetGame()->OnLoadReplay(&loader);
return true;
}
Code:
if( m_pBackground!=0)
{
m_pBackground->SetScene( CreateReplayGame("DM_RavenGunz_20120804_215112.gzr") );
//m_pBackground->SetScene( LOGIN_SCENE_FALLDOWN);
m_pBackground->LoadMesh();
m_pBackground->Draw();
}
Result of the codes: Impossible.
Try to make it:
Code:
ZApplication::GetGameInterface()->OnLoadReplay(&loader);