Project Zomboid

Project Zomboid

8,373 ratings
Combat Text (B40+B41+B42)
10
11
28
8
2
13
2
6
5
4
2
2
3
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.018 MB
13 Nov, 2020 @ 1:47pm
18 Apr @ 11:57am
30 Change Notes ( view )

Subscribe to download
Combat Text (B40+B41+B42)

Description
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
Popular Discussions View All (10)
11
23 Mar @ 5:06pm
Not Working in Build 42.
VΔlerieThePΔlerie
40
11 Aug @ 9:37am
PINNED: Bugs
Rezistor
10
12 Jan @ 8:08am
Translation
Mesosolatum
399 Comments
Rezistor  [author] 2 hours ago 
@Demelios, thank you for your concern but this mod does not add or modify any functionality, it just reveal hidden informations (amount of revealed informations depends on settings), this mod (at time of writing this reply) does not require update regarding to 42.13 release
RAYNE 12 hours ago 
@Rezistor, yes, I have other mods, but if an update is not required, then fine. The error is not significant, it's just not clear why it pops up
@bloody shart, yes
Bloody Shart 18 hours ago 
can you add this mod to an existing multiplayer build 41 game?
Demelios 21 hours ago 
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  [author] 14 Dec @ 10:48am 
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 13 Dec @ 4:56pm 
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 13 Dec @ 3:55pm 
I'm getting a few errors, but I don't know what the reason is
Rezistor  [author] 13 Dec @ 1:32pm 
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 13 Dec @ 11:27am 
update to 42.13