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

Quote:
Originally Posted by Alienmario View Post
Thanks for gamesounds! Just what I needed :)

btw can't get it to precache npc sounds from npc_sounds_antlionguard.txt
PHP Code:
PrecacheScriptSound("NPC_AntlionGuard.StepHeavy"); 
Console: SV_StartSound: npc/antlion_guard/foot_heavy1.wav not precached (0)
Game is hl2dm
What's the return value from PrecacheScriptSound?

PrecacheScriptSound and GetGameSoundParams are actually wrappers for a function call within the SDK, so it should be able to precache sounds from any of a game's game_sound files (including TF2's MvM sound files that aren't loaded by default?). However... if this is in HL2's game_sounds and not HL2:DM's game sounds, it may not see it.
__________________
Not currently working on SourceMod plugin development.

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