]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/shownames.qc
Don't show names for prey when the stomach model is at full alpha
[voretournament/voretournament.git] / data / qcsrc / client / shownames.qc
index 6280c991b4ac116dce68530bf094e4ae4d3c7919..3da7d34713a30e5accf1afa2c0417fdd0f661745 100644 (file)
@@ -9,9 +9,10 @@ void Draw_ShowNames(entity ent)
 {
        if(!cvar("hud_shownames"))
                return;
-
        if(ent.sv_entnum == player_localentnum && !cvar("chase_active"))
                return;
+       if(getstati(STAT_VORE_EATEN) && cvar("cl_vore_stomachmodel") >= 1 && !cvar("chase_active"))
+               return;
 
        float sameteam;
        if(teamplay && (GetPlayerColor(player_localentnum - 1) == GetPlayerColor(ent.sv_entnum - 1)))