Bug Description:
Vending Machine health was buffed by some patch, defaulting to 1250 instead of 500.
On server restart vending machines lose health.
Fix:
In VendingMachine.cs, line 59.
should read
Extended Explaination:
During server initialization
SetAll() calls
In the
This value is xxxx/1250 at the time of this post, not xxx/500 as i assume it was some time ago.
Sorry to the moderators for posting here instead of the plugins subforum, it seems dead and i wanted this to be seen.
I see that the plugin is unmaintained, I will do the fix and reupload if its not against any rules here.
EDIT:
I see rule 6 under undesirables in plugin submission.
I dont want to step on any toes can an admin do the fix with this information.
Thank you for your time.
Vending Machine health was buffed by some patch, defaulting to 1250 instead of 500.
On server restart vending machines lose health.
Fix:
In VendingMachine.cs, line 59.
const float defaultHealth = 500f;
should read
const float defaultHealth = 1250f;
Extended Explaination:
During server initialization
OnServerInitialized()
calls SetAll()
to setup the vending machinesSetAll() calls
Set()
in a loop once per machine.In the
Set()
function, line 1101.float h = health * vm.healthFraction;
health
is taken from the default on line 59 and and multiplied with the fractional health value vm.healthFraction
This value is xxxx/1250 at the time of this post, not xxx/500 as i assume it was some time ago.
Sorry to the moderators for posting here instead of the plugins subforum, it seems dead and i wanted this to be seen.
I see that the plugin is unmaintained, I will do the fix and reupload if its not against any rules here.
EDIT:
I see rule 6 under undesirables in plugin submission.
I dont want to step on any toes can an admin do the fix with this information.
Thank you for your time.