Diametric
Allows configuring the buoyancy of dropped items

Supported Games
GameServerKingsGameServerKings

Allows items dropped in the world to have buoyancy (ability to float in water) applied to them. You can configure the buoyancy globally for all dropped items, per item category, or per individual item. The more specific configuration takes priority.

Setting a buoyancy of -1 will ignore applying any buoyancy to the item. Ranges from 0.5 to 0.8 are normal, anything above 1 becomes comical.

Water Detection Rate sets at what frame rate to attempt to detect when an item has entered water to apply a buoyancy component to the worldmodel entity. Lowering this value increases the speed in which detection occurs, but could increase server latency slightly on high population servers. Increasing this value slows down the rate in which water is detected which can cause a larger "pond skipping" effect, but will be more performant.

Configuration

{
  "Category Buoyancy": {
    "weapon": 0.8
  },
  "Global Buoyancy": -1.0,
  "Item Buoyancy": {
    "bow.hunting": 0.5,
    "crude.oil": 0.6,
    "stones": 0.0,
    "waterjug": 0.6
  },
  "Water Detection Rate": 5
}
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

7.6K downloads
21 watchers

items