Dila the kila Posted January 1, 2021 Share Posted January 1, 2021 First post here so not sure what the etiquette is, but here goes! Hey all! I've made my very first mod (Let me Sprint!) which allows everyone on the server to sprint by holding LSHIFT. It isn't quite up to my standards though, and I've already noticed a couple of bugs which I am struggling to fix. Issues: Hunger rate doesn't seem to change for Wolfgang - I've tried to look into `data\scripts\prefabs\wolfgang.lua` and can see that there is also some hunger rate changing going on in there that might be affecting this. Wondering how I can override this and add in my own modifier alongside the existing hunger rate modifiers. Holding shift even when stationary causes hunger to go down - Although I can live with this, it would be nice if I could fix this too. I would really appreciate if someone could help me out with this and / or provide further feedback after giving the mod a try: https://steamcommunity.com/sharedfiles/filedetails/?id=2340409563 Link to comment Share on other sites More sharing options...
Thomas Die Posted January 2, 2021 Share Posted January 2, 2021 if inst.sg:HasStateTag("running") then --do hunger drain end This maybe would work but all it does if it's checking that you are moving i think. How does the hunger drain work? 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