Mod articles
-
How it works
All functions work identical both for Player and NPC. There are some exceptions:
NPCs almost do not jump, so jump cost/deny works only for Player
Walk speed still works only for NPCs
Many of those functions you can enable only for Player or NPC. Plugin uses same formulas for both Player and NPC.
Stamina regen
delay = cost * k + b
Vanilla formula is just fDamagedStaminaRegenDelay (which is 0.5), so now it takes attack cost too.
k and b are configurable constants
total rate = vanilla rate * walk type mod * carry mod * HP mod * SP mod
Yes, I decided to just mul everything to do not touch vanilla values. If at least one of them is <0, there is no regen. Most common case — HUGE ove...