Rotating Pickups

Rotating Pickups 0.3.10

Added additional detection layers to trigger rotation
  • Like
Reactions: MalS
The config has changed! See below for info regarding changes that must be made.

Added option to set specific items to rotate as an alternative to entire categories. See overview on how to use it

Config Changes (1 line)
C#:
{
  "AllowContactPickup": true,
  "AllowInZonesOnly": false,
  "ColliderTriggerRadius": 0.5,
  "ManualOverrides": [], // This line here
  "MonitorHeightChanges": true,
  "RotationSpeed": 5.0,
  "TimeBeforeRotation": 1,
  "TypesToRotate": {
    "Ammunition": true,
    "Attire": true,
    "Common": false,
    "Component": false,
    "Construction": false,
    "Food": true,
    "Items": false,
    "Medical": true,
    "Misc": false,
    "Resources": true,
    "Tool": true,
    "Traps": false,
    "Weapon": true
  }
}
  • Like
Reactions: MalS
Config has changed! See below for information regarding updating your config

Added option to monitor item -> ground height and adjust if necessary

Config Changes (1 line)
C#:
{
  "AllowContactPickup": true,
  "AllowInZonesOnly": false,
  "ColliderTriggerRadius": 0.5,
  "MonitorHeightChanges": true, // Add this line here
  "RotationSpeed": 5.0,
  "TimeBeforeRotation": 1,
  "TypesToRotate": {
    "Ammunition": true,
    "Attire": true,
    "Common": false,
    "Component": false,
    "Construction": false,
    "Food": true,
    "Items": false,
    "Medical": true,
    "Misc": false,
    "Resources": true,
    "Tool": true,
    "Traps": false,
    "Weapon": true
  }
}
  • Like
Reactions: MalS
The config has changed! See below for information regarding updating your config!

Added config option to adjust collider trigger radius (for collision pickup)

Config Change (1 line)
C#:
{
  "AllowContactPickup": true,
  "AllowInZonesOnly": true,
  "ColliderTriggerRadius": 0.5, // Add this line
  "RotationSpeed": 5.0,
  "TimeBeforeRotation": 1,
  "TypesToRotate": {
    "Ammunition": true,
    "Attire": true,
    "Common": false,
    "Component": false,
    "Construction": false,
    "Food": true,
    "Items": false,
    "Medical": true,
    "Misc": false,
    "Resources": true,
    "Tool": true,
    "Traps": false,
    "Weapon": true
  }
}
Changed component initialisation time
Added another small delay before detecting contact with other entities
Fix for Rust update
Added collisions with junkpiles to trigger rotation
Please read patch note for version 0.1.5

Possible fix for multiple height adjustment?
Changed auto-rotation method to only start running after the object has collided with terrain or a building block. If you think of any more cases where it should collide with let me know

Auto-pickup will not run if the players inventory is full (fix for : Destroying components immediately is not permitted during physics trigger/contact, animation event callbacks or OnValidate. You must use Destroy instead.)
Fix for Rust update