Hello there I've tried changing the health that it spawns with but no matter what it seems to be staying at 750 health everytime I spawn it with /mymini.
Mini HealthSolved
Thanks for reporting! I have created a fix and submitted it as a pull request for Spooks to review and merge. You can download the update here in advance if you want. https://github.com/Spookywooky3/SpawnMini/pull/15
Also note, this seems to affect the minicopter max health. If you don't want that, we can add another config option.
Thank you for the quick reply and fix. Much appreciated. I was wondering though no matter what I set the health to it takes increased damage the higher the health it is. Like if I were to set it to 100m health it would take 15m health from hitting the land harder then normal but if it's at 750 then it would only take 150-200ish health. Is that something that can be controlled? Otherwise it doesn't seem like increasing the health helps its survivability.
Good question. I just checked the code, and I can see that collision damage uses a percentage of the minicopter's max health. To change that, we could use the following independent approaches.
- Disable vanilla collision logic, and write custom collision logic to replace it
- Block or reduce collision damage specifically for MiniCopters, using the OnEntityTakeDamage hook
- Attach a separate collision listener which alters the pending damage after Rust sets it
Ah ok that made sense about the percentage of max health. It sounds like the second one would probably be easier? I would just like to be able to set a certain % less that it takes to make it actually healthier. Would you be able to implement the % damage taken from collisions since the health doesn't seem to actually be important due to the logic that rust implemented for collisions
Merged post
Nevermind I was able to implement it.
Locked automatically