AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Replace standard sounds in miscstats.sma (https://forums.alliedmods.net/showthread.php?t=16937)

Guenhwyvar 08-23-2005 04:59

Replace standard sounds in miscstats.sma
 
Hi,

I thought about trying ultimate sounds but I think, the standard amxx components will fit my demands as well.

I have a pack of own sounds (multikill, ultrakill, godlike, etc.) and want amxx to use them instead of the standard sounds. After exploring the original sma files, the miscstats seems to be the 'target' :):

Code:
new g_Sounds[7][] = {   "multikill",   "ultrakill",   "killingspree",   "rampage",   "unstoppable",   "monsterkill",   "godlike" }

Could I replace, f.e., the line

Code:
  "multikill",
with
Code:
  "my_multikill",

and precache this sound somewhere? Or isn't it as easy as it seems to be?

Thanks for your help and sorry in advance if someone asked this before.

DataMatrix 08-23-2005 05:20

Add this in the file,
Code:
public plugin_precache() {     precache_sound("path/to/your/wav.wav")     return PLUGIN_CONTINUE }

Guenhwyvar 08-23-2005 05:39

thanx datamatrix, but what about the other changes?

I would add this:

Code:
public plugin_precache() {     precache_sound("misc/my_multikill.wav")     return PLUGIN_CONTINUE }

change the line:

Code:
"my_multikill",

and that's all?

DataMatrix 08-23-2005 05:49

Should be enough, just make a backup, compile and see what happens :).


All times are GMT -4. The time now is 14:19.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.