- Optional Dependencies
- https://umod.org/plugins/friends
Variants player can get the recycler:
1) ability to craft a recycler with permission and cooldown or wipe limit count, crafting resources are defined in config
2) allows getting recycler by every player you wish by permission cooldown or wipe limit count by command
3) admin can set a kit with recycler item
4) allows giving a recycler by server console command - giverecycler <name or steamid>
5) find recycler in loot containers
- ability to repair/damage recycler
- default recyclers in Monuments are untouched (default rates in config are for home recyclers only) - can be set/unset in config
- it's just a box, when placed turns into real recycler (or any item u set)
- works as original rust recycler, the rates of recycler and other parameters rely on who turned on the recycler
- different configurable ratio and speed of recycler with individual permissions (default ratio 0.5 means 50% resources return, default speed 5 means 5 seconds between recycling portions of items), can change percentOfMaxStackToTake per each recycling tick, RatioScrap - ratio of scrap out (1.0 means 100% of predefined for item, you should know that scrap return count not equal to needed for crafting such item)
- easy pickup of recycler by hammer hit, need building privilege (may be disabled or allowed only for friends)
- UI for pickup, repair (u can see health), craft
- will be destroyed when building block underneath is destroyed, can't be destroyed itself
- every time checking for full inventory when giving/picking up
- no hanging in the air after raid )
- can restrict use by cupboard
- can restrict placing on ground (only on construction)
- can change commands in config
- can find in loot containers (just turn ON in config, reload the plugin and edit probability chance for each container in config)
- messages are stored in lang files, by default for EN and RU
- datafile auto wipes on map wipe
Commands:
- player chat: /rec - users can get a recycler into inventory or as an admin you could get this item and add it to any kit you wish
- admin/server console: giverecycler <name or steamid>
- player chat: /craftrecycler- crafts a recycler for player, alerts if any resources missing
Permissions:
homerecycler.canget - can get a recycler
homerecycler.ignorecooldown - as it says
homerecycler.cancraft - as it says
homerecycler.ignorecraftcooldown - as it says
CUSTOM permissions:
you could add group to "PermissionsRates" in config, eg.:
"viptest" - this means players with permission homerecycler.viptest will be having values from "viptest" section, if player has multiple such permissions, he will get by max priority
Config
1) ability to craft a recycler with permission and cooldown or wipe limit count, crafting resources are defined in config
2) allows getting recycler by every player you wish by permission cooldown or wipe limit count by command
3) admin can set a kit with recycler item
4) allows giving a recycler by server console command - giverecycler <name or steamid>
5) find recycler in loot containers
- ability to repair/damage recycler
- default recyclers in Monuments are untouched (default rates in config are for home recyclers only) - can be set/unset in config
- it's just a box, when placed turns into real recycler (or any item u set)
- works as original rust recycler, the rates of recycler and other parameters rely on who turned on the recycler
- different configurable ratio and speed of recycler with individual permissions (default ratio 0.5 means 50% resources return, default speed 5 means 5 seconds between recycling portions of items), can change percentOfMaxStackToTake per each recycling tick, RatioScrap - ratio of scrap out (1.0 means 100% of predefined for item, you should know that scrap return count not equal to needed for crafting such item)
- easy pickup of recycler by hammer hit, need building privilege (may be disabled or allowed only for friends)
- UI for pickup, repair (u can see health), craft
- will be destroyed when building block underneath is destroyed, can't be destroyed itself
- every time checking for full inventory when giving/picking up
- no hanging in the air after raid )
- can restrict use by cupboard
- can restrict placing on ground (only on construction)
- can change commands in config
- can find in loot containers (just turn ON in config, reload the plugin and edit probability chance for each container in config)
- messages are stored in lang files, by default for EN and RU
- datafile auto wipes on map wipe
Commands:
- player chat: /rec - users can get a recycler into inventory or as an admin you could get this item and add it to any kit you wish
- admin/server console: giverecycler <name or steamid>
- player chat: /craftrecycler- crafts a recycler for player, alerts if any resources missing
Permissions:
homerecycler.canget - can get a recycler
homerecycler.ignorecooldown - as it says
homerecycler.cancraft - as it says
homerecycler.ignorecraftcooldown - as it says
CUSTOM permissions:
you could add group to "PermissionsRates" in config, eg.:
"viptest" - this means players with permission homerecycler.viptest will be having values from "viptest" section, if player has multiple such permissions, he will get by max priority
Config
Code:
{
"chatCommand": "rec",
"craftCommand": "recyclercraft",
"recyclerItemName": "research.table",
"recyclerShortPrefabName": "researchtable_deployed",
"allowDamage": true,
"allowRepair": true,
"prefabToCloneDamage": "assets/prefabs/deployable/research table/researchtable_deployed.prefab",
"health": 500.0,
"trackStacking": false,
"blackList": [],
"restrictUseByCupboard": true,
"adminSpawnsPublicRecycler": false,
"useSpawning": true,
"useCrafting": true,
"useSpawnCooldown": true,
"useCraftCooldown": true,
"useSpawnLimit": true,
"useCraftLimit": true,
"allowDeployOnGround": false,
"allowPickupByHammerHit": true,
"pickupOnlyOwnerFriends": true,
"spawnInLoot": true,
"DefaultRates": {
"Priority": 1,
"spawnCooldown": 86400.0,
"craftCooldown": 86400.0,
"craftLimit": 1,
"spawnLimit": 1,
"Ratio": 0.5,
"RatioScrap": 1.0,
"Speed": 5.0,
"percentOfMaxStackToTake": 0.1
},
"itemsNeededToCraft": {
"scrap": 750,
"gears": 25,
"metalspring": 25
},
"PermissionsRates": {
"viptest2": {
"Priority": 2,
"spawnCooldown": 86400.0,
"craftCooldown": 86400.0,
"craftLimit": 1,
"spawnLimit": 1,
"Ratio": 1.0,
"RatioScrap": 1.0,
"Speed": 0.001,
"percentOfMaxStackToTake": 1.0
},
"viptest": {
"Priority": 1,
"spawnCooldown": 86400.0,
"craftCooldown": 86400.0,
"craftLimit": 1,
"spawnLimit": 1,
"Ratio": 0.5,
"RatioScrap": 1.0,
"Speed": 5.0,
"percentOfMaxStackToTake": 0.1
}
},
"Loot": [
{
"containerName": "loot_barrel_1",
"probability": 0
},
{
"containerName": "crate_normal_2",
"probability": 100
},
{
"containerName": "oil_barrel",
"probability": 0
},
{
"containerName": "crate_tools",
"probability": 0
},
{
"containerName": "foodbox",
"probability": 0
},
{
"containerName": "loot_barrel_2",
"probability": 0
},
{
"containerName": "codelockedhackablecrate",
"probability": 0
},
{
"containerName": "supply_drop",
"probability": 0
},
{
"containerName": "crate_normal",
"probability": 100
},
{
"containerName": "crate_normal_2_food",
"probability": 0
},
{
"containerName": "crate_normal_2_medical",
"probability": 0
},
{
"containerName": "crate_basic",
"probability": 0
},
{
"containerName": "crate_mine",
"probability": 0
},
{
"containerName": "stocking_large_deployed",
"probability": 0
},
{
"containerName": "stocking_small_deployed",
"probability": 0
},
{
"containerName": "trash-pile-1",
"probability": 0
},
{
"containerName": "loot-barrel-1",
"probability": 0
},
{
"containerName": "loot-barrel-2",
"probability": 0
},
{
"containerName": "crate_elite",
"probability": 0
}
]
}
I think the originals authors intention was to assume nothing and have the servers owners decide on which method to use to give these to players (craft, spawn, in loot, via a shop etc)