nav: fallback to whole map search if buckets fails
bot: improved breakable destroying aim: improved short-range firing ctrl: prevent commands execution while disconnected from server build: fix cmake for apple silicon builds
This commit is contained in:
parent
7238fe76f5
commit
5eab5dfb3c
12 changed files with 100 additions and 90 deletions
|
|
@ -51,6 +51,9 @@ void Game::precache () {
|
|||
void Game::levelInitialize (edict_t *entities, int max) {
|
||||
// this function precaches needed models and initialize class variables
|
||||
|
||||
// enable command handling
|
||||
ctrl.setDenyCommands (false);
|
||||
|
||||
// re-initialize bot's array
|
||||
bots.destroy ();
|
||||
|
||||
|
|
@ -215,6 +218,10 @@ void Game::levelShutdown () {
|
|||
|
||||
// suspend any analyzer tasks
|
||||
analyzer.suspend ();
|
||||
|
||||
// disable command handling
|
||||
ctrl.setDenyCommands (true);
|
||||
|
||||
}
|
||||
|
||||
void Game::drawLine (edict_t *ent, const Vector &start, const Vector &end, int width, int noise, const Color &color, int brightness, int speed, int life, DrawLine type) {
|
||||
|
|
@ -761,7 +768,7 @@ bool Game::loadCSBinary () {
|
|||
|
||||
// lookup for x64 binaries first
|
||||
if (plat.x64) {
|
||||
libs.insert (0, { "mp_amd64", "cs_amd64" });
|
||||
libs.insert (0, { "mp_amd64", "mp_arm64", "cs_arm64", "cs_amd64" });
|
||||
}
|
||||
|
||||
auto libCheck = [&] (StringRef mod, StringRef dll) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue