Hello, I am writing a plugin for a server and it requires files to be downloaded. However, it doesn't seem to download anytime the plugin is running and I attempt to join the server
Code:
public void OnPluginStart()
{
g_cvEnabled = CreateConVar("jb_markers_enable", "1", "Set to 0 to disable this plugin");
g_bEnabled = GetConVarBool(g_cvEnabled);
HookConVarChange(g_cvEnabled, Action_OnSettingsChange);
RegConsoleCmd("sm_wmarker", Command_Beacon);
CreateTimer(1.0, Timer_DrawMakers, _, TIMER_REPEAT);
AddFileToDownloadsTable("materials/sprites/bhwarden/blueglow1.vmt");
AddFileToDownloadsTable("materials/sprites/bhwarden/blueglow1.vtf");
}
public void OnMapStart()
{
ResetMarker();
g_beamsprite = PrecacheModel("materials/sprites/bhwarden/blueglow1.vmt");
g_halosprite = PrecacheModel("materials/sprites/bhwarden/blueglow1.vmt");
}
Here is the only mention of the models in creation, both are defined above the snippet of code.
Server CVARs are:
sv_allowdownload 1
sv_allowupload 1
sv_forcepreload 1
sv_downloadurl "url"
Any help would be appreciated