View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-18-2014 , 14:20   Re: SourceMod 1.6.1, Metamod:Source 1.10.2 Released
#13

Quote:
Originally Posted by Alienmario View Post
PrecacheScriptSound returns true and GetGameSoundParams returns correct info. After I spawn the npc, the sound can be played without problems. Can't think of what's causing it.
Some of us have suspected for some time that the game engine's IsSoundPrecached doesn't work right on some games, so that may be why you're seeing that warning.

PrecacheScriptSound doesn't need to be used in most cases, it's there for oddball cases such as TF2's MvM files where not all sounds are precached by the game on map start. TF2 does that because it actually has more sounds than the game engine supports (8192 is the game engine limit I think, TF2 includes 12822 sounds. Not all are in game_sounds files, but the majority are).
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 08-18-2014 at 14:27.
Powerlord is offline