Project Zomboid

Project Zomboid

评价数不足
Black Coolers for ZeV
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
405.837 KB
2022 年 3 月 29 日 上午 5:58
2022 年 3 月 29 日 上午 6:24
2 项改动说明 ( 查看 )

订阅以下载
Black Coolers for ZeV

描述
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