饥荒联机版

饥荒联机版

2,063 个评价
Loot Pump
33
20
2
14
3
2
2
2
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
354.393 KB
2020 年 8 月 24 日 上午 11:02
2021 年 3 月 27 日 上午 7:26
11 项改动说明 ( 查看 )

订阅以下载
Loot Pump

描述
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
热门讨论 查看全部(6)
17
4
2020 年 10 月 13 日 上午 6:41
中文翻译,Chinese Trans
Beethoven-此喵非彼喵
14
2023 年 2 月 5 日 下午 1:49
Some suggestions and bugs
Tonycola
0
7 月 20 日 上午 10:14
Is is possible to make our own blacklist?
Jiraiya~
401 条留言
wherethesunnoshine 10 月 7 日 下午 9:54 
can you make boat_magnet_beacon not being dragged by the loot pump?
小兆蝉衣 7 月 12 日 下午 11: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
小兆蝉衣 7 月 12 日 下午 11: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
小兆蝉衣 7 月 12 日 下午 11: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
小兆蝉衣 7 月 12 日 下午 11: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,
}
小兆蝉衣 7 月 12 日 下午 11:38 
我修改了一份,排除了瓦器人和一次拾去一整组的,但是我不会上传mod,我修改了这两个部分。有需要的可以自己对文件进行修改文件路径::steamapps\workshop\content\322330\2208128427\scripts\prefabs\loot_pump.lua
wherethesunnoshine 5 月 26 日 上午 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 5 月 8 日 上午 1:25 
Does this still works?
Compatible with Large Chest (HD) & Storeroom (New)?
1526406665 3 月 4 日 上午 12:02 
我回来了,将【loot_pump.lua】文件的这一行【aux=TUNING.PERISH_FRIDGE_MULT】改为【aux=tonumber(TUNING.PERISH_FRIDGE_MULT)】,即可解决问题
1526406665 3 月 3 日 下午 10: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)