Jump to content
Sign in to follow this  
USMC Sniper

Gunshot loudness help

Recommended Posts

I don't know if this is through the cpp, but how can I make a gunshot quieter over certain distances. I know this can be done because for example the BIS MP5 can be heard close up but not from far away. I have a bunch of weapons but I want a say Glock or a Beretta not to be heard loudly or at all after a certain distance. How can I do this?

Share this post


Link to post
Share on other sites

Look at the sound command from BIS' config.cpp :

m16, single shot :

sound[]={"Weapons\M16Single",1,1};

hk mp5, single shot :

sound[]={"Weapons\hk_singleshot",0.000316,1};

The first number is for the distance at which you can hear it. I dont really know how to calculate a distance with that, but the smaller the number, the smaller the distance.

The second number is for the speed at which the sound is played. In this case, both at 100%.

So that's for what the player can hear. Now for the AI, you have different parameter, attached to the ammo, not the weapon :

BulletSingle:

visibleFire=16;

audibleFire=16;

visibleFireTime=3;

BulletSilencedSingle:

visibleFire=0.035;

audibleFire=0.035;

visibleFireTime=2;

So as you can see, it works the same way with "audibleFire="

Now why BIS decides to attach all the AI releated questions, like engagement range etc to ammo and not the weapon, i dont know, but it's rubbish. crazy_o.gif

Share this post


Link to post
Share on other sites

Ok thanks a lot dude, I should've known it was the first number there in the cpp. crazy_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×