饑荒聯機版

饑荒聯機版

Loot Pump
400 則留言
小兆蝉衣 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)
Mio iris 1 月 8 日 上午 5:37 
tomato seed and corn seed not work
Mio iris 1 月 8 日 上午 5:36 
Root Pump not work ice box
Varrgas 2.0 1 月 2 日 下午 2:30 
@nanananana
Learn how to use a mod, it work fine
an 2024 年 12 月 23 日 下午 2:05 
doesn't work
MEXAH 2024 年 8 月 18 日 下午 3:37 
It try to send my W.O.B.O.T. to nowhere, fix it please.
Username 2024 年 7 月 4 日 上午 7:40 
lol this animation is so funny i can sit and watch for dAySSS
Username 2024 年 7 月 4 日 上午 3:08 
Hey do you think you can add the Furnace to the Container Blacklist
Droider 2024 年 2 月 24 日 下午 1:26 
no longer able to config
憨崽可乐 2023 年 12 月 21 日 下午 8:57 
为什么会崩啊,一收集就崩了
destructorzk1 2023 年 12 月 8 日 上午 10:08 
cara valeu dms, isso facilitou muito a minha vida tmj
青羽化霖 2023 年 11 月 29 日 下午 6:43 
good
Leonardpio 2023 年 10 月 12 日 上午 5:59 
broken mod
3GuB 2023 年 9 月 20 日 上午 9:16 
game crashed when it tried to pick up pig skin
iTcT 2023 年 4 月 28 日 下午 8:18 
箱子里面没有的物品不知道收集到哪里了,消失了
TheLostEnderman 2023 年 4 月 27 日 上午 11:13 
@Gleenus or @Jesz or @Catherine this dosent work anymore bye
qsnbcm 2023 年 4 月 3 日 上午 3:52 
我需要中文,对此我可以提供帮助
I need Chinese, and I can help with this
远行 2023 年 3 月 26 日 下午 10:32 
可以添加一组一组拾取物品吗,一个一个的太慢
Valoneu 2023 年 3 月 26 日 上午 2:15 
i have it and it works fine with like 30+ more mods
Willardy 2023 年 2 月 24 日 下午 6:37 
@Gleenus
Mod atualmente nao funciona, gostei bastante da ideia e utilidade dele, porem sempre que utilizo vem o crash no servidor.

Mod currently doesn't work, I really liked the idea and use it, but whenever I use it, the server crashes.
2023 年 1 月 29 日 上午 8:18 
这个版本基本是什么都往箱子里放,不会只拣箱子里有的
宿嚣 2023 年 1 月 28 日 上午 2:28 
可以设置成比如 我范围内的箱子里没有黄金 它就不会去拾取黄金给我分配到空箱子里
2023 年 1 月 18 日 上午 9:21 
不能用了吗,会导致游戏崩溃
樱花妖月 2023 年 1 月 14 日 上午 5:15 
The author greatly, hello, can add some new features, such as can now be a one-time absorption of a group of items, many will open the stack limit 999, but it was done one by one, the efficiency is very slow, thank you.
The D&D Dolphin 2023 年 1 月 9 日 上午 9:59 
i have reason to believe this mod caused an area of my world to become a memory leak zone,
a spot of land near my oasis sees it's awake entity count rapidly skyrocket which starts eating the framerate, this only occurred after enabling this mod and using the loot pump for a bit, i have since disabled this mod but the issue still remains.
红尘仙人掌 2022 年 12 月 27 日 下午 8:13 
在哪个工具栏建造呀
biu 2022 年 12 月 19 日 上午 10:07 
can disable picking up super packbox?
KyritoW 2022 年 12 月 11 日 下午 10:24 
Testando aq para ver como será :3
RamRod 2022 年 10 月 10 日 下午 3:20 
It is no longer compatible with Tropical experience. I just tested it.
TrHeo 2022 年 7 月 31 日 上午 5:10 
disconnect when loot
BelzebuB 2022 年 7 月 26 日 上午 12:44 
Mod drop the game
whjlinux 2022 年 5 月 24 日 下午 7:40 
The author is great, can you make a single player, I love your mod so much, it seems that there is also a single player
Paulistana 2022 年 5 月 20 日 下午 4:56 
ATUALIZA O MOD GARAIO
kuluopai󰀍 2022 年 5 月 14 日 下午 9:38 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1275167632
它会尝试给宠物身上的物品栏塞东西,
It will try to stuff the pet's inventory
「」 2022 年 5 月 6 日 上午 4:17 
Crashing with archery mod ... be careful :)
欲言又止的大佬 2022 年 5 月 1 日 上午 5:21 
Sometimes it's not picked up in range
󰀃墨白 2022 年 4 月 30 日 下午 10:27 
模组崩溃了是什么情况?
kevin 2022 年 4 月 28 日 下午 3:19 
@Gleenus can you please add an option to set the radius to a square would be pretty nice if so
朋也 2022 年 4 月 19 日 下午 10:34 
Can you add an option to control that if there are no same items in the container, they will not be picked up until the player puts one in the container
DONG LE 2022 年 4 月 6 日 上午 2:33 
Why can't I find the predator after I add mod
朋也 2022 年 3 月 11 日 下午 6:19 
Can you support pick up whole stack at a time?