EuedeAdodooedoe Posted February 23, 2017 Share Posted February 23, 2017 I searched through multiple files, obviously fire.lua, but I found nothing. It doesn't seem like tuning.lua has this declared either. Link to comment Share on other sites More sharing options...
RedHairedHero Posted February 23, 2017 Share Posted February 23, 2017 I'd go to Willow.lua file for fire resistance and go to Staff.lua for fire damage. Link to comment Share on other sites More sharing options...
EuedeAdodooedoe Posted February 23, 2017 Author Share Posted February 23, 2017 2 hours ago, RedHairedHero said: I'd go to Willow.lua file for fire resistance and go to Staff.lua for fire damage. Nope, it doesn't seem like it's in either of those two, but tuning.lua for DST seems to have MAX_FIRE_DAMAGE_PER_SECOND variable, which is set to 120... while in single player such a variable doesn't exist at all. Changing the variable to, say, 600 or 1200 (set to 120 by default) doesn't really change the amount of hp your character loses or anything else for that matter when they stand near something that is on fire. It seems like it's complexly coded within health.lua, however I might be wrong. The difference between DST and DS is the rate at which the 4 hp is taken away. For single player it's either 4 per frame or, in total, 40 per 2.5 seconds, while for multiplayer it's 4 per 2.5 seconds. There must be some form of variable that controls the rate at which fire deals damage, but where I can't find it. Link to comment Share on other sites More sharing options...
Aquaterion Posted February 23, 2017 Share Posted February 23, 2017 10 minutes ago, EuedeAdodooedoe said: Nope, it doesn't seem like it's in either of those two, but tuning.lua for DST seems to have MAX_FIRE_DAMAGE_PER_SECOND variable, which is set to 120... while in single player such a variable doesn't exist at all. Changing the variable to, say, 600 or 1200 (set to 120 by default) doesn't really change the amount of hp your character loses or anything else for that matter when they stand near something that is on fire. It seems like it's complexly coded within health.lua, however I might be wrong. The difference between DST and DS is the rate at which the 4 hp is taken away. For single player it's either 4 per frame or, in total, 40 per 2.5 seconds, while for multiplayer it's 4 per 2.5 seconds. There must be some form of variable that controls the rate at which fire deals damage, but where I can't find it. check armor_dragonfly.lua in the onequip function. Link to comment Share on other sites More sharing options...
RedHairedHero Posted February 23, 2017 Share Posted February 23, 2017 What I meant by checking those files is see where they pull fire related damage and protection from. Example would be like inst.components.health.whatever. So then you know it's in the components folder in the health.lua. Link to comment Share on other sites More sharing options...
EuedeAdodooedoe Posted February 24, 2017 Author Share Posted February 24, 2017 19 hours ago, RedHairedHero said: What I meant by checking those files is see where they pull fire related damage and protection from. Example would be like inst.components.health.whatever. So then you know it's in the components folder in the health.lua. Kek, we arrived to the same spot; health.lua. However, only the damage scale is declared there and it's just set to 1. There is nothing indicative of 4 hp being taken away every time hp is actually taken away from you standing in fire and there is no damage rate declared either. Link to comment Share on other sites More sharing options...
RedHairedHero Posted February 24, 2017 Share Posted February 24, 2017 This was inside the Health.lua file. amount = TUNING.MAX_FIRE_DAMAGE_PER_SECOND - self.firedamageinlastsecond self:DoDelta(-amount*self.fire_damage_scale, false, "fire") This is in Tuning.lua MAX_FIRE_DAMAGE_PER_SECOND = 120 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