Raised This Month: $12 Target: $400
 3% 

How to automatically get the sounds a map precaches


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AnimalMonster
Senior Member
Join Date: May 2020
Old 03-11-2022 , 11:02   How to automatically get the sounds a map precaches
Reply With Quote #1

Hey, how can i get the sounds a map precaches ?
AnimalMonster is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-11-2022 , 13:53   Re: How to automatically get the sounds a map precaches
Reply With Quote #2

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.
__________________









Last edited by CrazY.; 03-11-2022 at 13:57.
CrazY. is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 03-11-2022 , 14:26   Re: How to automatically get the sounds a map precaches
Reply With Quote #3

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
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:37.


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