MantisBT - Zandronum
View Issue Details
0003972Zandronum[All Projects] Suggestionpublic2022-01-19 00:582022-09-29 04:06
Trillster 
Kaminsky 
normalfeatureN/A
resolvedfixed 
Windows 11
3.1 
3.23.2 
0003972: Have blood flash intensity vary in relation to "player.maxhealth" rather than hard-coded 100
Blood flash intensity increases off of the damage a player takes, however it does not take into account the player's max health. In a mod where all players have 1000 HP, this can result in rapid screen flashes which requires "blood_fade_scalar" to be lowered to mitigate, however this CVAR just lowers the maximum intensity rather than adjusting the scaling formula.

Best solution would be adjusting the blood flash intensity scaling so that it also takes into account how much max health the player has.
No tags attached.
? ticket3972.wad (162) 2022-09-29 03:38
https://zandronum.com/tracker/file_download.php?file_id=2781&type=bug
Issue History
2022-01-19 00:58TrillsterNew Issue
2022-04-24 20:41KaminskyNote Added: 0022196
2022-04-24 20:41KaminskyAssigned To => Kaminsky
2022-04-24 20:41KaminskyStatusnew => needs testing
2022-04-24 20:41KaminskyProduct Version3.1-beta => 3.1
2022-04-24 20:41KaminskyTarget Version => 3.2
2022-09-29 03:38WaTaKiDFile Added: ticket3972.wad
2022-09-29 03:40WaTaKiDNote Added: 0022412
2022-09-29 04:06KaminskyNote Added: 0022414
2022-09-29 04:06KaminskyStatusneeds testing => resolved
2022-09-29 04:06KaminskyFixed in Version => 3.2
2022-09-29 04:06KaminskyResolutionopen => fixed

Notes
(0022196)
Kaminsky   
2022-04-24 20:41   
3.2 now has the CVar "blood_fade_usemaxhealth" (disabled by default), which will scale the intensity of the blood flash according to the player's max health when it's not 100. The commit for this can be found here:'http://hg.osdn.net/view/zandronum/zandronum-stable/rev/457cc8aa74be [^]'
(0022412)
WaTaKiD   
2022-09-29 03:40   
uploaded an example wad where the player has 1k max health

tested on windows and linux servers with sv_maxbloodscalar on and off, getting direct hit by rockets fired from a 2nd client in deathmatch, blood_fade_usemaxhealth seemed to work correctly
(0022414)
Kaminsky   
2022-09-29 04:06   
Thanks for testing, I'll go ahead and mark this ticket as resolved now.