No worries, quickfix. The plugin is in Lua though, not C# (.cs).
I'll likely be converting it to C# eventually, but that's a learning process for me right now.
Metabolism
Moved
Total Downloads: 2,348 - First Release: Oct 24, 2014 - Last Update: Jan 12, 2018
- 4.875/5, 16 likes
-
Wulf Community Admin
-
Hi Wulf,
Ok, tried the new one - got what seemed a minor error on first load: "[Oxide] 1:44 AM [Warning] CallHook 'OnRunPlayerMetabolism' on plugin 'MetabolismControl v1.2.0' took: 586ms" (I think that's just a slow response from my server, correct?)
In terms of the mod in practice - it seems to be deducting calories and/or hydration at either about 1 per second, or considerably more than 1 per second - depending on the values that you set in the config.
(for all of the following detailed tests, I edited the config file, and the used the oxide.reload function to update the values on the server process)
It appears that values less than the defaults (0.025 and 0.05) deduct roughly 1 unit per second (that's just an "eyeball" timing estimate)... no matter what number you put in the config - I tried 0.025, and went as small as 0.00000001, and it seemed to remain about the same (1/sec)
For numbers greater than the defaults, the drop rates skyrocketed - death from dehydration/hunger in less than a minute.
Not sure if this helps, but thought I should share my observations.
Also, a question: are these drop rates meant to be "per second"? "per fraction of a second"? "per server 'tick'" (and if so, how often does a server "tick")? Just curious!
Again, my sincere thanks for all your ongoing efforts with this plugin! -
@Wulf Another thing that would be nice on this plugin is that when you set the max vaules the bars full all the way to the end of the bar. I don't know how easy this would be but would be great if it could be added. I use this to try make food and water actully needed frequently instead eating a tonne and it lasting forever. Thanks you do a great job in this community
-
I know this is an old plugin but is there any chance it can be updated as it does not seem to work in our server currently. We are running a pvp based server and would like everyone to respawn on 100 hp.
-
-
-
I hope I could help. -
Added it to the server. Thank you very much for replying so fast and for creating the plugin too, very kind of you so thank you again, have a good day !
-
-
Wulf Community Admin
-
(All i did was set the spawnvalue of health to 100) -
Hello fellow gamers. It seems Jacob 5's analysis is correct. I like this plugin, so I started playing around with the values to make it work as desired. First consideration to notice is that when you are cold or hot, hydration and hunger drain values increase, keep this in mind when adjusting the configuration file. I made some adjustments and got these results:
Hydration: 13 every 5 minutes (1 hour drain = 156, 2h = 312, 3h = 468, 4h = 624, 5h = 780, 6h = 936)
Hunger: 15 every 5 minutes (1 hour drain = 180, 2h = 360, 3h = 540, 4h = 720, 5h = 900, 6h = 1080)
My character was standing still, so his heart was calmed. I think I read somewhere that there is a heart rate attribute now, activities increase caloric and water intake.
My configuration is:
Code:{ "Settings": { "Calories": { "LossRate": "-0.0075", "MaxValue": 1000, "SpawnValue": "1000" }, "Health": { "GainRate": "0.035", "MaxValue": 100, "SpawnValue": "default" }, "Hydration": { "LossRate": "-0.0075", "MaxValue": 1000, "SpawnValue": "1000" } } }
-
dosent work for me with the new patch
-
I like the idea of this mod, but when I apply it my server lags to death. This is even with the default settings.
-
Wulf Community Admin
-
-
Wulf Community Admin
-
I got your point. I deleted everything and tried again. It seems stable now. Something weird must have happened in the upload.
-
Please can anyone post his working settings?
I need somethimg like loosing 500 calories and 500 Hydration in 2 hours Realtime.
(Or 48h InGameTime)
This does not work anyway!
Code:{ "Settings": { "Calories": { "LossRate": "-0.0075", "MaxValue": 1000, "SpawnValue": "1000" }, "Health": { "GainRate": "0.035", "MaxValue": 100, "SpawnValue": "default" }, "Hydration": { "LossRate": "-0.0075", "MaxValue": 1000, "SpawnValue": "1000" } } }
Last edited by a moderator: Dec 6, 2015 -