Update LagExploit.cpp
This commit is contained in:
parent
9850642ca6
commit
e5b44a8c35
@ -33,7 +33,7 @@ CatVar value(CV_INT, "se_value", "900", "Sequence exploit value",
|
|||||||
CatCommand do_lagexploit("se_do", "Sequence exploit (for use in scripts)",
|
CatCommand do_lagexploit("se_do", "Sequence exploit (for use in scripts)",
|
||||||
[]() { AddExploitTicks(6); });
|
[]() { AddExploitTicks(6); });
|
||||||
int exticks = 0;
|
int exticks = 0;
|
||||||
model_t *point = nullptr;
|
const model_t *point = nullptr;
|
||||||
void AddExploitTicks(int ticks)
|
void AddExploitTicks(int ticks)
|
||||||
{
|
{
|
||||||
exticks = std::max(ticks, exticks);
|
exticks = std::max(ticks, exticks);
|
||||||
@ -146,7 +146,7 @@ void CreateMove()
|
|||||||
if (!point)
|
if (!point)
|
||||||
{
|
{
|
||||||
CachedEntity *pEnt = ENTITY(i);
|
CachedEntity *pEnt = ENTITY(i);
|
||||||
model_t *model = RAW_ENT(pEnt)->GetModel();
|
const model_t *model = RAW_ENT(pEnt)->GetModel();
|
||||||
if (!model)
|
if (!model)
|
||||||
continue;
|
continue;
|
||||||
const char *model_name = g_IModelInfo->GetModelName(model);
|
const char *model_name = g_IModelInfo->GetModelName(model);
|
||||||
|
Reference in New Issue
Block a user