]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Don't show names for prey when the stomach model is at full alpha
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Jul 2011 22:13:46 +0000 (01:13 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 16 Jul 2011 22:13:46 +0000 (01:13 +0300)
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)))