Kr4ken-9 / NewEssentials

The Essential plugin for Unturned, built on OpenMod
GNU General Public License v3.0
15 stars 13 forks source link

/jump Ignores Ground #19

Closed Kr4ken-9 closed 4 years ago

Kr4ken-9 commented 4 years ago

/jump works for jumping to any type of object except the ground. It will say you are not looking at anything, which means Physics.Raycast returned false or hit.transform was null.

99% sure it's a layermask issue. Looking at Unturned's code we are using the correct layermask for detecting the ground though. Pretty frustrating

archie426 commented 4 years ago

We could try and use the item block one as they should have the same behaviour

Kr4ken-9 commented 4 years ago

Fixed in https://github.com/Kr4ken-9/NewEssentials/commit/21057bad23fab9591b91e2244872b08993634702

I looked at how items are dropped and I realized I am trying to teleport to a transform and not the point where the raycast intersects... I think I was tired when I wrote it lmao. It's fixed, thanks for having me look at items

archie426 commented 4 years ago

Lol nice