Thread: Q&A Thread
View Single Post
  #32  
Old 01-16-2019, 05:50 AM
Ydiss
Fire Beetle
 
Join Date: Dec 2009
Posts: 6
Default

Quote:
Originally Posted by Akkadius View Post
If you're talking about inflated hp_regen rates in one of the recent source releases, make sure you are updated to the latest source as it includes a database update that resolves this issue
Hi Akkadius

Thanks for your reply. It's not related to that (I actually wanted to control regen rates as part of a quest).

I've actually thought of a workaround this morning. I can hijack another readable npc stat and use that to control the hp_regen value. For example, I can use charisma.

I just need to initially set the npc's cha to the same value as the hp_regen value, divided by 1000. Then I can use getCHA() and modify cha (eg -10) and apply that value to modify hp_regen (*1000).

It should work in theory.
Reply With Quote