Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable BotPrecache whether game is CS 1.6 #839

Merged
merged 2 commits into from
Jul 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion regamedll/game_shared/bot/bot_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,13 @@ void CONSOLE_ECHO_LOGGED(const char *pszMsg, ...)

void BotPrecache()
{
#ifdef REGAMEDLL_FIXES
// all resources above are used between navarea, improved bots and tutor
// you can run cs1.6 with bots so it's not only limited to czero
if (!AreRunningCZero() && !AreBotsAllowed())
return;
#endif

s_iBeamSprite = PRECACHE_MODEL("sprites/smoke.spr");

PRECACHE_SOUND("buttons/bell1.wav");
Expand All @@ -621,7 +628,12 @@ void BotPrecache()
PRECACHE_SOUND("buttons/button11.wav");
PRECACHE_SOUND("buttons/latchunlocked2.wav");
PRECACHE_SOUND("buttons/lightswitch2.wav");
PRECACHE_SOUND("ambience/quail1.wav");

#ifdef REGAMEDLL_FIXES
PRECACHE_GENERIC("sound/ambience/quail1.wav");
#else
PRECACHE_SOUND("ambience/quail1.wav"); // not used internally
#endif

PRECACHE_SOUND("events/tutor_msg.wav");
PRECACHE_SOUND("events/enemy_died.wav");
Expand Down