SOUND_CHAT_SERVER
is the sound of when you take ur hammercl_replay_notify
which goes from 0 (disabled) to 3 (enabled).
1 is for showing a message before saving,
2 is for showing a message after,
3 is bothfloat Max = 10.f * 60;
float Min = 10.f;
if(g_Config.m_ClReplayLength <= Max)
{
int FakeLength = g_Config.m_ClReplayLength - Min; // minimum length is 10 not 0
FakeLength = (int)(DoScrollbarH(&FakeLength, &Button, FakeLength / (Max - Min))*(Max - Min));
g_Config.m_ClReplayLength = FakeLength + Min;
}
else
{
int Diff = g_Config.m_ClReplayLength - Max;
int FakeLength = Max - Min;
FakeLength = (int)(DoScrollbarH(&FakeLength, &Button, FakeLength / (Max - Min))*(Max - Min));
g_Config.m_ClReplayLength = FakeLength + Min + Diff;
}
min
to minimum
looks so uglycl_replays
is disabled? (edited)cl_replays
is on 0 then do that else thatstr_format(aBuf, sizeof(aBuf), "echo %s", Localize("Successfully saved the replay!"));
m_pConsole->ExecuteLine(aBuf);
CChat::Echo()
then make ConEcho also use thatawait save_replay; echo "Done";
Echo(pResult->GetString(0));
vote_no
and vote [yes|no]
?vote_yes
GameClient()->DoStuff();
or m_pGameClient->DoStuff()
?ShouldSendChatTimeoutCodeHeuristic
can't you just name this ShouldSendTimeoutCode
?