So last night I did an experiment. A player on my server died with 2 days work of belongings and could not loot his body. I went to it and sure enough, I'd open the body and get the craft window instead with a brief glimpse of what he had on him.
I wrote a quick plugin and managed to get a handle on the body and just looped through his belongings, doing .MoveToContainer on each to move it back to the players bags and it worked like a charm.
This is def the #1 admin call on my server (cant loot my body!) So I want to make a proper mod to make this work. I can imagine a million ways to do it, but I'd like input.
Is there a way to force a client to open a container?
I though about maybe a slash command that could be used to convert a body to a crate, but even a large one would not be large enough and I can def imagine some abuse scenarios.. Could do a full blown gui but that seems a bit hardcore for such a simple and hopefully temporary plugin.
Any ideas how to do this elegantly?
Fixing unlootable bodies?
Discussion in 'Rust Development' started by Deicide666ra, Oct 19, 2015.
-
You could save the coordinates of the corpse upon death then resync the corpse to the server, I'm sure there's a way to move corpses/track them, I guess that'd work. Not sure though seeing as it's a client bug
I think that would be more elegant than the method you're thinking of, prevents abuseLast edited by a moderator: Oct 19, 2015 -
I like that idea, since in several corpse disappearance issues I've seen, the corpse itself had ragdolled in places where they can't be reached.
Leads me to another idea.. Any way to just disable ragdoll effects until facepunch fixes their mess? Just drop it where the player was but not make it slide? Kinda like a deployable, these don't slide... -
I'm sure there's some way to make it sit still when moving it/resyncing it but as for disabling goes I think that would be a lot of work and potentially a waste of time considering how frequent updates are
