Raised This Month: $ Target: $400
 0% 

shotting sounds?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-31-2006 , 00:41  
Reply With Quote #1

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.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply



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 16:42.


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