Project Zomboid

Project Zomboid

578 ratings
Injury Indicator
2
2
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
306.874 KB
21 Jan, 2023 @ 3:36pm
27 Jun, 2023 @ 11:29am
11 Change Notes ( view )

Subscribe to download
Injury Indicator

Description
Adds pop-up text over the character's head when an injury occurs, indicating the injured body part.
If using the default pop-up text format, there is an option to also notify when an injury is healed.
Detects injuries from all sources for all body parts.


Why this mod?
This mod aims to present information that should be more easily accessible.
In other words, we should be able to tell where we were injured before we look at it.
Since our character and our focus are mostly at the center of the screen, the pop-up text will swiftly inform us about our injuries.

How does it work?
It scans all body parts and checks if any of them are injured.
If so, it fires a "skill up" notification text.
While not required, ModOptions can be used to toggle between 2 different pop-up formats (Skill up/Speech text).

To do
(maybe...)
  • Translation text as variables(%1%2)
    (For speech text, so it's possible to use possessive adjectives)
  • Indication of the injury type
    (the game has variables for it, just gotta add a few checks)

Notes
  • There should be no conflicts with anything.
  • Safe to add/remove mid-save.
  • Works in multiplayer.
  • Feedback/Suggestions are welcome.
Supported Languages

Recommended mods
ModOptions - To be able to configure this mod.
Check out my other mods




                                                [www.buymeacoffee.com]
This is my second mod. Although the code is a lot shorter then the previous one, I had to dig into the game code to figure it out.
I spent a whole day for the initial release. It was exhausting.
                                                       


Workshop ID: 2921642476
Mod ID: InjuryIndicator
Popular Discussions View All (1)
0
22 Jan, 2023 @ 10:59pm
PINNED: Translations
BOBcat
46 Comments
red-unicorn 3 Mar @ 10:08am 
@Kras I believe Mini Health Panel tells you when bandages get dirty
viceroy102 22 Jan @ 6:21pm 
merhaba bro ! yardımına ihtiyacım var- bu güzel modu kullanmak istiyorum amma bir türlü başaramıyorum)
Agitatio 23 Nov, 2023 @ 12:21am 
Wish heal pop-up could be forced off through sandbox options, for servers.
BOBcat  [author] 19 Aug, 2023 @ 11:24pm 
No. There is for when an injury heals though.
Kras 19 Aug, 2023 @ 4:46pm 
Is there a feature to let you know when your bandages get dirty?
BOBcat  [author] 12 Aug, 2023 @ 1:41am 
Hey there @Diakon ! Glad you enjoy the mod.
I'm not really a coder by trade and learned Lua only for modding the game.

I don't know the difference between calling the functions with " . " or " : " , I used whichever worked.

About global variables, it made sense to make them global, maybe not so much for this specific mod but anyway.
Some of my other mods depend on variables being global and nobody reported anything about breaking.

If you can fix the problem you encountered with this mod, please send me the edited code and I'll review it and update the mod.
Diakon 10 Aug, 2023 @ 4:58am 
Hello! We're playing on a big modpack over at UdderlyRP server. Your mod is fantastically helpful! So it pains me to say that somehow it broke for us! I don't know why exactly, the error log seems... non-sensical, I can send it over to you... I have looked at the code, and the only two issues I have noticed is that the functions are called with a "." instead of a ":" but that would've broken them a long time ago... Also, your script-wide variables are global, meaning any script could override them by accident! Please declare the variables as local to make it safer!
BOBcat  [author] 6 Aug, 2023 @ 6:55am 
Good to hear it's helping!
Description updated.
SpennyBeastly [NiYE] 6 Aug, 2023 @ 6:53am 
Can confirm it does work in MultiPlayer - and holy crap, what was life like before this mod! Thanks so much!
Jedidarkslaya 25 Jul, 2023 @ 10:40pm 
MP?