No Health Cap

If you liked this item, please rate it up on Steam Workshop page.

Author: ☢ Nato Potato ☢

Last revision: 29 Jul, 2025 at 06:27 UTC (7)

File size: 208.38 KB

On Steam Workshop

Description:

Want to have more than 12 hearts? The ‘No Health Cap’ mod lets you do just that!

This mod has its own simulated health bar which it displays below your regular one, it kicks into action once you have more than 11 hearts total and starts recording your pickups and damage to make it so your health has no limit.

But if you want the players health cap to just be increased, rather than having unlimited health, just use the Mod Config Menu.

Or open the console by pressing ~ and type "healthcap X" to impose your own limit to max health, 18 is a nice one to use. You can use -1 to make it infinity.

If you want to make things harder rather than easier you can set a cap lower than the usual 12, setting a cap of 0 will only let you have half a heart of health total.

You can also set a limit specifically for red heart containers, as well as what happens when you go above that limit, you can set it to 0 and set them to turn into other hearts to basically make every character like ??? or forgotten.

These 2 settings are in the mod config menu, but you can also edit them by using the commands "redheartcap X" and "extracontainersbecome Y", where X is a number and Y is "nothing", "soul", "black" or "bone".

This should work with the Forgotten, though the default heart cap for Forgotten is 6 not 12 so (unless you’re just going with infinite health) set your health cap accordingly.


You can adjust the display to fit your preferred HUD offset by opening the console and typing "hudoffset X" where X is a number from 0 to 10, or if you are using the mod config menu go to the general settings and change the hudoffset there.


You can double check what your current health caps are by opening the console and entering "showhealthcaps".

These features are only for player 1, not for co-op players.

Also keep in mind there might be weird bugs if you are using this with modded items or characters with special heart types or unusual health mechanics.

:Mod support:
The mod has a list of items required for it to be enabled, by default it’s empty and takes no effect, but by putting a few lines of code in your mod you can add an item to the list and set the health cap the item should apply.

Just put these lines in your mods player init function (outside of any ‘hascollectible’ checks and where X is 0-99)
NoHealthCapEnableItemList = true
table.insert(NoHealthCapAddRequiredItems, ITEMID)
table.insert(NoHealthCapSetHealthLimits, X)

If the player is holding multiple items on the list the mod will apply the highest cap.

If you want to check how much health the player has "NoHealthCapRedMax" will return the total number of heart containers, "NoHealthCapRedHearts" shows total red hearts and "NoHealthCapSoulHearts" shows soul/black hearts, "NoHealthCapModHealthLimit" will return the current heart limit and "NoHealthCapModHeartContainerLimit" will return the current heart container limit.

You can checkout my "Health and Pickups Pack" to see examples.

This is included in POTATO PACK 2.