Updated Body Health System with proper damage attribution to limbs: if you take a left hand shot, then left arm will be damaged.
[2.0.2] Body Health System Redux
INSTALLATION
Everything is in this addon folder (gamedata), this is a standalone add-on (you don't need the old BHS).
Remove these files of the previous version before installation:
- gamedata/scripts/player_injuries.script
- gamedata/scripts/aa_player_injuries.script
- gamedata/configs/items/items/items_medical.ltx
- gamedata/configs/items/items/items_drugs.ltx
PATCHES
- Grok's Masks: apply in this order - Grok's Mask > BHS > BHS Grok's Mask Patch
- Nav's Masks: apply in this order - Nav's Mask > BHS > BHS Nav's Mask Patch
- Respawn Mode: apply in this order - Respawn Mode > BHS > BHS Respawn Mode Patch
- No quickslot items UI Patch: Full HUD without quickslots. Apply after BHS.
- No quickslot + right ammo UI Patch: apply after BHS, brings back the "classic" BHS HUD (ammo on the right).
- Text-Based HUD for VoDis and co: apply in game using MCM.
- Square DOV HUD: it's just a newly made custom skin for Square DOV that will fit the BHS HUD theme.
- Ammo Checker : apply after Ammo Checker.
CHANGELOG
1.0.0: first upload
1.1.0:
- Medical Bags can now be unpacked (removal of medical items modification of BHS Ultimate).
- Newscript to move the PDA notification icon based on RavenAscendant's code.
- HUD is now above gas masks overlays (Grok's Masks, Nav's Masks).
1.3.0 :
- Toxic, Heat are redirected to head or torso randomly
- Radiation should damage - rarely - head or torso
- Fixed Etperazine healing
- Fixed Vinca description
- Added Survival Kit description
- New extended HUD
- Text patch directly added to the main add-on folder.
1.4.0 :
- Changed HUD position for the healing items.
- UI is not overlapping with PDA messages anymore.
- HUD is now a bit more transparent.
- Fixed a healing items pack content description.
- Added a Respawn Mode compatibility Patch
- Added Grok's Mask Patch (helmets are kept on for the various actions)
- Added Navs's Mask Patch (helmets are kept on for the various actions)
1.5.0:
- Added a Patch to remove quickslots and it's associated box.
- Fixed the issue of weird symbols in the top left corner.
- Renamed Patches to be more descriptive.
- Renamed archive so it stands out as a whole addon instead of looking like a patch for old BHS.
1.5.0b: Hotfix for Text based UI Patch (aa to zzz script name to match main script name).
1.6.1:
- Food Drugs and Animations + Grok's or Nav's Masks Patch (HUD is not hidden while drinking / etc with FDDA).
- Introduction of a new rework of debuffs based on limb health, courtesy of xcvb, real big brain.
- When Arms loose a certain amount of HP, your view while aiming down sight starts to sway. The heavier the weapon and the less health your arms have, the bigger the sway.
- When your Legs are damaged below a certain threshold, you start limping. You can still run. However running and sprinting speeds are reduced. Moreover, running will occasionnaly cause extreme pain and health loss (sounds from Desman voice pack included, patch included to remove the sounds).
- Reorganization of the archive folder supporting BAIN installer in MO2.
- Removal of the damaging property of most healing items (stims notably). Cocain is still hurting you, don't do drugs.
- Drugs post-heals rebalance.
- Drugs description update, removing some misleading debuffs and updating the new post-heals values. Also in Russian ;)
1.6.2:
- Used the correct limb effects script (uploaded the wrong old one in 1.6.1): better limping animations blending and more progressive limping, stronger aim drift when arms are damaged.
- Fixed HUD Stretch for DX8 and DX9.
- Improved Akvatabs healing.
- Further fixed and improved drugs description in both english and russian. Dizziness caused by drugs now follow 4 categories: slight, moderate, severe and extreme dizziness.
1.6.3:
- Reworked limb effects so that limping starts later (only when legs are damaged enough).
- Added limb effects in the base mod.
- Added an optional patch to remove limb effects.
- Updated Food Drugs and Drinks Animations (FDDA) patch for 0.8.5 version.
- Fixed healing of some post-healing items (Vinca).
- Fixed items healing properties for Text-Based UI.
- Introduced a new UI patch for Square DOV addon.
1.6.4:
- Hotfix for 1.6.3 (sounds and anims).
1.6.5:
- Added speed modifiers compatible with Powered Exos and Outfits Affect Movement Speed addons.
- Removed a wrong file in the PATCH FDDA + Masks.
1.6.6:
- Fixed Text Based HUD Patch
- Introduced a new version of the Text Based HUD for VODIS and co, don't forget to untick "auto-hide stamina bar" in the options.
1.6.7:
- FOMOD Support for installation through MO2 thanks to Sarapz.
- Medics now heals your limbs. Thanks to ForeverButthurt.
- New universal patch for FDDA latest version + Masks addons (Grok's, Nav's) by FeelFried.
2.0.0:
- New EFT UI supporting the BHS Full HUD and HUD customisation with ammo position (reupload and rework of EFT UI for GBHSR).
- Ammo Checker patch.
- Reworked FOMOD installation.
- Added changes made by xcvb TEST version (1.6.X v0.4) :
- New limb penalties for Head.
- New limb penalties for Torso.
- Added MCM support.
- Fixed broken legs damaging other body parts.
- Fixed (kinda) old bug when disabled HUD will drop your FPS harder than pip scope.
2.0.1:
- Made some tables global for compatibility with some upcoming addons. They can be accessed in other scripts by using zzz_player_injuries.maxhp, zzz_player_injuries.health for instance.
2.0.2:
- Compatibility with xcvb Detailed Description addon: Moddb.com
DESCRIPTION
This is an updated, corrected, and improved version of Favkis_Nexerade's Body Health System. Original addon page: Moddb.com. I don't take credit for much of the work. I just added the cherry on the cake.
Now it finally registers damages to the correct limb. If you get hit in the head, then your head will loose some damage. It also takes fall damage into account. After some development, it now adds a lot of new functionalities over the base addon (thanks to xcvb work).
Controls and info:
- Head - Head health, if it goes to zero, you die.
- Torso - Torso health, if it goes to zero, you die.
- Arms - There are two bars close to each other for each arm, if one of your arms goes to zero, you'll drop items you holding right now in your main slots, however you can still use knife/pistol, so, carry a pistol there. If both of your hands go to zero, you wont be able to use all 3 slots.
- Legs - There are two bars, one for each leg. If one of your legs goes to zero, you wont be able to run (standard running, not sprint), so you'll have to move slowly or crouch-walk. If both of your legs go to zero, you'll be able only to prone or slow crouch walk.
- To restore body part health points, sleep in bed or use medicine. One hour in bed restres 1 health point, so get yourself enough water and food if you want to heal this way. (You can also enable auto regeneration if you want.)
Healing items info:
Healing adds health points for limited amount of time (yellow), you need to take some post healing measures to convert temporary health points (yellow) into static health points (blue or white depending on HUD style), such as using bandages as fixation for injured muscles, or using tablets to ease work of nervous system.
HUD styles:
I made a new HUD which includes the psy bar. Compatible with Alternative Icons : Moddb.com
Now includes also an EFT inspired skin, which has been removed from Moddb. I got it from the EFP modpack. I modified it and made it compatible with the ammo and quickslots customisable positions.
Available here as a standalone add-on : Moddb.com
Items healing properties is now in items description:
- Every healing items properties are displayed in the item description thanks to reter's Ultimate patch for BHS (https://www.moddb.com/mods/stalker-anomaly/addons/my-ultimate-body-health-system-compatibility)
Reworked effects when limb HP are reduced, thanks to bcvx:
You can disable them in-game in the MCM menu.
- Damaged arm/arms:
- Adding weapon sway, power of sway depends on weapon's weight and how damaged your arms are. One heavily damaged arm will add stronger weapon sway than two semi-damaged arms.
- Damaged leg/legs:
- Movement speed reduction based on legs damage. Sprint with one broken leg will be same as regular running, sprint with two broken legs will be just slightly faster than walking.
- Limping camera effects for each leg.
- Health reduction while sprinting if any leg is below 2/5 HP. Running on one broken leg causes extreme pain and about 3% of your whole character life randomly. Two broken legs will cause 6% damage everytime time it triggers and will damage other limbs as well.
- Damaged Head:
- Concussion when you receive headshot.
- Brief and strong initial visuals (power/duration depends on hit) and sound fade with tinnitus.
- Rare and light visuals afterwards which decrease its power over time. There is some kind of regen, so it will go away even without medicines, just longer.
- MCM threshold for amount of damage you must receive.
- Damaged Torso:
- Cap of main health depends on how damaged the torso is (down to 65% cap).
Settings:
At the top of zzz_player_injuries.script file, there are some settings:
- regen - time in milliseconds of auto regeneration, on example 30000 means each 30 seconds all body parts would get new health point. (0 by default)
- damagescale - multiplier of damage dealt to body parts. 0.5 would make your body parts receive only 50% of damage, that does not changes default damage/health at all, only changes amount of damage dealt to body parts. (1.0 by default)
- easyhealing - first aid restores blue health, disabled temporary healing mechanic. (false by default)
- hide_if_healthy - hides all but condition status bar if all parts of body are at maximum health. (false by default)
- show_player_name - show player name above condition bar. (true by default works only in text HUD)
- healingitems - allows healing items, such as medkits to restore body parts health. (true by default)
CREDITS
This involved the work of many people. I want to thank them. I just added the cherry on the cake.
- Original author is Favkis_Nexerade : Moddb.com
- It has been updated by mora145 for 1.5.1 : Moddb.com
- I updated the reter's Ultimate patch for BHS : Moddb.com
- To update the Ultimate patch I used the update "No Drug Limit" by nb79 : Moddb.com
- xcvb added a lot of changes to limbs effects.
Your A Master ! Grokitach
woohohohoo there we goo blyat
Br infiltrado
HUEHUEHUE
kkkkkkkkkkkkk
maior quantidade de br que eu ja vi na comunidade inteira de stalker lol
GROK IS GOD
Will it work with EFT Meds Overhaul out-of-the-box? I currently have the previous version (standard BHS updated for 1.5.1).
it doesnt. just tried it out. EFT meds seems to overwrite fully.
Now it should be fine - ltx files wise.
The things defined by scripts aren't. The author will need to update his add-on using the fixed script I provide here.
I'm on it. Thx for the update!
But guys, it will take me a day or two. Until then please use the prior version of BHS in case you want to use EFT medic overhaul.
As I can tell your itms_manager.script should work with my config files without editing?
And you've moved the notication function into its own script. So if I got this right, I only had to edit my injuries script according to your changes and then my mod can overwrite yours to make it work.
Edit: Works so far.
Absolute beast of a modder. You know what would be cool? To have your aim shake based on how much dmg your arms have suffered.
I have to check beefs shaking hands addon. This could be implemented if it's based on scripts.
Do i need to make a new save for this to work or can i keep my current one and use this?
Safe to add and remove freely. No new save required.
this is really cool, on a sidenote, are there any mods that tell you how much ammo you have in reserve without replacing the health side of the HUD?
this can be installed in a save game?
Yeah just tried myself.
Спасибо!
does it have russian localization?
Русский перевод присутствует
Yes, updated the colors too for 1.1.0.
Hello, i dont know who did the russian translation, but tell him/her to rewrite word "Времмено" to "Временно" ("first-aid" heal items translation)
This is awesome, A compatibility patch with Ammo check would be fantastic. They appear to modify the same file and stops each other from working.
I'll check that for the next patch.
PDA icon kinda grind my gear :c
Fixed.
In healing items info the description is incorrect. According to recent patches of the original BHS, bandages don't actually offer post-healing anymore. To make bandages offer post-healing again, it needs to be re-enabled in player_injuries.script.
You can also use Enhanced Drugs description for Body Health System : Moddb.com
Don't know if compatible though
Thanks, I'll fix it in the next patch.
This comment is currently awaiting admin approval, join now to view.
'regen - time in milliseconds of auto regeneration, on example 30000 means each 30 seconds all body parts would get new health point. (0 by default)'
Does it mean that autoregen is disabled by default?
Yes
Perfect!!!
Thank you again for your work
I noticed when you use the PN21KL Nightvision (Blue Colored ones) the HUD goes away, only the top part is showing
Hum weird, I'll look into it thanks.
Are other NVGs affected?
I can check right now
Yeah its all of them, the overlay of the goggles covers it up it seems, you can se it a little bit with the white ones
Thanks I will check it out.
This is annoying because it depends on script loading order mostly and there's no clear HUD layer control code.
This comment is currently awaiting admin approval, join now to view.
Using Nav's Mask and idk about you but the BH hud is still behind the mask overlay :<
THANK YOU Groks for credit me, i was waiting for the updated version of body health system to be working as intended, good job man, proud of you ^^
Hey I find the health system in stalker as in many other games to be misused.
I believe by making the overall health bigger while maintaining the healing effects the same so that its ordinary for the player to find themselves slightly damaged (with addon such as yours there could be minor downside to that besides "missing health")
The idea behind this is so that reaching 100% health is both expensive and an accomplishment, something you can do to prepare for a fight or expedition
While being damaged/hurt is much more usual, as it would be expected for a stalker and being maimed, passing out and just being terribly hurt is more often to happen after a fight instead of dying and reloading, however being impactful enough that if one manages to get really hurt it would be expensive to heal
I am pretty interested in what could I do and change in the game files so that I would change the currect health system in the game to what I am describing and balancing it out, could you please recommend me what to check out/look for to accomplish this?
Well you have to learn how to script in LUA for the XR Engine. There's no "guide" for that, only your ability to read and understand code, and having a lot of patience to understand how most scripts work.
Come to the Anomaly Discord modding dev channel.
Do you think you can add your sexy new hud to the left of the inventory panel? I'm using immersive useful hud. Can you make it as an optional?
Well that's a lot of work as I have to basically remake the entire HUD because it's quite low res... So I will not likely release this.
I completely understand that. Thank you anyway you're a beast.
This comment is currently awaiting admin approval, join now to view.
Can you make a patch for VoDis HUD? imo best looking HUD mod but installed on top of BHS crashes. VoDis>BHS works though health bar stamina bleed bar is gone except psi bar.
I will talk to the mod authors to see if a compatibility patch can be made.
But the health bar will not be useful anyway and I would rather keep a simple HUD and expand it.
In the meantime I think you can use the basic text based UI of this add-on, it should be compatible with VoDis