MantisBT - Zandronum
View Issue Details
0002005Zandronum[All Projects] Suggestionpublic2014-11-22 04:362018-09-30 22:58
Dusk 
Dusk 
normalfeatureN/A
closedfixed 
2.0 
2.02.0 
0002005: Zandronum features for the alternative hud
I had some fun last night with the alternative hud.

'https://bitbucket.org/crimsondusk/zandronum-sandbox/commits/12992d05f3cc [^]'

- spectators no longer draw health, armor or ammo
- health and armor are no longer displayed if the client doesn't know them (though I guess it could be made to draw question marks instead?)
- draws team scores in team modes (1 - 0), colorized, in order of who's in the lead
- draws flag/skull icons so you can quickly know the state of a ctf/skulltag match
- draws rank and spread when applicable
- fully supports 3 and 4 teams
'https://bitbucket.org/crimsondusk/zandronum-sandbox/commits/12992d05f3cc736bff054d544b6d5c11dff9cfbb [^]'
'https://bitbucket.org/crimsondusk/zandronum-sandbox/commits/7b68a99962b5e6e4c4e6e48800636e71d53e3a8b [^]'
'https://bitbucket.org/crimsondusk/zandronum-sandbox/commits/988e2f557558fd433f298779cc93365f7ba5ac13 [^]'
No tags attached.
parent of 0001863closed  Implement CTF scores in the althud 
Issue History
2014-11-22 04:36DuskNew Issue
2014-11-22 04:36DuskStatusnew => needs review
2014-11-22 04:36DuskAdditional Information Updatedbug_revision_view_page.php?rev_id=5996#r5996
2014-11-22 04:37DuskAssigned To => Dusk
2014-11-22 04:37DuskDescription Updatedbug_revision_view_page.php?rev_id=5998#r5998
2014-11-22 04:38DuskDescription Updatedbug_revision_view_page.php?rev_id=5999#r5999
2014-11-22 05:46DevilHunterNote Added: 0010927
2014-11-22 12:24WatermelonNote Added: 0010929
2014-11-22 12:24WatermelonNote Edited: 0010929bug_revision_view_page.php?bugnote_id=10929#r6001
2014-11-22 13:38LeonardNote Added: 0010930
2014-11-22 14:49DuskNote Added: 0010931
2014-11-22 17:21LeonardNote Added: 0010932
2014-11-22 17:48DuskNote Added: 0010933
2014-11-22 17:48DuskNote Edited: 0010933bug_revision_view_page.php?bugnote_id=10933#r6005
2014-11-23 11:34Torr SamahoNote Added: 0010940
2014-11-23 11:34Torr SamahoStatusneeds review => feedback
2014-11-23 15:28DuskAdditional Information Updatedbug_revision_view_page.php?rev_id=6010#r6010
2014-12-01 02:22DuskNote Added: 0011017
2014-12-01 02:22DuskStatusfeedback => assigned
2014-12-01 02:22DuskStatusassigned => needs review
2014-12-05 15:44DuskRelationship addedparent of 0001863
2014-12-28 16:01Torr SamahoNote Added: 0011101
2014-12-28 16:01Torr SamahoNote Edited: 0011101bug_revision_view_page.php?bugnote_id=11101#r6167
2014-12-28 16:02Torr SamahoStatusneeds review => feedback
2015-02-01 11:04cobaltStatusfeedback => needs testing
2015-02-01 11:04cobaltTarget Version => 2.0
2015-02-01 11:04cobaltDescription Updatedbug_revision_view_page.php?rev_id=6554#r6554
2015-02-01 11:04cobaltAdditional Information Updatedbug_revision_view_page.php?rev_id=6555#r6555
2015-02-01 11:04cobaltNote Added: 0011575
2015-03-16 18:54StrikerMan780Note Added: 0011851
2015-03-16 19:22StrikerMan780Note Edited: 0011851bug_revision_view_page.php?bugnote_id=11851#r6797
2015-03-29 20:20DuskStatusneeds testing => resolved
2015-03-29 20:20DuskFixed in Version => 2.0
2015-03-29 20:20DuskResolutionopen => fixed
2018-09-30 22:58Blzut3Statusresolved => closed

Notes
(0010927)
DevilHunter   
2014-11-22 05:46   
Sounds good, Even though I haven't used the alt HUD in some time. I think others would enjoy this.
(0010929)
Watermelon   
2014-11-22 12:24   
I like these.

Hopefully we can get some rendering overhaul too at one point. I'll have to do it anyways as I upgrade the scoreboard.

(0010930)
Leonard   
2014-11-22 13:38   
This is great.
Only thing is I think you should use something else than alpha to get team items state.
In my opinion it's important to know if the flag was dropped or stolen so you know what to prepare for.
I recall the normal hud literally indicates the name of flag holders.
I think the best way here is (again?) the zdaemon one.
(0010931)
Dusk   
2014-11-22 14:49   
I don't know how ZDaemon does this so saying that the best way is the ZDaemon one doesn't mean anything to me. Please elaborate..
(0010932)
Leonard   
2014-11-22 17:21   
Blue flag: 'http://i.imgur.com/tPgWbbo.png [^]'
Blue flag taken: 'http://i.imgur.com/bqUxu6m.png [^]'
Blue flag dropped: 'http://i.imgur.com/ZnQcEW5.png [^]'
You have the blue flag:'http://i.imgur.com/m9svKD1.png [^]'
(0010933)
Dusk   
2014-11-22 17:48   
I figured to go with a route friendlier to the alternative hud instead:
- instead of flashing, the flags now render a rectangle around them
- this rectangle is in the color of the team which took the flag (i.e. the enemy team color in conventional 2-team ctf)
- if you have the flag, the rectangle flashes white. the flag sprite itself does not flash at all, instead is drawn low-alpha
- the flag now flashes (albeit twice as slow) when dropped so now you can tell that as well

'https://dl.dropboxusercontent.com/u/66055976/2014/screenshots/Screenshot_Doom_20141122_190818.png [^]'
'https://dl.dropboxusercontent.com/u/66055976/2014/screenshots/Screenshot_Doom_20141122_191003.png [^]'

(0010940)
Torr Samaho   
2014-11-23 11:34   
Looks promising :).
(0011017)
Dusk   
2014-12-01 02:22   
'https://bitbucket.org/Torr_Samaho/zandronum/pull-request/49 [^]'
(0011101)
Torr Samaho   
2014-12-28 16:01   
I added comments in the pull request. Only minor stuff, the code looks mostly good to go. I didn't do anything yet, and just assume that you tested this sufficiently.

(0011575)
cobalt   
2015-02-01 11:04   
Issue addressed by commit 5d5aab152a77: Added support for Zandronum-specific gamemodes for the alternative HUD (addresses 2005).
Committed by Teemu Piippo [Dusk] on Sunday 25 January 2015 18:00:10

Changes in files:
 docs/zandronum-history.txt | 1 +
 src/g_shared/shared_hud.cpp | 155 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------
 src/scoreboard.cpp | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------
 src/scoreboard.h | 3 ++
 4 files changed, 233 insertions(+), 72 deletions(-)
(0011851)
StrikerMan780   
2015-03-16 18:54   
(edited on: 2015-03-16 19:22)
If hud_showscore or hud_showstats are on, they get drawn underneath the CTF score.

I also notice that the flag icons are like the classic style, rather than what was in Dusk's screenshots. Is this normal?