Serious Sam Fusion 2017 (beta)

Serious Sam Fusion 2017 (beta)

248 ratings
Health bars and Damage numbers
   
Award
Favorite
Favorited
Unfavorite
Type: Additions
File Size
Posted
Updated
783.699 KB
16 Jul, 2017 @ 4:39am
20 Feb, 2020 @ 4:56am
25 Change Notes ( view )

Subscribe to download
Health bars and Damage numbers

Description
DESCRIPTION
If the mod is working in game, but you're getting Lua error when trying to configure in console, delete "gamefolder/Content/Config/DMGNumbers.txt" file.

This mod adds:
1) Health bars to all monsters;
2) Health and armor bars to all players;
3) Damage numbers, showing how much damage each monster is receiving from all sources;

Damage numbers have two modes: normal, when every damage dealt is displayed separately, and cumulative (thanks to Valerie Valens for idea), when damage applied to one monster with short delay between hits is joined into one bigger number.
Also damage numbers come in 3 sizes, depending of amount of damage dealt
Both monster and player health bars have two different "enabled" modes, first one is set by default.

Each of these three additions can be switched on/off at any time, and color of damage numbers (of each size separately) can be changed. By default everything is enabled (normal damage numbers mode) and damage numbers are white, yellow and blue (small, medium and big).
This mod is completely local, i.e. it doesn't matter if you're the host or not, or whether host has this mod or not, it will work.

All changes to settings are made through console (opened by ~ key on keyboard).
Enter any of the following there and press "Enter":

globals.EnableDamageNumbers(0,1 or 2)
- enable normal (1) or cumulative (2) or disable (0) damage numbers;

globals.EnableMonsterHealthBars(0,1 or 2)
- enable (1, always) or enable (2, not shown at full health) or disable (0) health bars above monsters;

globals.EnablePlayerHealthBars(0,1 or 2)
- enable everyone (1) or everyone except you (2) or disable (0) health/armor bars above players;

globals.SetDamageColor(X,Y,Z)
- set color of damage numbers (small, medium and big), where X,Y and Z are each one of the following:
1 or 'white',
2 or 'green',
3 or 'yellow';
4 or 'blue',
5 or 'red';
6 or 'orange';
7 or 'purple';
You can change color of just one sized numbers by setting other arguments to something invalid, e.g. 0.
So globals.SetDamageColor(0,2,0) will only change medium damage numbers color to green.

globals.DamageBarStatus() - see current preferences;

globals.DamageBarHelp() - show short message with all commands mentioned above;

Players' health bars only work in Singleplayer or Cooperative gamemodes (not working in Versus) for obvious reasons.

Known issues:
1) Due to how digits size and space between digits is calculated, in aimed/3rd person mode space between digits in damage numbers may be too big or small.
2) Damage numbers don't actually show damage received per shot, but change in monster's health, so if you're playing over network or have very low fps, numbers can be less accurate.

98 Comments
SiberianIceBomb 3 May @ 10:29am 
Hmmm... I don't see a point of putting an health and armor hud icons over yourself like over your own character like Sam, but cool nonethless
Lankycide 4 Dec, 2021 @ 4:58am 
@NSKuber:
Oh! Whoops. Yeah, restarting and trying the commands again works. Thanks for the help. xD
NSKuber  [author] 4 Dec, 2021 @ 2:45am 
This didn't work precisely because you entered these two commands in this order.
You should have just used "globals.EnablePlayerHealthBars(2)", but when you first entered "globals.EnablePlayerHealthBars=2", you have overwritten the function in that variable and thus it couldn't be called anymore.

Start the game again and use "globals.EnablePlayerHealthBars(2)" again, it will work.
Lankycide 3 Dec, 2021 @ 12:46pm 
Hello again. So I've recently gotten back into Fusion, and I've tried disabling the health bar above my own head in third person, and I typed the command both as "globals.EnablePlayerHealthBars=2" and as "globals.EnablePlayerHealthBars(2)" as you instructed, and neither seem to work.
The first reports no issue but doesn't work, and the second prints a Lua error. I'm not sure why this happens, and any help would be greatly appreciated. Kind regards. :)
NSKuber  [author] 2 Nov, 2021 @ 11:29am 
Maybe. Maybe not.
Shockwave 29 Oct, 2021 @ 10:27pm 
So is this what inspired croteam to use this in SS4?
NSKuber  [author] 28 Aug, 2021 @ 10:18pm 
You have to write it like this:
globals.EnablePlayerHealthBars(2)
as a function call, not as an assignment.
IAmSympathy 27 Aug, 2021 @ 1:18pm 
I also have the same problem as SCP Book. Even if I type globals.EnablePlayerHealthBars=2, it still shows the health bar over my character in third person
NSKuber  [author] 3 Nov, 2020 @ 1:42am 
Hm, that makes sense, I don't remember if there is a function to detect boss, however. I will check.
LOL DUDE 2 Nov, 2020 @ 7:57pm 
Great mod! However, do you think you could add an option to hide overhead health bars for bosses that already have health bars displayed on the player's HUD?