- Optional Dependencies
- http://oxidemod.org/plugins/zones-manager.739/
Give your dropped item that old death-match style feel by having them rotate on the spot with the option to pick them up when walking over them.
Support for ZoneManager has been added for sphere and box zones!
By enabling "Apply rotation in set zones only" in the config you can force this to only work inside of the specified zones. You can add a zone by registering its zone ID using the commands provided below, or by manually adding the zone ID to the zone list in the config
Example of usage with a box zone:
Commands (remove the '/' to use in console)
/ap - Toggles automatic pickup for the player using the command (Chat Only)
/dropzone - Shows the help menu
/dropzone add <zoneID> - Adds a zone ID to the zone list
/dropzone remove <zoneID> - Removes a zone ID from the zone list
/dropzone list - Lists all registered zone IDs
Config Options
Collision Pickup (variations) - Enables collision pickup of items or dropped item containers (walk over items to pick them up)
Rotate items in set zones only - Enables item rotation only in the zones specified, zones can be added/removed via the commands provided above or by manually editing the Zone ID list in the config
Overrides - Allows you to specify specific items to rotate when dropped (as an alternative to an entire category)
Monitor height changes - Monitors item -> floor height changes and adjusts the items position accordingly
Rotation speed - The speed in seconds it takes the item to make 1 rotation
Time before rotation - The amount of time in seconds from when the item spawns until it begins rotation
Types to rotate - The item category types that rotation will apply to
Rotate dropped item containers - This will add a rotator to dropped item containers (backpacks from player bodies and from storage containers)
Example usage of manual overrides;
Example usage of ignore overrides;
Config
Support for ZoneManager has been added for sphere and box zones!
By enabling "Apply rotation in set zones only" in the config you can force this to only work inside of the specified zones. You can add a zone by registering its zone ID using the commands provided below, or by manually adding the zone ID to the zone list in the config
Example of usage with a box zone:
Commands (remove the '/' to use in console)
/ap - Toggles automatic pickup for the player using the command (Chat Only)
/dropzone - Shows the help menu
/dropzone add <zoneID> - Adds a zone ID to the zone list
/dropzone remove <zoneID> - Removes a zone ID from the zone list
/dropzone list - Lists all registered zone IDs
Config Options
Collision Pickup (variations) - Enables collision pickup of items or dropped item containers (walk over items to pick them up)
Rotate items in set zones only - Enables item rotation only in the zones specified, zones can be added/removed via the commands provided above or by manually editing the Zone ID list in the config
Overrides - Allows you to specify specific items to rotate when dropped (as an alternative to an entire category)
Monitor height changes - Monitors item -> floor height changes and adjusts the items position accordingly
Rotation speed - The speed in seconds it takes the item to make 1 rotation
Time before rotation - The amount of time in seconds from when the item spawns until it begins rotation
Types to rotate - The item category types that rotation will apply to
Rotate dropped item containers - This will add a rotator to dropped item containers (backpacks from player bodies and from storage containers)
Example usage of manual overrides;
C#:
"Overrides - Items to rotate (ignores types)": [ "explosive.timed", "rifle.ak" ], // This will apply rotation to timed explosives and assault rifles, even if their item category is set to not apply rotation
Example usage of ignore overrides;
C#:
"Overrides - Items/Prefabs to ignore (item shortname or entity short prefab name)": [ "explosive.timed", "item_drop" ], // This will prevent rotation for item shortnames, or dropped item containers short prefab names that are in this list
Config
The configuration file can be found in your server directory at .../oxide/config/RotatingPickups.json
The use of an editor and validator is recommended to avoid formatting issues
The use of an editor and validator is recommended to avoid formatting issues
C#:
{
"Allow collision pickup of dropped item containers": true,
"Allow collision pickup of items": true,
"Collision detection radius": 0.5,
"Item types to rotate": {
"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
},
"Monitor height changes": true,
"Overrides - Items to rotate (ignores types)": [],
"Rotate dropped item containers": true,
"Rotate items in set zones only": false,
"Rotation speed": 5.0,
"Time before rotation starts (seconds)": 1,
"Zone IDs used for zone only rotation": []
}