Raised This Month: $ Target: $400
 0% 

Replace standard sounds in miscstats.sma


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 08-23-2005 , 04:59   Replace standard sounds in miscstats.sma
Reply With Quote #1

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.
Guenhwyvar is offline
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 08-23-2005 , 05:20  
Reply With Quote #2

Add this in the file,
Code:
public plugin_precache() {     precache_sound("path/to/your/wav.wav")     return PLUGIN_CONTINUE }
DataMatrix is offline
Send a message via MSN to DataMatrix
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 08-23-2005 , 05:39  
Reply With Quote #3

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?
Guenhwyvar is offline
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 08-23-2005 , 05:49  
Reply With Quote #4

Should be enough, just make a backup, compile and see what happens .
DataMatrix is offline
Send a message via MSN to DataMatrix
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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