diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index ec0b1eb7..f3199939 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -621,10 +621,10 @@ void dodamage(int damage, playerent *pl, playerent *actor, bool gib, bool local) pl->respawnoffset = pl->lastpain = lastmillis; - playerent *h = local ? player1 : updatefollowplayer(0); - if(actor==h && pl!=actor) + playerent *h = local ? player1 : updatefollowplayer(0); + if(/*actor==h && pl!=actor*/ pl == player1) { - if(hitsound && lasthit != lastmillis) audiomgr.playsound(S_HITSOUND); + if(hitsound && lasthit != lastmillis) audiomgr.playsound(S_HITSOUND, SP_LOW); lasthit = lastmillis; } diff --git a/source/src/weapon.cpp b/source/src/weapon.cpp index 137c703c..2f37bd1d 100644 --- a/source/src/weapon.cpp +++ b/source/src/weapon.cpp @@ -335,13 +335,13 @@ void hit(int damage, playerent *d, playerent *at, const vec &vel, int gun, bool { if(d==player1 || d->type==ENT_BOT || !m_mp(gamemode)) d->hitpush(damage, vel, at, gun); - if(at==player1 && d!=player1) - { - extern int hitsound; - extern int lasthit; - if(hitsound && lasthit != lastmillis) audiomgr.playsound(S_HITSOUND); - lasthit = lastmillis; - } +// if(at!=player1 && d==player1) +// { +// extern int hitsound; +// extern int lasthit; +// if(hitsound && lasthit != lastmillis) audiomgr.playsound(S_HITSOUND); +// lasthit = lastmillis; +// } if(!m_mp(gamemode)) dodamage(damage, d, at, gib); else