AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to automatically get the sounds a map precaches (https://forums.alliedmods.net/showthread.php?t=336801)

AnimalMonster 03-11-2022 11:02

How to automatically get the sounds a map precaches
 
Hey, how can i get the sounds a map precaches ?

CrazY. 03-11-2022 13:53

Re: How to automatically get the sounds a map precaches
 
I don't think this is possible. What you can do is hook FM_PrecacheSound and keep track of the precached files. Then, switch through the maps on the server and exclude all files from the list but the ones that were precached in all maps. You'll end up with a "whitelist" of files that are probably used by the game. Now check if the sound being precached is in the list, if it's not, it's probably being precached by the map.

Shadows Adi 03-11-2022 14:26

Re: How to automatically get the sounds a map precaches
 
You can use this for reHLDS ( defaultly, reapi ): https://github.com/ShadowsAdi/PrecacheList
or wait for this PRs to get approved:
https://github.com/dreamstalker/rehlds/pull/903
https://github.com/s1lentq/reapi/pull/249


All times are GMT -4. The time now is 20:10.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.