MantisBT - Zandronum
View Issue Details
0002402Zandronum[All Projects] Suggestionpublic2015-08-13 23:122024-03-23 06:35
Chronos Ouroboros 
 
normalfeatureN/A
resolvedfixed 
3.0-beta 
3.23.2 
0002402: (SBARINFO) Backport IfHealth
Please backport IfHealth out of order. I want/need it for my mod's HUD and this is the only way to do it. (Other than horrible, horrible hacks that will likely break very easily...)
No tags attached.
has duplicate 0002542closed  Backport sbarinfo 'ifHelath' from Zdoom development version 27ebfa7 
has duplicate 0002758closed  Backport SBARINFO IfHealth 
Issue History
2015-08-13 23:12Chronos OuroborosNew Issue
2015-08-14 00:24IvanNote Added: 0013216
2015-12-07 20:39DuskRelationship addedhas duplicate 0002542
2015-12-07 20:39DuskSummary(SBARINFO) Backport IfHealth out of order => (SBARINFO) Backport IfHealth
2016-06-16 12:10DuskRelationship addedhas duplicate 0002758
2016-06-16 12:12StrikerMan780Note Added: 0015083
2016-06-16 12:13StrikerMan780Note Edited: 0015083bug_revision_view_page.php?bugnote_id=15083#r9149
2016-06-25 08:42FusedNote Added: 0015107
2024-02-09 16:23StrikerMan780Note Added: 0023066
2024-02-09 16:23StrikerMan780Note Edited: 0023066bug_revision_view_page.php?bugnote_id=23066#r14071
2024-02-09 16:24StrikerMan780Note Edited: 0023066bug_revision_view_page.php?bugnote_id=23066#r14072
2024-02-11 03:40StrikerMan780Note Added: 0023068
2024-02-11 20:59StrikerMan780Note Added: 0023071
2024-02-12 02:56StrikerMan780Note Edited: 0023071bug_revision_view_page.php?bugnote_id=23071#r14085
2024-02-12 06:23WaTaKiDStatusnew => needs review
2024-03-10 21:17Ru5tK1ngNote Added: 0023340
2024-03-10 21:17Ru5tK1ngStatusneeds review => needs testing
2024-03-10 21:17Ru5tK1ngTarget Version => 3.2
2024-03-23 06:35Ru5tK1ngNote Added: 0023474
2024-03-23 06:35Ru5tK1ngStatusneeds testing => resolved
2024-03-23 06:35Ru5tK1ngResolutionopen => fixed
2024-03-23 06:35Ru5tK1ngFixed in Version => 3.2

Notes
(0013216)
Ivan   
2015-08-14 00:24   
You can use ACS for checking the health of the player, give/take an inventory and check for it in SBARINFO.
(0015083)
StrikerMan780   
2016-06-16 12:12   
(edited on: 2016-06-16 12:13)
Which is a horrible hack. Giving and taking inventory items all of the time isn't friendly on bandwidth, either. It also misses out on the percent feature of IfHealth.

(0015107)
Fused   
2016-06-25 08:42   
Having this would be great.
(0023066)
StrikerMan780   
2024-02-09 16:23   
(edited on: 2024-02-09 16:24)
Many years later, I'm finding myself needing this again. Sure, I can hack things together with ACS and Inventory items, but I'd rather not have to, especially for performance reasons (1-tic ACS loops can chug if there's too many, or get too big).

(0023068)
StrikerMan780   
2024-02-11 03:40   
Backported this myself. It was a very easy change to make. I just need dev permission on the repo so I can make a merge request.
(0023071)
StrikerMan780   
2024-02-11 20:59   
(edited on: 2024-02-12 02:56)
'https://foss.heptapod.net/zandronum/zandronum-stable/-/merge_requests/24 [^]'

Backported, tested. It works.

(0023340)
Ru5tK1ng   
2024-03-10 21:17   
This was merged in
(0023474)
Ru5tK1ng   
2024-03-23 06:35   
Tested with the latest changes and IfHealth seems to work properly offline and online.