Whitefang45 Posted May 31, 2016 Share Posted May 31, 2016 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: But a little after the ice crackles appear on the screen, her health will change to this: 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) Link to comment https://forums.kleientertainment.com/forums/topic/67799-coding-help-with-lack-of-freezing/ Share on other sites More sharing options...
DarkXero Posted May 31, 2016 Share Posted May 31, 2016 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. Link to comment https://forums.kleientertainment.com/forums/topic/67799-coding-help-with-lack-of-freezing/#findComment-778607 Share on other sites More sharing options...
Whitefang45 Posted May 31, 2016 Author Share Posted May 31, 2016 DarkXeno, you're a blessing! Thank you! Link to comment https://forums.kleientertainment.com/forums/topic/67799-coding-help-with-lack-of-freezing/#findComment-778614 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now