Fix door closing on bot and then ignoring
This commit is contained in:
parent
32c76396d9
commit
783b747d5c
@ -113,10 +113,12 @@ public:
|
|||||||
}
|
}
|
||||||
auto &pair = inactives.at(connection);
|
auto &pair = inactives.at(connection);
|
||||||
|
|
||||||
pair.second = pair.second +
|
unsigned int newTime = std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||||
(std::chrono::duration_cast<std::chrono::milliseconds>(
|
|
||||||
std::chrono::system_clock::now() - timer.last)
|
std::chrono::system_clock::now() - timer.last)
|
||||||
.count());
|
.count();
|
||||||
|
if (pair.first == 2 && !vischeckConnection(connection))
|
||||||
|
newTime = (newTime > 2500 ? 2500 : newTime);
|
||||||
|
pair.second = pair.second + newTime;
|
||||||
if (pair.second >= 5000)
|
if (pair.second >= 5000)
|
||||||
resetPather = true;
|
resetPather = true;
|
||||||
}
|
}
|
||||||
|
@ -467,7 +467,7 @@ void CreateMove()
|
|||||||
fClampAngle(angles);
|
fClampAngle(angles);
|
||||||
current_user_cmd->viewangles = angles;
|
current_user_cmd->viewangles = angles;
|
||||||
current_user_cmd->buttons |= IN_ATTACK;
|
current_user_cmd->buttons |= IN_ATTACK;
|
||||||
g_pLocalPlayer->bUseSilentAngles = true;
|
g_pLocalPlayer->bUseSilentAngles = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user