USMC Sniper 0 Posted March 18, 2004 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
Fab. 0 Posted March 19, 2004 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. Share this post Link to post Share on other sites
USMC Sniper 0 Posted March 19, 2004 Ok thanks a lot dude, I should've known it was the first number there in the cpp. Share this post Link to post Share on other sites