SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
86 stars 18 forks source link

[Bugs Found] #1693

Closed ghost closed 4 years ago

ghost commented 4 years ago
  1. On the skin: BONESPORT COMPOUND BOW with spikes in the center, polygons turned inward!

  2. Switchable items do not update their status on the server! Flashlight, NVD and Headlamp, Tactical range finder, laser and Flashlight transmit information about switching on to other clients through the server, however, they do not update their own state on the server. This can be seen if you add a collider to a switchable GameObject. On the server, it will not turn on and off. Perhaps this can be solved if you add a parameter for configuring items so that they are loaded on the server. It would be great if items equipped on the player were immersed on the server, be it weapons or a hat!

SDGNelson commented 4 years ago
  1. Thanks for the report! I will adjust that mesh for the update.

  2. You are correct that clothing and item prefabs are not instantiated (or even loaded) on the server. Having colliders on them in multiplayer would be problematic anyway because the server does not play their animations. What did you have in mind?

ghost commented 4 years ago

I would use this as a switch that activated the functions processed by the server. For example, turn on and off the force field or the player’s teleport built into the item. By the way, I even made a jetpack! True, it only works on the client. I really want to be able to load some prefabs on the server.

https://youtu.be/UGwH0my-Dqg

SDGNelson commented 4 years ago

Haha that is pretty creative! Off the top of my head the only per-player item prefab loaded on the server is the equipped weapon, so you might be able to do something with it. Otherwise the server tries to be relatively barebones.