Jump to content

Recommended Posts

I'm creating an arctic wolf character, and for her, I want to make it so that she does not freeze in winter. I got that part itself working just fine; she doesn't take any damage from freezing during the winter, which is awesome. However, ice still encrusts the edges of the screen and she shivers, which I do not want. Furthermore, normally her health will look like this:

4vp7o1.jpg

But a little after the ice crackles appear on the screen, her health will change to this:

2nl8tc9.jpg

It stays like that even after finding a source of heat, like a campfire or a burning tree or something. It doesn't change back after taking damage, either. I will admit, this is the first time I've ever played with anything like temperature damage. Could somebody help me and maybe tell me how I could fix this? And if possible, how I could maybe do it so she overheats a little faster? Thanks!

This is a piece of her prefab file, where I put the temperature script:

Spoiler

local fn = function(inst)
	
	inst.components.eater:SetCarnivore(true)
	
	inst.components.temperature.hurtrate = TUNING.WILSON_HEALTH / (TUNING.FREEZING_KILL_TIME * 0)

 

 

1 hour ago, Whitefang45 said:

Could somebody help me and maybe tell me how I could fix this?

Use

inst.components.temperature.mintemp = 10

so your temperature doesn't drop below 10.

To freeze you need to go below 0.

1 hour ago, Whitefang45 said:

And if possible, how I could maybe do it so she overheats a little faster?

Overheating is delayed by summer insulation values.

Wearing nothing, it's 0. That's pretty fast. Negative values get rounded to 0.

Here (http://dont-starve-game.wikia.com/wiki/Overheating) you can get the values for stuff, in seconds.

Use

inst.components.temperature.inherentsummerinsulation = -60

so for example, the straw hat (that brings 60) is the same as wearing nothing (0).

Which makes you overheat faster, and makes you need extra equipment to have more insulation to counteract the negative.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...