Newbie Spellweaver
- Joined
- Dec 8, 2016
- Messages
- 55
- Reaction score
- 78
After all those years I got tired of seeing the same old chapter 6 loginscreen over and over again. So, I finally decided to update it to chapter 7. Still needs some improvement.
Yeah i my self would like to add this too the source can any one point me in the right direction or explain it here how to do it please ?
-> AccountLogin.cpp, login environment is handled here
Take a look at the code, understand how it works and add the login_ch7.wdb and camera layout.
LoginEpisode = 7 <---- add in 7
CheckMemory =1300
ItemMallHelpContent = 1
void CAccountLogin::InitLoginEnvironment()
{
int chapter = g_pGameMain->GetLoginEpisodeVersion();
//chapter = 1 + rand() % 6;
if (chapter == 7)
{
//7.0
m_AccountLoginCameraLayout.push_back(sCameraLayout(7118.0f, 562.0f, 2806.0f, 32.0f, -56.0f, 0.0f, 272.0f, 0.0f));
m_AccountLoginCameraLayout.push_back(sCameraLayout(6330.0f, 49.0f, 3194.0f, 15.0f, -73.0f, 0.0f, 158.0f, 1.6f));
m_AccountLoginCameraLayout.push_back(sCameraLayout(5530.69f, 12.0f, 3575.12f, 9.0f, -64.0f, 0.0f, 30.0f, 1.4f));
m_fPlayerHeight = 2.0f;
float angle = 296.00f * ruPI / 180.0f;
m_PlayerDirection = CRuVector3(-sin(angle), 0.0f, -cos(angle));
g_pGameMain->SetLoginWdbFileName("wdb\\login\\login_ch7.wdb");
}
else if( chapter == 6 )
{
//6.0
Thanks for correcting me, I forgot