kaetzer Posted May 7, 2015 Share Posted May 7, 2015 evenin' i really enjoy the rather large modding community, can find all kinds of cool things and since the coding doesnt look too complicated, i can even make little adjustments (to characters for example) to better suite my needs with emphasis on "little"... my question now is: is there a way to make a character ITSELF rainproof? for example: only get soaked at XX% the normal speed, or a "waterproofer" ability like some clothes have come to think of it, there are quite a lot of furry chars out there, a function for them to "shake off" the rain and dry a certain amount instantly, like animals do, would be funny, wouldnt it?^^ (but thats far out of my league (for now)) greetings kaetzer PS: while i'm at it, did i see that correctly, that the coding language is C or some derivative? (am not well versed in programming languages, just learned the C basics a few weeks ago) Link to comment https://forums.kleientertainment.com/forums/topic/53613-waterproof-player-characters/ Share on other sites More sharing options...
Seiai Posted May 7, 2015 Share Posted May 7, 2015 (edited) @kaetzer, http://forums.kleientertainment.com/topic/47353-guide-getting-started-with-modding-dst-and-some-general-tips-for-ds-as-well/ Edited May 7, 2015 by Seiai Link to comment https://forums.kleientertainment.com/forums/topic/53613-waterproof-player-characters/#findComment-635289 Share on other sites More sharing options...
DarkXero Posted May 8, 2015 Share Posted May 8, 2015 Waterproof character?inst.components.moisture.maxMoistureRate = 0This would nullify rain, but you would gain wetness from waterballoons, fashion melon, and ice cube.inst.components.moisture.DoDelta = function(self, num) return endThis makes wetness take a hike, no more wetness, at all. Link to comment https://forums.kleientertainment.com/forums/topic/53613-waterproof-player-characters/#findComment-635425 Share on other sites More sharing options...
kaetzer Posted May 8, 2015 Author Share Posted May 8, 2015 @kaetzer,http://forums.kleientertainment.com/topic/47353-guide-getting-started-with-modding-dst-and-some-general-tips-for-ds-as-well/thanks, looks handy, i'll look into it should i get more into modding inst.components.moisture.maxMoistureRate = 0thanks a lot, works great is it a percentage or absolute value? ah, i'll just play around with it a little^^ Link to comment https://forums.kleientertainment.com/forums/topic/53613-waterproof-player-characters/#findComment-635620 Share on other sites More sharing options...
kaetzer Posted May 8, 2015 Author Share Posted May 8, 2015 oh, one more thing: when i'm testing around like this, do i have to start a new game everytime i alter or install a new mod? Link to comment https://forums.kleientertainment.com/forums/topic/53613-waterproof-player-characters/#findComment-635621 Share on other sites More sharing options...
DarkXero Posted May 8, 2015 Share Posted May 8, 2015 The default maxMoistureRate is 0.75. It's used to cap how fast you can get wet while exposed to rain. Depends on the mod. But most likely, no, just enable/disable it before going into the same game. Link to comment https://forums.kleientertainment.com/forums/topic/53613-waterproof-player-characters/#findComment-635627 Share on other sites More sharing options...
kaetzer Posted May 8, 2015 Author Share Posted May 8, 2015 The default maxMoistureRate is 0.75. It's used to cap how fast you can get wet while exposed to rain. Depends on the mod. But most likely, no, just enable/disable it before going into the same game. ah, cool, thanks, so if my char should only get 50% wet it would be 0.37, right? i just tested it a little (world settings: rain = lots) and 0.5 seems nice so far it's a custom character mod i manipulated a bit, and every time i tweak something (like more health or less, fire resistance/vulnerability, damage etc.) i used to start a whole new game, but i could have tweaked it on the run?! Link to comment https://forums.kleientertainment.com/forums/topic/53613-waterproof-player-characters/#findComment-635634 Share on other sites More sharing options...
DarkXero Posted May 8, 2015 Share Posted May 8, 2015 (edited) "It's used to cap how FAST you can get wet while exposed to rain." So no, moisture cap is still 100. If by tweaked on the run you mean editing the modmain and then immediately see the changes while running the game, the answer is no. By start a whole new game, I assume you CREATE a server. You just need to RESUME one. Edited May 8, 2015 by DarkXero Link to comment https://forums.kleientertainment.com/forums/topic/53613-waterproof-player-characters/#findComment-635637 Share on other sites More sharing options...
kaetzer Posted May 8, 2015 Author Share Posted May 8, 2015 By start a whole new game, I assume you CREATE a server. You just need to RESUME one. only singleplayer Link to comment https://forums.kleientertainment.com/forums/topic/53613-waterproof-player-characters/#findComment-635672 Share on other sites More sharing options...
DarkXero Posted May 9, 2015 Share Posted May 9, 2015 @kaetzer, still, all you need to do is quit to the menu, then click Play and reload the world. If you are going to mod single player I you should go to the other subforum, to use GetPlayer(), GetWorld(), and single player stuff. Link to comment https://forums.kleientertainment.com/forums/topic/53613-waterproof-player-characters/#findComment-635736 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