hitsound 2

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7595 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2013-10-12 07:54:05 +00:00
parent 0a9ac3f398
commit ffe23e79d7
2 changed files with 13 additions and 9 deletions
+2 -2
View File
@@ -810,7 +810,7 @@ bool tryrespawn()
return false;
}
VARP(hitsound, 0, 0, 1);
VARP(hitsound, 0, 0, 2);
// client kill messages
void setkillmessage(int gun, bool gib, const char *message)
@@ -861,7 +861,7 @@ void dodamage(int damage, playerent *pl, playerent *actor, int gun, bool gib, bo
}
if(actor==h && pl!=actor)
{
if(hitsound && lasthit != lastmillis) audiomgr.playsound(S_HITSOUND, SP_HIGH);
if( (hitsound == 1 || (hitsound && h != player1) ) && lasthit != lastmillis) audiomgr.playsound(S_HITSOUND, SP_HIGH);
lasthit = lastmillis;
}