Update LagExploit.cpp

This commit is contained in:
BenCat07 2018-02-07 12:09:57 +01:00 committed by GitHub
parent 2e22b26443
commit 9f15cca230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,7 @@ CatVar value(CV_INT, "se_value", "900", "Sequence exploit value",
CatCommand do_lagexploit("se_do", "Sequence exploit (for use in scripts)",
[]() { AddExploitTicks(6); });
int exticks = 0;
model_t *point = nullptr;
void AddExploitTicks(int ticks)
{
exticks = std::max(ticks, exticks);
@ -135,7 +136,6 @@ void CreateMove()
return;
int amount = 0;
static bool bWasHolding = false;
static model_t *point = nullptr;
bool bIsHolding = ((g_pUserCmd->buttons & IN_ATTACK) ||
(g_pUserCmd->buttons & IN_ATTACK2));