{
"config": {
"destroyOnUnload": false,
"ejectLocks": false,
"health": 5000.0,
"lockable": true,
"lockFailureMessage": false,
"saveLocks": true,
"setHealth": true,
"noBroadcast": false,
"restricted": false,
"useEconomics": true,
"useServerRewards": false,
"transactionTimeout": 300.0,
"logTransSuccess": false,
"logTransFailure": false,
"transMessages": true,
"currencyItem": "blood"
},
"resistances": {
"Generic": 1.0,
"Hunger": 1.0,
"Thirst": 1.0,
"Cold": 1.0,
"Drowned": 1.0,
"Heat": 1.0,
"Bleeding": 1.0,
"Poison": 1.0,
"Suicide": 1.0,
"Bullet": 1.0,
"Slash": 1.0,
"Blunt": 1.0,
"Fall": 1.0,
"Radiation": 1.0,
"Bite": 1.0,
"Stab": 1.0,
"Explosion": 1.0,
"RadiationExposure": 1.0,
"ColdExposure": 1.0,
"Decay": 1.0,
"ElectricShock": 1.0,
"Arrow": 1.0
},
"templates": {}
} Heavy loss of heath on vending
If I unload the plugin after the C4 attack, the machine health is greatly reduced. Upon reload it is restored to full health. To me the issue is more that it is NOT taking damage with the plugin loaded regardless of the Immortal setting.
rfc1920
I have tried to blow mine up with C4 to no avail, even if not set to immortal and also with NoDecay loaded/unloaded, TruePVE disabled, etc. No effect. I have set decay.tick to 30 to see what happens over time.
If I unload the plugin after the C4 attack, the machine health is greatly reduced. Upon reload it is restored to full health. To me the issue is more that it is NOT taking damage with the plugin loaded regardless of the Immortal setting.
I am having this same issue. It's only vending machines that have the plugin being utilized on them. (I believe)
I have them set at 1250 health. Except they never go to 1250. They usually sit around 250, then constinously lose health. In the last 12 hours, it went from 250 to 32 on all 7 of them.
I have K1ll's zone manager plugin as well. The area is set to no decay. I have a TC also I've tried. Everything else in the zone is happy. It's just the vending machines constantly losing health.
I should also note, I've tried doing dmg to them but that's not the issue. They are actually decaying.
I know you are busy and this isn't top priority but I think this plugin could be amazing if it had some things fixed :D pretty please
rfc1920
Have you set them as Immortal?
I've tried setting them as immortal, I've tried turning health off. It doesn't matter. They will never fully decay. They always stop at 1HP. However, I CONSTANTLY have PM's about the decay :(
Has this been fixed? I'm also having VMs losing health/decaying while using the Vending Manager plugin.
i take it no update or fix?
Definitely not fixed, just tried this plugin. Every player that has placed a vending machine has health at 500 after server restart and can not repair their machine above 500. Default health was set at 1250 in the config. I set the immortal flag as well but the PM's are driving me insane lol.
ist this alrady fixed ?
IF you are running TRUEPVE, this will fix the decay issues for Vending Machines
add this to the code, will stop decay to the VM, just the BOLD part
class VendingManager : RustPlugin
{
private object CanEntityTakeDamage(VendingMachine vm, HitInfo hitInfo) => hitInfo != null && hitInfo.damageTypes.Has(DamageType.Decay) ? false : (object)null;
#region Variables
sorry i dont use true pve
I spoke with Whispers88, he/she said they will look into it.. hopefully a fix sometime soon
thx then i will wait
While editing your zone, try using /zone nodecay true rather then using the GUI, worked for me and stopped the decay.