animefireball Posted December 10, 2016 Share Posted December 10, 2016 Could anyone make a mod that change the amount of fire Carlie takes so that ALL the fire is taken from a source regardless of the amount of fuel currently used? I feel Charlie is literally no threat during this time as so little fire is taken. I'd greatly appreciate it :3 Link to comment Share on other sites More sharing options...
Rosten Posted December 10, 2016 Share Posted December 10, 2016 Do you mean like, the dark hands when you have low sanity, or is this a DST specific thing I'm missing here? Link to comment Share on other sites More sharing options...
animefireball Posted December 10, 2016 Author Share Posted December 10, 2016 Yeah the shadow hand that shows up on an interval number of nights and randomly within caves (or at least i think it is), that takes only some of your fire. I would really like a mod where the hand takes ALL the fire from a source regardless of the amount of fuel. This may be DST specific, but i dont know i've yet to play DS but i know some mechanics are different between the two versions. Link to comment Share on other sites More sharing options...
Serpens Posted December 10, 2016 Share Posted December 10, 2016 I took a quick look at the code... but it seems very very complicated... it is done via PushAction in the locomoter component with the action Extinguish. This seems to extinguish 0.2 by default from any fire and you can't change this value. Maybe you could replace it by the action Manualextinguish, were the value can bet set... but I don't know how this would work with this Pushaction stuff... So I won't put more time into this, ..it is too complicated. Link to comment Share on other sites More sharing options...
animefireball Posted December 10, 2016 Author Share Posted December 10, 2016 Does this means its not possible through modding or just not worth the effort? I would be nice if the shadow hands were an actual threat worth chasing off, as it is now my friend and just keep fuel in hand whenever the hands show up. Link to comment Share on other sites More sharing options...
Aquaterion Posted December 10, 2016 Share Posted December 10, 2016 (edited) Make a modmain.lua and add this: AddPrefabPostInit("shadowhand", function(inst) inst:ListenForEvent("onreachdestination", function(inst, data) if data.pos == inst.fire:GetPosition() then inst:DoTaskInTime(.55, function() inst.fire.components.burnable:Extinguish() end) end end) end) Should work. Its kind of a hacky way. It listens for when the hand reaches its destination, being the fire, makes sure its the fire by comparing positions, then extinguishes the fire after .55 seconds, which is how long the hand grabbing animation should be. Edited December 10, 2016 by Aquaterion Link to comment Share on other sites More sharing options...
animefireball Posted December 11, 2016 Author Share Posted December 11, 2016 Thank you Aquaterion for the code, though i have no idea how to actually turn this into a mod (allergic to programming). even after looking at the mod help threads ;__; Link to comment Share on other sites More sharing options...
Aquaterion Posted December 11, 2016 Share Posted December 11, 2016 this should work shadowhandbuff.zip Link to comment Share on other sites More sharing options...
animefireball Posted December 11, 2016 Author Share Posted December 11, 2016 YES THANK YOU (well test with friend later tonight) Link to comment Share on other sites More sharing options...
Aquaterion Posted December 11, 2016 Share Posted December 11, 2016 26 minutes ago, animefireball said: YES THANK YOU (well test with friend later tonight) if it crashes, replace the code in modmain.lua with this, as i'm unsure if the extra code is needed since its server-sided AddPrefabPostInit("shadowhand", function(inst) if not GLOBAL.TheWorld.ismastersim then return inst end inst:ListenForEvent("onreachdestination", function(inst, data) if data.pos == inst.fire:GetPosition() then inst:DoTaskInTime(.55, function() inst.fire.components.burnable:Extinguish() end) end end) end) Link to comment Share on other sites More sharing options...
animefireball Posted December 11, 2016 Author Share Posted December 11, 2016 Yeah that i can do, very much appreciated! Link to comment 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