Jump to content

Looting sleepers while asleep

Pending 3.1.6

Rusty Hook
Rusty Hook

Posted

Hello Nivex,

When my players loot the sleepers while they are still sleeping(because they can, dunno if that's intended), they can take the whole kit off the sleeper, and it equips the kit over top of the kit that they are already wearing. Like literally they will be holding like an AK, a Minigun, and an F1 grenade all at the same time plus have a heavy scientist suit over whatever armor was already being worn. I'm sure you can already see why that's an issue for me. Is there some way that I can fix this?

Rusty Hook

Posted

Without disabling the sleepers that is..... I like the sleepers.

nivex

Posted (edited)

hi, your players are able to wear two kits simultaneously simply by looting a sleeper? this is not making any sense to me 😛

ya, they should be lootable when they're asleep.

Edited by nivex
Rusty Hook

Posted

Yeah, they are just looting the sleepers without killing them, and it's giving them the sleepers' kits over top of their kits. I am using K1lly0u's Rust Kits plugin to supply kits to NPCs, but in the config, it seems the two are compatible.

nivex

Posted (edited)

they should be able to loot the sleepers without issue, and the Kits plugin works fine with RB.

not sure what would allow them to get items over the top of their kits when the game explicitly blocks that already. RB would not be what is moving the item to the players inventory though. the game or another plugin would be doing that.

seeing multiple weapon models at the same time is normal, being able to equip multiple different weapons in the same belt slot is not normal though. the same with armor.

that is likely a plugin with CanWearItem or CanEquipItem in the .cs file that uses return true; where it should be using return null; 

that would cause the game to bypass the behavior that would prevent this issue otherwise. it's easy to get lost in code, so I recommend unloading any plugins with CanWearItem or CanEquipItem in their .cs files.

this is not the only way for that to happen though. failing the above, you would have to unload plugins until you found the cause.

Edited by nivex
  • Like 1
Rusty Hook

Posted

Thank you, Nivex. Good looking out on the update too. I installed it and am still able to loot the sleepers even after setting it to false in all the profile configs. So I'll have to do some more digging because something has to be affecting this; I just still don't know what exactly.

nivex

Posted

hi, I just looked and the lootable option doesn't work. either way, vanish or noclip will bypass it when it does work.

Rusty Hook

Posted

Hey Nivex,

So got an update on this. Been doing more testing and even with looting sleepers disabled in all the configs and every other mod on the server disabled as well, players are still able to loot the sleepers' kits right off them and cause the glitch to occur.

nivex

Posted

heya, I will fix the lootable sleepers option again 😄 noclip or vanish will still bypass this option once fixed.

the glitch is caused by another plugin. the fix for the lootable option will prevent it from happening, but it won't fix the plugin that caused it to happen.

Rusty Hook

Posted

Awesome, appreciate it man. Testing some more right now and it seems to be K1lly0u's Rust Kits causing the glitch. All I have loaded on my fresh server is RaidableBases, CopyPaste, and Kits. And without kits I haven't been able to get it to glitch but as soon as I load kits I got the glitch to occur twice in a row. However, the sleepers are lootable even with only RaidableBases and CopyPaste loaded on the server and the lootable option set to false in every config.

Rusty Hook

Posted

For the record I only use K1lly0u's Rust Kits to populate loadouts because there's no options for skin ID's in the configs for RaidableBases, otherwise I would just set all the loadouts manually in the configs which I assume would fix the glitching since Kits wouldn't even be used. That's how I have every event on my servers setup rather than using K1lly0u's Rust Kits because using Rust Kits with those plugins also creates issues.

nivex

Posted

heya

as mentioned, the lootable option is fixed in the next update. this option will not fix your issue, it can only prevent it. like turning off the water to a leaking pipe, the leak (bug) still needs repaired or the pipe replaced.

I see nothing in the Kits plugin that could cause this to happen.

my understanding from your initial report is that a person's inventory can contain 2 items in the same exact inventory slot. seeing two different weapon models is normal, having two different items equipped in the same slot is not. that requires something to bypass the game's native inventory/wear validation, such as another plugin overriding CanMoveItem or CanWearItem. neither of which is used by the Kits plugin. the Kits plugin contains CanWearItem, but not as a hook, only as an internal helper method.

send me the configs, data files and plugin .cs files for all 3 plugins in a private message. Kits, RaidableBases and CopyPaste. if I am unable to reproduce with your exact files, then the issue is still caused by another plugin (or harmony mod). either way, I don't mind helping you locate this issue. it's interesting enough =p

nivex

Posted

please do not attach the files here, send in a private message. if you can zip/archive them all together that would make it easier =]

Rusty Hook

Posted

The items don't show up on the toolbelt itself, they appear in the players inventory as they normally would. However in game you can visually see yourself holding and wearing all these things and it's more than two. When I was getting the glitch to occur I had a M249, a minigun, and F1 grenade in my hand at once and it seemed the weapon silencer I had on the M249 was like glitched to the center screen. Also, it happens when you hold "alt" and loot the sleepers. I will send you those files. But, I still firmly standby that it's definitely kits causing this.......

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.1m
Total downloads
Customers
12.1k
Customers served
Files Sold
171.6k
Total sales
Payments
3.7m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.