Clang
This commit is contained in:
parent
36654d7b6e
commit
6f4b8957da
@ -111,7 +111,9 @@ static CatVar debug_projectiles(CV_SWITCH, "debug_projectiles", "0",
|
||||
"Debug Projectiles");
|
||||
|
||||
static CatVar fakelag_amount(CV_INT, "fakelag", "0", "Bad Fakelag");
|
||||
static CatVar serverlag_amount(CV_INT, "serverlag", "0", "Lag the server by spamming this many voicecommands per tick");
|
||||
static CatVar serverlag_amount(
|
||||
CV_INT, "serverlag", "0",
|
||||
"Lag the server by spamming this many voicecommands per tick");
|
||||
CatVar semiauto(CV_INT, "semiauto", "0", "Semiauto");
|
||||
|
||||
bool *bSendPackets;
|
||||
@ -518,8 +520,8 @@ bool CreateMove_hook(void *thisptr, float inputSample, CUserCmd *cmd)
|
||||
g_Settings.last_angles = cmd->viewangles;
|
||||
}
|
||||
if (serverlag_amount)
|
||||
for (int i = 0; i < (int)serverlag_amount; i++)
|
||||
g_IEngine->ServerCmd("voicecommand 0 0", false);
|
||||
for (int i = 0; i < (int) serverlag_amount; i++)
|
||||
g_IEngine->ServerCmd("voicecommand 0 0", false);
|
||||
|
||||
// PROF_END("CreateMove");
|
||||
if (!(cmd->buttons & IN_ATTACK))
|
||||
|
@ -667,7 +667,8 @@ void FrameStageNotify_hook(void *_this, int stage)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (cathook && stage == FRAME_RENDER_START) {
|
||||
if (cathook && stage == FRAME_RENDER_START)
|
||||
{
|
||||
INetChannel *ch;
|
||||
ch = (INetChannel *) g_IEngine->GetNetChannelInfo();
|
||||
if (ch && !hooks::IsHooked((void *) ch))
|
||||
@ -680,9 +681,9 @@ void FrameStageNotify_hook(void *_this, int stage)
|
||||
hooks::netchannel.HookMethod((void *) Shutdown_hook,
|
||||
offsets::Shutdown());
|
||||
hooks::netchannel.Apply();
|
||||
#if ENABLE_IPC
|
||||
#if ENABLE_IPC
|
||||
ipc::UpdateServerAddress();
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
}
|
||||
if (cathook && !g_Settings.bInvalid && stage == FRAME_RENDER_START)
|
||||
|
Reference in New Issue
Block a user