Open ghost opened 4 years ago
I believe, one of the solutions to this, is to make the mass of the box negligible, I believe this was somewhat investigated at some point..
I believe, one of the solutions to this, is to make the mass of the box negligible, I believe this was somewhat investigated at some point..
Problem could be, that mass very close or equal to zero could end up causing the boxes to "float away" Discovered this when trying to debug a mod where the object had no mass
I believe, one of the solutions to this, is to make the mass of the box negligible, I believe this was somewhat investigated at some point..
Problem could be, that mass very close or equal to zero could end up causing the boxes to "float away" Discovered this when trying to debug a mod where the object had no mass
Maybe if we make sure it's attached, we'll be fine ;)
Would be worth testing another "solution" could be to temporarily disable collission with near entities, but I guess that should be the worst-case-solution since that would have to be done for every object...
What could also work is adding a check in fn_handleDamage to discard the damage if the object that caused damage was a housing box
So, as a friend of mine helped me to place my housing storage boxes in a quite unusual fashion we both discovered that the spawned in boxes nowhere near as harmless as we thought. What happened? I killed him with a swing of the "ghost" box. The issue: The "ghost" box actually has collision and is able to interact with players (and potential with other vehicles) - which, when swung quite fast, ends in a freight train hitting another player and by this: killing the other player. The problem: Some bad player could spawn a box in a house - and run around the server with this lethal weapon. We didn't tested it but I guess this not only affects players but vehicles as well and by this not only killing players but also destroying vehicles. I don'T know if it's possible to spawn in the crate without any collision so it can'T harm anybody - but at least some fix should be implemented to de-spawn it when the player moves too far away from the house he created it in. Otherwise it enables players to run freely around the map with this "ghost" box in front and kill anybody comming too close. Another way more drastic approach would be to redo the housing system in such a way as crates can't be placed freely by the player but only spawn in at pre-defined positions fixed in the config. Or maybe even remove the crates all together and have some other way of storage interaction (for the virtual items this won't be hard - but for the "real" items this could very well be a problem).
Just again one of those "the game/engine got us" noone could had ever thought about. I really struggled to report it public as when this becomes a known bug without any half-way helpful solution it would turn big servers into slaughter houses. I already had the idea to play on some random server just to see if it's a common bug exisiting in the wild - but some servers require quite a lot of effort and play time to get to the first cheap house and storage crate I rather would invest in my own stuff than playin on some other server just for the lolz to test a bug - and getting banned for RDM in the end anyway.
So, any ideas / suggestions how to tackle this problem? I guess it may could be possible to link the box and the house it was spawned in and to keep an eye on the distance - if it goes off some limit the box should be despawned (and maybe return to the virtual inventory as it can't be said anytime this occurs was enforced by a bad player). I don'T think hardcoding positions would be a viable option - as it would also require quite some work for any additional type of building some admin may add to the housing list (although I honestly kinda like that idea now as I wrote it).