Starbound

File information

Last updated

Original upload

Created by

lornlynx

Uploaded by

lornlynx

Virus scan

Safe to use

Tags for this mod

Documentation

Readme

View as plain text

Health Dispenser v1.4.1


author: lornlynx


Installation: Move the HealthDispenser.modpak file into your Starbound/mods/ folder (alternatively, just unzip the file to your mods folder).
Be sure to uninstall old versions first!


Changelog:
v1.4.1: -maximum spawnable particles are now limited to 100, this means max. healing per pulse is 1000; this is here to prevent issues with obnoxious
high health values of modded armors (and to not get a memory leak)
v1.4: -recipes are now Tier 1, this means that you can also use the mod at an old save without having to remake the Tier2 blueprints
-changed folder structure to support mod packing
-mod now comes in a .modpak file
v1.3: -now heals also NPCs
-fixed multiplayer support (at last, I hope)
-added code documentation
v1.2.1: -added Tabula Rasa support
v1.2: -changed design a bit(thanks to Alpha_Stev0 for the great suggestions!)
-added a wall-mounted version
-added the Half Life health charger sound for healing!
-increased scanning height, this means that the center of healing is now the center of the object, so you can stand on top of it and will still
get healed and won't get healed when you stand a floor beneath it
-removed silverbars from receipt and instead added an additional 5 goldbars
v1.1: -added basic Multiplayer support
-changed colors a bit


Description: Placeable object that heals you when you stay near. Works by default also when monsters are in proximity, which could heal them as well on
occassion. Press E on the dispenser to switch to no monster mode, where machine doesn't work when monsters are in proximity, press E again to turn back
to normal mode. Heals you for about 10% of your max health with one pulse, uses internal energy system that will deplete with each pulse.
One energy tank will heal you a bit more than your max health, energy refills automatically.
(Now also heals NPCs)
Craftable at the robotic crafting table for 200 pixels, 10 smooth metal, 15 nanowrap bandages, 40 wires, 15 goldbars and 20 steelbars.
Multiplayer should (theoretically) work now, the player with the lowest health will have preferance.

Please report any bugs, feedback and suggestion you have!


Discuss the mod here: http://community.playstarbound.com/index.php?threads/health-dispenser.75915/


How to change to default healing sound:
If you don't like the Half Life Charger sound you can easily change it back to the default healing sound of Starbound.
Just go into your Starbound/mods/HealthDispenser/ folder, find the "healthDispenserProj1.projectile" file and open it.
Now find the line ("kind" : "halflifehealth",) and change it to ("kind" : "health",) , without the () for sure. Leave the rest the same and save the file.
Then search the "healthDispenser129175.lua" file, open it as well, and search for the following codelines, which are starting at line 81 till line 83:
if self.energy > 90 then
entity.playSound("dispenserStartSound")
end
Either outcomment them, or if you don't know how to do that just delete them. Save the file again at the end.
Now you'll get the default healing sound again when using the health dispenser!


Copyright:
assets and code made by lornlynx (with help from Alpha_Stev0)

assets free for redistribution, as long as credit is given
code redistribution and free usage is allowed, no credit needed (would still be lovely though)