s1lentq / ReGameDLL_CS

:hammer: Reverse-engineered gamedll (CS 1.6 / CZero)
GNU General Public License v3.0
573 stars 196 forks source link

(Request) Precache bot radio sound files. #785

Open HRTMC opened 1 year ago

HRTMC commented 1 year ago

As I stated in the title, it would be appreciated if we could get an option to precache radio sounds, just like the original CS Bot Enabler. you can even use the CS Bot Enabler and enable the option and have no issues, but you will receive a warning that "Could not patch CS Bot Enabler."

silvanosfo commented 1 year ago

I just notice the same thing. Bot radio sounds are not being precached. It would be nice to have a cvar like CS Bot Enabler to turn on or off the precache of bot radio sounds

StevenKal commented 1 year ago

A setting/CVar to turn this on under CS v1.6, yes, but the problem is that there are 487 sounds in the archive, so, except for ReHLDS servers with enhanced resources limits (up to 4096 generics, vs 512 for GoldSrc), servers under legit GoldSrc could not enable this without reaching total limit (and crash the server...). But a CVar having 3 modes (0 - Disabled. 1 - Enabled only if ReHLDS is detected (automatic). 2 - Enabled in force.) will be a solution, with maybe "1" as default when "-bots" command line parameter is detected under CS v1.6.

HRTMC commented 1 year ago

A setting/CVar to turn this on under CS v1.6, yes, but the problem is that there are 487 sounds in the archive, so, except for ReHLDS servers with enhanced resources limits (up to 4096 generics, vs 512 for GoldSrc), servers under legit GoldSrc could not enable this without reaching total limit (and crash the server...). But a CVar having 3 modes (0 - Disabled. 1 - Enabled only if ReHLDS is detected (automatic). 2 - Enabled in force.) will be a solution, with maybe "1" as default when "-bots" command line parameter is detected under CS v1.6.

or just a simple enable and disable cvar.

SmileYzn commented 1 year ago

Is possible to make an AMX plugin to do this. The server owner can decide when enable or disable it.

??

StevenKal commented 1 year ago

Of course, but use "pfnPrecacheGeneric" for such, & ReHLDS...