A3Wasteland / ArmA3_Wasteland.Altis

A3Wasteland is a survival sandbox mission for Arma 3 where two teams and independent players fight for survival. Built in collaboration between GoT, TPG, KoS, 404Games, and others.
http://a3wasteland.com
GNU Affero General Public License v3.0
104 stars 184 forks source link

Money dropped from players when killed would sink into the ground sometimes #507

Closed Jermin closed 6 years ago

Jermin commented 6 years ago

The object searcher can find it. But we can't see it where it is marked.

AgentRev commented 6 years ago

Sounds like an Arma bug that I can't fix.

Jermin commented 6 years ago

Weapons can get lost, too, in which case I can't find it in the object searcher.

AgentRev commented 6 years ago

That's Arma, can't do anything about that.

SanctuaryTactical commented 6 years ago

Money is there, just underground. Any way we can reposition it to the RIP position when the player dies? Yes though. Definitely an Arma bug (As is randomly losing your rifle)

AgentRev commented 6 years ago

I have found the problem. For whatever reason, sometimes getPosATL will give a negative height for corpses, and dropPlayerItems tries to spawn stuff at corpse height, so things would spawn underground. I applied a lower boundary of 0 to the height of getPosATL and it seems to have did the trick.

Sadly, I don't think I can prevent lost weapons.

AgentRev commented 6 years ago

https://github.com/A3Wasteland/ArmA3_Wasteland.Altis/commit/b23b020e8f323dcc76bc0bb32f7f560896162402