Jump to content

[SOLVED] Question about hungerdelta


Recommended Posts

Hello, I have a question if someone can kindly help me with :D! So, my mod character's stats mostly change with the use of hungerdelta like for example

inst.AnimState:SetBuild("adam")
inst.components.health.absorb = -2
inst.components.combat.damagemultiplier = 1.50
inst.components.locomotor.runspeed = 2 * TUNING.WILSON_RUN_SPEED
inst.components.hunger.hungerrate = 2 * TUNING.WILSON_HUNGER_RATE
inst.components.locomotor:SetExternalSpeedMultiplier(inst, "adam_speed_mod", 0.75)

Now what I want to know is since hungerdelta I think triggers every second would the way i'm making my character update his stats cause lag?

What I want to know is that does adding lots off different things in the hungerdelta cause lag or using hungerdelta's bad in general because it's almost always active? I don't want my character to cause performance issues... Thanks for reading :D!!!

PS. I'd really love anyone to give me a answer :) because without knowing this I can't work on my mod anymore :(

Edited by SuperDavid
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...