Project Zomboid

Project Zomboid

Not enough ratings
Black Coolers for ZeV
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
405.837 KB
29 Mar, 2022 @ 5:58am
29 Mar, 2022 @ 6:24am
2 Change Notes ( view )

Subscribe to download
Black Coolers for ZeV

Description
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