Quote:
|
Originally Posted by blacam00
Only the knife sounds can be modified.
|
That's correct if you're talking about weapons.
Now if you want to modify misc things such as the zooming sound, spraying sound, etc, you can.
Use this to log emitted sounds ( AMXx 1.7 required ):
Code:
#include <amxmodx>
#include <fakemeta>
new gCvarOn;
public plugin_init()
{
register_plugin("Emitted sound logger" , "0.1" , "v3x");
register_forward(FM_EmitSound, "EmitSound");
gCvarOn = register_cvar("log_emitted_sounds" , "0");
}
public EmitSound(entity, channel, const sound[]) {
if(pev_valid(entity)) {
if(get_pcvar_num(gCvarOn))
{
new Float:vec[3];
pev(entity , pev_origin , vec); // I think that's how you do it
log_amx("Sound emitted: %s - Origin: %f, %f, %f" , sound , vec[0] , vec[1] , vec[2]);
}
}
}
You'll need Fakemeta in order to make this plugin run properly. Also, you'll need to set the cvar "log_emitted_sounds" to 1.
Now go into your server, make a bunch of sounds, then check your AMXx logs.
Good luck.
__________________