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:
jeefo 2025-01-17 22:43:35 +03:00
commit 5eab5dfb3c
No known key found for this signature in database
GPG key ID: D696786B81B667C8
12 changed files with 100 additions and 90 deletions

View file

@ -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) {