Project Zomboid

Project Zomboid

8,364 个评价
Combat Text (B40+B41+B42)
10
11
28
8
2
13
2
6
5
4
2
2
3
3
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
2.018 MB
2020 年 11 月 13 日 下午 1:47
4 月 18 日 上午 11:57
30 项改动说明 ( 查看 )

订阅以下载
Combat Text (B40+B41+B42)

描述
Show health bar above zombie heads and damage dealt

Health bar features:
  • shown when player hit zombie for first time and health bar is not visible (100% = current zombie health)
  • health loss is animated (orange part of bar)
  • bar will hide itself after 10 in-game minutes without receiving damage
  • can be tweaked in options

Floating text features:
  • text is shown once damage is detected (this is currently done during OnPlayerUpdate which is way faster than OnZombieUpdate)
  • fire damage is displayed with orange text (damage is accumulated and shown each 5 in-game seconds otherwise it show extreme small numbers)
  • other damage types are show ASAP with red color
  • green text means zombie is being healed (yes zombies can heal when they eat corpse)
  • can be tweaked in options

Current/Max HP features:
  • text anchor around health bar (max = zombie health when player hit zombie for first time)
  • visible only on reasonable zoom levels
  • not enabled by default
  • can be tweaked in options

Mod options:
  • there is new "tab" in game options screen which contain mod configuration
  • some configuration is not reflected immediately for zombie which has already health bar in active state
  • changes in configuration are persistent and global (client side only)

Older versions: can be found on github[github.com]

Superb Survivors! compatibility - 02/05/2021
Last update of this mod should be working with Superb Survivors without known issues, and how it works? in Superb Survivors are survivors spawned as AI controlled players so they share all functionality e.g. if survivor is attacking zombie, health bar will show up and you will see damage dealt. Health bar will also appear above survior head when damaged.



Advance Trajectory compatibility
Unfortunately compatibility with Advance Trajectory mod is not possible, this mod rely on events that are triggered on hits and Advance Trajectory mod is setting health values directly (which wont trigger needed events)



Arsenal(26)Gunfighter mod compatibility
Enabling "Debug Confirmation Level" option in the mod options menu will cause damage numbers print out in the chat under "radio" in Multiplayer (figured out by Burylown)


Known issues:
  • B41 - car "hits" are not shown (11/25/2020 - currently there is no lua even on vehicle hit, so this goes on hold for now)

Future plans:
  • Mod is currently considered as feature complete

Tested on SP-B40.43 | SP-B41.78 | MP-B41.78

Multiplayer support
  • B40 - not supported
  • B41.78 - working (06/23/2023)

Tags: B40,B41,B42,Combat

Workshop ID: 2286124931
Mod ID: CombatText
热门讨论 查看全部(10)
11
3 月 23 日 下午 5:06
Not Working in Build 42.
VΔlerieThePΔlerie
40
8 月 11 日 上午 9:37
置顶: Bugs
Rezistor
10
1 月 12 日 上午 8:08
Translation
Mesosolatum
396 条留言
Bloody Shart 1 小时以前 
can you add this mod to an existing multiplayer build 41 game?
Demelios 5 小时以前 
If you havent yet you should check the update notice made by the devs theyve given an explanation of what changed for modders.
Also if you dont have an update made on the mod since the new build people will not use the mod as even when no error are shown on launch these mods may cause game crash by trying to access the wrong things in loops.
Rezistor  [作者] 9 小时以前 
Do you have any other mods active? it looks like main options screen lua error, it originates in this mod because i am using hook to add option screen when main option screen is being created... but error itself is from some mod trying to create option screen using some framework
RAYNE 12 月 13 日 下午 4:56 
Eror: dumping Lua stack trace Callframe at getKeyNare
function: addModOptionsPanel - file: MainOptions.lua line # 3618 | Vanilla function: create - fille: MainOptions lua line # 607 | Vanilla function: create - file: ISCombatTextOptions.lua line # 466 | MOD: Combat Text function: instantiate - file: MainScreen. lua line # 687 | Vanilla
RAYNE 12 月 13 日 下午 3:55 
I'm getting a few errors, but I don't know what the reason is
Rezistor  [作者] 12 月 13 日 下午 1:32 
Hey, can you be more specific about update to 42.13? I just tested recent unstable branch and everything works, damage is shown correctly, looting of killed corpses works as well, also there was no problem with pushing & hitting with melee (it was probably fixed directly in game)
BalénedFL 12 月 13 日 上午 11:27 
update to 42.13
Pal 12 月 13 日 上午 9:10 
42.13
RAYNE 12 月 13 日 上午 7:43 
We need update to 42.13!
Moustache 12 月 13 日 上午 12:45 
Update required