Figured since I've been sitting on this for months, I'd go ahead and release it. (I won't be telling spefically what lines to add this code to for zoptioninterface only the functions. The reason for this is It doesn't help people learn. By not saying what lines to add it to, it'll require you to mess around with the source if the code doesn't work. Besides, afaik, maiet commented where the buttons, comboboxes, editbox, etc are at)
Step 1. Open ZOptioninterface.cpp
Add this in void ZOptionInterface::InitInterfaceOption(void) with the other buttons
Code:
pWidget2 = (MButton*)pResource->FindWidget("AutoRecord");
if (pWidget2)
{
pWidget2->SetCheck(ZGetConfiguration()->GetEtc()->bAutoRecord);
}
Add this in void ZOptionInterface::SaveInterfaceOption(void)
Code:
pWidget2 = (MButton*)pResource->FindWidget("AutoRecord");
if (pWidget2)
{
Z_ETC_AUTORECORD = pWidget2->GetCheck();
}
Step 2:
Open ZConfiguration.cpp
Under ZTOK_ETC_FRAMELIMIT_PERSECOND, add this
Code:
childElement.GetChildContents(&m_Etc.bAutoRecord, ZTOK_ETC_AUTORECORD);
Search for ZTOK_ETC_FRAMELIMIT_PERSECOND again, under it, add this:
Code:
//AutoRecord
parentElement.AppendText("\n\t\t");
aElement = parentElement.CreateChildElement(ZTOK_ETC_AUTORECORD);
sprintf(temp, "%s", m_Etc.bAutoRecord ? "TRUE" : "FALSE");
aElement.SetContents(temp);
Step 3:
Open ZConfiguration.h
find struct ZCONFIG_ETC{, inside that, add this
Find ZTOK_CONFIG_FRAMELIMIT_PERSECOND, under it add this:
Code:
#define ZTOK_ETC_AUTORECORD "AUTORECORD"
search for Z_ETC_FRAMELIMIT_PERSECOND, under it add this:
Code:
#define Z_ETC_AUTORECORD (ZGetConfiguration()->GetEtc()->bAutoRecord)
Step 4:
Open ZGame.cpp
inside ZGame::InitRound(), at the top of the function, add this
Code:
//sloppy but works fine
if (ZGetConfiguration()->GetEtc()->bAutoRecord == true && !ZGetGameTypeManager()->IsQuestDerived(ZGetGameClient()->GetMatchStageSetting()->GetGameType()) && !ZGetGame()->IsReplay() && m_bRecording == false)
{
ZGetGame()->StartRecording();
}
If you have any problems, just post here & ill try to assist you.