sound on bullet water transition

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2428 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-08-27 23:07:42 +00:00
parent 8071456b5a
commit 1d72565cce
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -602,7 +602,10 @@ bool addbullethole(dynent *d, const vec &from, const vec &to, float radius, bool
o.add(ray.mul(dist));
o.add(vec(surface).mul(0.005f));
newparticle(o, surface, bulletholettl, 7);
if(noisy && bulletbouncesound && bulletbouncesoundrad && d!=player1 && o.dist(camera1->o) <= bulletbouncesoundrad) playsound(S_BULLETHIT, &o, SP_LOW);
if(noisy && bulletbouncesound && bulletbouncesoundrad && d!=player1 && o.dist(camera1->o) <= bulletbouncesoundrad)
{
playsound(o.z<hdr.waterlevel ? S_BULLETWATERHIT : S_BULLETHIT, &o, SP_LOW);
}
return true;
}