Page MenuHomeFeedback Tracker

Clientside vs Serverside physics cause inability to loot corpses
New, WishlistPublic

Description

Here is a video of a kill on top of veresnik hill, the body is accessible for a short while before beginning a physics stage lasting a few seconds. after which the body becomes inaccessible.

http://www.twitch.tv/sacriel/v/34959132?t=7m20s

It is my belief that after a kill, the server and the player's client both perform local physics simulation on the body, if the body on the server-side simulation slides away (currently the DayZ physics model does not include traction or drag, so bodies slide on angled planes as if they were glass) then the server removes the clients ability to loot the body. I draw an example of my hyptothesis here.

If a kill is on a totally flat plane, there is no chance of the two physics simulations being far enough apart to cause problems, but on an angled plane it is fairly common for the body to slide away on one client and not the other. This is also demonstrated on stream when my squad kills somebody, each of my squadmates will see a totally different local version of the body, only one person will be able to loot the body - the one who lucked out and their personal physics simulation ended up approximately matching the server's simulation.

This is my hypothesis and proposal of a potential fix http://www.twitch.tv/sacriel/v/34959132?t=9m40s

another fix may be to loosen up the range in which you can loot a body. Maybe extend it to 2 meters instead of point-blank - this would allow people to loot bodies which have 'only' slid upto 2 meteres away from the server-side simulation. However this may have undesired effects such as allowing people to loot bodies from an unrealistic distance.

Details

Legacy ID
3778991579
Severity
None
Resolution
Open
Reproducibility
Random
Steps To Reproduce

An easy way to see this issue is by using several multiplayer clients

have several players on a server

position a player on an angled surface

kill the player on angled surface

each of the different multiplayer clients on the server will see a different simulation of the physics body

depending on the discrepency, certain players will be able to loot the body while others will 'see the body in the wrong place' and be unable to loot

note: this will not work on a flat surface, as there is no chance of the server simulation 'sliding' the body away far enough away from the resting position of each nearby client, so they will still be able to loot the body.

Additional Information

potential fixes

Add friction to physics simulation, so bodies no longer slide down an entire mountain as if the floor were glass and the body weighed several tonnes

Add an anchor on the body to one of the feet, this means the body can slump fairly naturally but will not end up several meters from its original death coordinate, this will however cause strange bodies when people are killed on ledges or towers as they may end up hanging upside down by their foot. they will however remain lootable.

Event Timeline

Sacriel edited Steps To Reproduce. (Show Details)Jan 12 2016, 2:54 AM
Sacriel edited Additional Information. (Show Details)
Sacriel set Category to category:characters.
Sacriel set Reproducibility to Random.
Sacriel set Severity to None.
Sacriel set Resolution to Open.
Sacriel set Legacy ID to 3778991579.May 9 2016, 12:23 AM