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

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
2.9m
Total downloads
Customers
11.9k
Customers served
Files Sold
169.1k
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.