Just needed to add proper computation of relative location, that takes into account mesh's own rotation.
This patch reverts first step of global weapon conversion that would have halted the release of the next version for too long.