]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Allow observers to see player names, and also show the health of team mates to specta...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 14:44:42 +0000 (16:44 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 14:44:42 +0000 (16:44 +0200)
data/defaultVT.cfg
data/qcsrc/client/shownames.qc
docs/TODO.txt

index 0aeb2bce523fc8a181ce889d7c0ae5e48a5c3b6a..b655404e8ee0964db7ef5dde35d70e1bb4c4f5b7 100644 (file)
@@ -1197,6 +1197,7 @@ seta hud_contents_stomach_alpha 0.2 "alpha of the stomach color blend when insid
 seta hud_contents_stomach_color "0.3 0.2 0"\r
 \r
 seta hud_shownames 2 "1 = draw names of nearby team mates, 2 = also draw names of nearby enemies"\r
+seta hud_shownames_observers 1 "allow observers to see player names"\r
 seta hud_shownames_status 2 "1 = show when the team mate can be healed, 2 = also show health, 3 = also show armor"\r
 seta hud_shownames_aspect 8 "aspect ratio of total drawing area per name"\r
 seta hud_shownames_fontsize 8 "font size"\r
index eae0e54b041cd8bb583a82a8f3f1a0fbe8bbbecf..32bd0f49e924b9a4d8e472df62f06440c340dbbb 100644 (file)
@@ -9,7 +9,7 @@ void Draw_ShowNames(entity ent)
 {
        if(!cvar("hud_shownames"))
                return;
-       if(spectatee_status < 0)
+       if(spectatee_status < 0 && !cvar("hud_shownames_observers"))
                return;
        if(ent.sv_entnum == player_localentnum && !cvar("chase_active"))
                return;
@@ -19,7 +19,8 @@ void Draw_ShowNames(entity ent)
                return;
 
        float sameteam;
-       if(teamplay && (GetPlayerColor(player_localentnum - 1) == GetPlayerColor(ent.sv_entnum - 1)))
+       if(teamplay && spectatee_status >= 0)
+       if((GetPlayerColor(player_localentnum - 1) == GetPlayerColor(ent.sv_entnum - 1)) || (GetPlayerColor(spectatee_status - 1) == GetPlayerColor(ent.sv_entnum - 1)))
                sameteam = TRUE;
 
        if(sameteam || (!sameteam && cvar("hud_shownames") > 1))
index 83c21598b543cb82b022b17814bb82ea2a5c6c96..9bdf66b72d431259bc0e6c04f9fa1c60995435e1 100644 (file)
 \r
 - 0.7 | 0.8: The stomach gurgle sound duration does not match the pitch properly\r
 \r
-- 0.8: Maybe shownames can work for neighboring prey?\r
-\r
 - 0.8: Make menu song depend on the menu skin?\r
 \r
 - 0.7 | 0.8: Always play the eating animations when the fire button is down? OR play an error sound saying "there is nothing to vore"\r
 \r
 - 0.7 | 0.8: Water on Arahia is too bright\r
 \r
-- +0.8: Create a recommended bot number for maps in mapinfo
\ No newline at end of file
+- +0.8: Create a recommended bot number for maps in mapinfo\r
+\r
+- 0.7 | 0.8 BUG: Don't play stomach load helper sound for your predator's status!\r
+\r
+- 0.7 | 0.8: Allow more bots from the menu?\r
+\r
+- 0.7 BUG: When spectating a player, maximum stomach load appears as 0 on the HUD\r
+\r
+- 0.8: Maybe turn the HEAL teammate into a sign, not part of shownames
\ No newline at end of file