Don't Starve Together

Don't Starve Together

2,047 betyg
Loot Pump
33
20
2
14
3
2
2
2
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
Uppdaterades
354.393 KB
24 aug, 2020 @ 11:02
27 mar, 2021 @ 7:26
11 ändringsnotiser ( visa )

Abonnera för att ladda ner
Loot Pump

Beskrivning
Catches items from the ground and throw them in containers. (Autoloot)

Recipe: 1 Gears, 1 Whirly Fan and 2 Electrical Doodads.

The Loot Pump always priorise to launch the items on containers that already has that item inside.

There are two placement rings, the inner ring defines the looting region and the outer ring defines the container region.
NOTE: If the option "Two Zones" is activated, containers in the inner ring will not be considered by the Loot Pump.

If any empty container is found in the range, the Loot Pump will throw the loots in a random container in the range, which causes the item falls on ground. This can be intentionally used to make transport lines from multiple Loot Pumps.

The range, looting speed and the sound effects can be configured.

#Changelog:


v1.10:
-- Added an option to items being looted go through walls.

v1.09:
-- Added extra verification steps

v1.08:
-- Removed Pumpkin Lantern removed from the "look for items" list.
-- Targets with the tag "birds", "trap", "canbetrapped" and "smallcreature" will not be looted anymore.
-- Now the Loot Pump double-check the item "existence". This should reduce the incompatibility with mod that combine stacks.

v1.07:
-- Removed Life Giving Amulet from the "look for items" list. (Thanks for the suggestion @greeking13)
-- Added the option "Loot Equipment" (default: "Yes") on the mod configuration menu.
-- -- If this option is set to "No" the Loot Pump will not loot equipable items.

v1.06:
-- Removed Celestial Orb from the "look for items" list.

v1.05:
-- Removed Tooth Trap, Bee Mine and Bramble Trap from the "look for items" list.

v1.04:
-- Removed Thermal Stone, Glommer's Flower, Trap, Bird Trap, Tallbird Egg and Red Lantern from the "look for items" list.

v1.03:
-- Improved the container priority for the looting:
-- -- Now the priority is: Has a similar item > Will reduce the perish rate > Not full > Random;
-- Removed Woby, Chester and Hutch from the "look for containers" list;
-- Removed Lantern, Eyebone and Star-Sky from the "look for items" list.

[www.twitch.tv]
twitch.tv/gleenus
Populära diskussioner Visa alla (5)
17
4
13 okt, 2020 @ 6:41
中文翻译,Chinese Trans
Beethoven-此喵非彼喵
14
5 feb, 2023 @ 13:49
Some suggestions and bugs
Tonycola
0
29 apr, 2023 @ 23:00
有点容易冲突
沈城著名瓦匠
400 kommentarer
小兆蝉衣 12 jul @ 23:44 
--再续2
if not item.components.projectile then
item:AddComponent("projectile")
end
item.components.projectile:SetSpeed(LOOT_SPEED)
item.components.projectile:SetOnMissFn(ItemMiss)
item.components.projectile:SetOnHitFn(ItemHit)
item.components.projectile:SetHitDist(0.2)
item.components.projectile:Throw(container, inst, item)
if inst.isfiring==false then
inst.AnimState:PlayAnimation("aspiration")
end
end
end
end
end
小兆蝉衣 12 jul @ 23:42 
--续2只能发表1000个字符,2、剩下的部分只能分开发
local container
if LOOT_PUMP_TWOZN then
container=LookForContainers(inst, item, INNER_SCALE*OUTER_RANGE, OUTER_RANGE)
else
container=LookForContainers(inst, item, 0, OUTER_RANGE)
end
if container ~= nil then
item:AddTag("noclick")
item:AddTag("lootpump_oncatch")
item.loot_pump_oldphysics=item.Physics:GetCollisionMask()
if inst.loot_through_walls then
item.Physics:ClearCollisionMask()
item.Physics:CollidesWith(COLLISION.WORLD)
item.Physics:CollidesWith(COLLISION.SMALLOBSTACLES)
end
小兆蝉衣 12 jul @ 23:40 
2.local function DoUpdate(inst)
if inst:HasTag("burnt") then
return
end

if inst.components.machine.ison == true then

local item
if LOOT_PUMP_TWOZN then
item = LookForItems(inst, INNER_SCALE*OUTER_RANGE)
else
item = LookForItems(inst,OUTER_RANGE)
end
if item ~= nil then
小兆蝉衣 12 jul @ 23:39 
1.local ITEM_BLACKLIST = {
["lantern"]=true,
["chester_eyebone"]=true,
["hutch_fishbowl"]=true,
["heatrock"]=true,
["tallbirdegg"]=true,
["trap"]=true,
["birdtrap"]=true,
["glommerflower"]=true,
["redlantern"]=true,
["trap_teeth"]=true,
["beemine"]=true,
["trap_bramble"]=true,
["moonrockseed"]=true,
["amulet"]=true,
["storage_robot"]=true,
["pumpkin_lantern"]=true,
}
小兆蝉衣 12 jul @ 23:38 
我修改了一份,排除了瓦器人和一次拾去一整组的,但是我不会上传mod,我修改了这两个部分。有需要的可以自己对文件进行修改文件路径::steamapps\workshop\content\322330\2208128427\scripts\prefabs\loot_pump.lua
wherethesunnoshine 26 maj @ 10:00 
seems to work but please can you make it so Nautopilot won't be looted anymore?
also in case you haven't also make bull kelp not lootable otherwise it may cause a crash with a full chest.
EldVarg 8 maj @ 1:25 
Does this still works?
Compatible with Large Chest (HD) & Storeroom (New)?
1526406665 4 mar @ 0:02 
我回来了,将【loot_pump.lua】文件的这一行【aux=TUNING.PERISH_FRIDGE_MULT】改为【aux=tonumber(TUNING.PERISH_FRIDGE_MULT)】,即可解决问题
1526406665 3 mar @ 22:23 
我用怪物肉喂鸟换蛋,直接崩溃,必定崩溃

错误代码:

[00:04:01]: [string "../mods/workshop-2208128427/scripts/prefabs..."]:232: attempt to compare string with number
LUA ERROR stack traceback:
../mods/workshop-2208128427/scripts/prefabs/loot_pump.lua:232 in (upvalue) LookForContainers (Lua) <183-255>
inst = 111872 - loot_pump (valid:true)
item = 128241 - bird_egg (valid:true)
inner_range = 0
outer_range = 15
pos = (511.83, 0.00, 539.18)
ent = table: 0000000023ED30D0
cnt = table: 0000000023ED21D0
perish_rate = 1
best_preserver = nil
aux = 0.2
k = 11
v = 110573 - icebox (valid:true)
Mio iris 8 jan @ 5:37 
tomato seed and corn seed not work