Project Zomboid

Project Zomboid

Ikke nok vurderinger
Black Coolers for ZeV
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
Opdateret:
405.837 KB
29. mar. 2022 kl. 5:58
29. mar. 2022 kl. 6:24
2 ændringsbemærkninger ( vis )

Abonner for at downloade
Black Coolers for ZeV

Beskrivelse
ZeV asked for a black cooler in my comments, and I decided to use this as an opportunity to demonstrate how you could go about adding your own insulated items to my Smokin' Joe's Coolers mod.

Meat and potatoes are in server\ZevsPack.lua:
require "Coolers" InsulatedContainers["Bag_ZevsPack"]=0.0001 InsulatedContainers["BlackCooler"]=0.0001 --This represents how slowly the contents of coolers are stepped toward the average temperature, and room temperature. Higher float numbers will loose heat/cool more quickly. --[[ You could also copy from any existing item ... Example of copying the cooling properties from the OrganCooler: -]] InsulatedContainers["MyCoolItem"]=InsulatedContainers["OrganCooler"] --Or Add special cooling items: SpecialCools["MyExtraLargeIcePack"]={conservation=10, unfreezeRate=0.01} -- This item would stay cold for a ridiculously long time. I've not tested the limits on these ranges. --[[`conservation` is an integer and represents how slowly the item will heat to room temperature, once it is no longer frozen. The higher the integer, the slower the heat is lost. `unfreezeRate` is a floating point, and represents amount of "freezing time" the item loses during each cooling cycle (once per game minute), and the rest is given back... items lose 1.0 freezing time per minute in vanilla containers. If you set this to 1.0, the item will never unfreeze. ]]--

Workshop ID: 2786424644
Mod ID: ZevsBlackCoolers