Project Zomboid

Project Zomboid

7,503 ratings
Combat Text (B40+B41+B42)
8
10
28
8
2
11
5
4
2
2
3
2
   
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.
ValerieThePalerie
39
19 Apr @ 7:06am
PINNED: Bugs
Rezistor
2
19 Jan @ 10:46am
Not working dedicated server
bambam
371 Comments
Salder 21 May @ 1:26am 
Re sirve 10/10:steamthumbsup:
Flexible Games 24 Apr @ 2:14pm 
I love this mod, bless your heart for all the work it took to make it.
Vampirenostra 19 Apr @ 3:41pm 
All works as a charm after your last fix. Thanx man!
FreakyFerret 19 Apr @ 10:06am 
It may be a mod making the zombies super strong. I don't have the issue. Was using your mod in existing game. Checked there. Also started a new game.

Zombie health is the same as before.
Vampirenostra 19 Apr @ 7:07am 
@Rezistor yes it happens on any save, just start the game, hit a zed and its there
SuperSiggii 18 Apr @ 2:04pm 
Does not work. Mod creates bugs at server
:steamthumbsdown:
Rezistor  [author] 18 Apr @ 11:41am 
Hey @Vampirenostra, does it happen also on fresh save? do you have any more details which can help replicate that error? Thanks
Rezistor  [author] 18 Apr @ 11:25am 
Hey @Rosticks, do you have full version number? i am trying it now on version 42.7.0 rev:28118 2025-04-07 07:05:53 (ZB) . Are you sure that you do not have any other mods active? this mod does not modify health values.
BeljikPakiBlanc 17 Apr @ 12:11pm 
this mod is UNSTABLE as of Build 42.7.0 will result in zombies having usually high health and hits not registering and potentially crashing your game upon killing a zombie DO NOT DOWNLOAD AS OF LATEST VERSION BUILD 42 report any instability in the comments, thank you
Vampirenostra 13 Apr @ 10:40am 
function: onZombieDead -- file: CombatText.lua line # 119 | MOD: Combat Text

ERROR: General f:486285, t:1744564113086> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: Object tried to call nil in onZombieDead at KahluaUtil.fail(KahluaUtil.java:100).
Stack trace:
se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:100)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:952)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1790)
se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
zombie.Lua.Event.trigger(Event.java:72)
zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:315)