Serious Sam Fusion 2017 (beta)

Serious Sam Fusion 2017 (beta)

250 个评价
Health bars and Damage numbers
   
奖励
收藏
已收藏
取消收藏
Type: Additions
文件大小
发表于
更新日期
783.699 KB
2017 年 7 月 16 日 上午 4:39
2020 年 2 月 20 日 上午 4:56
25 项改动说明 ( 查看 )

订阅以下载
Health bars and Damage numbers

描述
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 条留言
SiberianIceBomb 5 月 3 日 上午 10:29 
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 2021 年 12 月 4 日 上午 4:58 
@NSKuber:
Oh! Whoops. Yeah, restarting and trying the commands again works. Thanks for the help. xD
NSKuber  [作者] 2021 年 12 月 4 日 上午 2:45 
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 2021 年 12 月 3 日 下午 12:46 
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  [作者] 2021 年 11 月 2 日 上午 11:29 
Maybe. Maybe not.
Shockwave 2021 年 10 月 29 日 下午 10:27 
So is this what inspired croteam to use this in SS4?
NSKuber  [作者] 2021 年 8 月 28 日 下午 10:18 
You have to write it like this:
globals.EnablePlayerHealthBars(2)
as a function call, not as an assignment.
IAmSympathy 2021 年 8 月 27 日 下午 1:18 
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  [作者] 2020 年 11 月 3 日 上午 1:42 
Hm, that makes sense, I don't remember if there is a function to detect boss, however. I will check.
LOL DUDE 2020 年 11 月 2 日 下午 7:57 
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?