-
-
Notifications
You must be signed in to change notification settings - Fork 464
Closed
Description
Help us help you
- I have checked that my issue doesn't exist yet.
- I have tried my absolute best to reduce the problem-space and have provided the absolute smallest test-case possible.
- I can always reproduce the issue with the provided description below.
Environment
- Operating System version: Windows
- Game/AppID (with version if applicable): Team Fortress 2
- Current SourceMod version: Sourcemod 1.10.0
- Current SourceMod snapshot: 6425
- Current Metamod: Source snapshot: 1.10.7-dev
- I have updated SourceMod to the latest version and it still happens.
- I have updated SourceMod to the latest snapshot and it still happens.
- I have updated SourceMM to the latest snapshot and it still happens.
Description
PrecacheScriptSound is not precaching the sound files. Using PrecacheSound and directly using the sound path from the soundscript file(including sound characters) works. Error messages about non-precached sound files are printed to console, too. I've made a test code. After typing sm_sound_precache# and then sm_sound_play, I found that only sm_sound_test_precache2 allows sm_sound_play play the sound.
Also PrecacheScriptSound returns true
The server is:
running Freak Fortress 2
testing is done on non-mvm map
Problematic Code (or Steps to Reproduce)
#include <sourcemod>
#include <sdktools>
public void OnPluginStart()
{
RegConsoleCmd("sm_sound_test_precache1", Command_TestSoundPrecache1);
RegConsoleCmd("sm_sound_test_precache2", Command_TestSoundPrecache2);
RegConsoleCmd("sm_sound_test_precache3", Command_TestSoundPrecache3);
RegConsoleCmd("sm_sound_play1", Command_TestSoundPlay1);
}
//Not working
public Action Command_TestSoundPrecache1(int client, int args)
{
if(PrecacheScriptSound("MVM.Warning"))
{
ReplyToCommand(client, "Precache successful!");
}
return Plugin_Handled;
}
//Working
public Action Command_TestSoundPrecache2(int client, int args)
{
PrecacheSound("#*mvm/mvm_warning.wav");
return Plugin_Handled;
}
//Not working
public Action Command_TestSoundPrecache3(int client, int args)
{
PrecacheSound("mvm/mvm_warning.wav");
return Plugin_Handled;
}
public Action Command_TestSoundPlay1(int client, int args)
{
EmitGameSoundToAll("MVM.Warning");
return Plugin_Handled;
}
Logs
- Please attach in separate files: game output, library logs, kernel logs, and any other supporting information.
- In case of a crash, please attach minidump or dump analyze output.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels