mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-02-05 02:00:47 +03:00
Disable BotPrecache whether game is CS 1.6 (#839)
This commit is contained in:
parent
94bf705196
commit
e08cf1e72a
@ -613,6 +613,13 @@ void CONSOLE_ECHO_LOGGED(const char *pszMsg, ...)
|
|||||||
|
|
||||||
void BotPrecache()
|
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");
|
s_iBeamSprite = PRECACHE_MODEL("sprites/smoke.spr");
|
||||||
|
|
||||||
PRECACHE_SOUND("buttons/bell1.wav");
|
PRECACHE_SOUND("buttons/bell1.wav");
|
||||||
@ -621,7 +628,12 @@ void BotPrecache()
|
|||||||
PRECACHE_SOUND("buttons/button11.wav");
|
PRECACHE_SOUND("buttons/button11.wav");
|
||||||
PRECACHE_SOUND("buttons/latchunlocked2.wav");
|
PRECACHE_SOUND("buttons/latchunlocked2.wav");
|
||||||
PRECACHE_SOUND("buttons/lightswitch2.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/tutor_msg.wav");
|
||||||
PRECACHE_SOUND("events/enemy_died.wav");
|
PRECACHE_SOUND("events/enemy_died.wav");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user