]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/view.qc
Merge branch 'master' into z411/bai-server
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / view.qc
index a9ad0a76bd7e612d58fdeaafa49a40cc27d8fa66..287de2ae34e6305a3cfe2fc46447940159b852f1 100644 (file)
@@ -840,7 +840,7 @@ void HitSound()
        float kill_time = STAT(KILL_TIME);
        if (COMPARE_INCREASING(kill_time, kill_time_prev) > autocvar_cl_hitsound_antispam_time)
        {
-               sound(NULL, CH_INFO, SND_KILL, VOL_BASE, ATTN_NONE);
+               sound(NULL, CH_INFO, SND_KILL, VOL_BASE * 1.15, ATTN_NONE);
                kill_time_prev = kill_time;
        }
 }
@@ -1150,6 +1150,12 @@ void HUD_Damage()
                        myhealth_flash += autocvar_hud_damage_fade_rate * frametime; // dead
                }
        }
+       
+       if(myhealth_prev > 1 && myhealth <= 0 && !intermission)
+       {
+               // Just died
+               sound(NULL, CH_INFO, SND_DEATH, VOL_BASE, ATTN_NONE);
+       }
 
        if(spectatee_status == -1 || intermission)
        {