View Single Post
oqyh
Senior Member
Join Date: May 2019
Location: United Arab Emirates
Old 09-24-2022 , 17:31   Re: [TF2] SV_StartSound not precached (0) on Freak Fortress server
Reply With Quote #2

it's literally what it says not precached



2 solution


solution (1)
======================
if the sound in the plugin make sure you edit and precach it

here is example



PHP Code:

char FULL_SOUND_PATH
[] = "sound/gold_kingz/anysound.mp3";
char RELATIVE_SOUND_PATH[] = "*/gold_kingz/anysound.mp3";

public 
void OnMapStart()
{
    
AddFileToDownloadsTable(FULL_SOUND_PATH);
    
FakePrecacheSound(RELATIVE_SOUND_PATH);
}

void FakePrecacheSound(const char[] szPath)
{
    
AddToStringTable(FindStringTable"soundprecache" ), szPath);


solution (2) recommended
======================

download
https://forums.alliedmods.net/showthread.php?p=602270


and put sound path at XXXX/addons/sourcemod/configs/downloads.ini


it will Download and Precach at same time
__________________
.:[ >> My Plugins << ]:.

My discord : oqyh

Last edited by oqyh; 09-24-2022 at 17:32.
oqyh is offline