Jump to content

Add Stack Everything support

Not a Bug 2.3.5

Kreavles
Kreavles

Posted

Hello, would it be possible to add support for the Stack Everything mod by Scalbox? Currently, a player can place a deployable such as a furnace up to the limit i've assigned them. Then you can use the stack everything mod to bypass the restriction. 

Here's a clip of a player doing it, https://medal.tv/games/rust/clips/ltDX3qVbp8krmtWGG?invite=cr-MSxkYncsNDA4NTI1NDkz

Or would it be better to have Scalbox add support on his end?

Thanks

MON@H

Posted

I can't (and shouldn't) control what entities other plugins are spawning. 

Limit Entities plugin is using hooks:
CanBuild - to prevent player from placing an entity
OnEntitySpawnedOnEntityKill - to track spawned/destroyed entities.
Tracking entities relies on OwnerID, so if this field is unset (OwnerID == 0) when entity is spawned (entity.spawn()) it will be ignored. My guess is that's what happens now. If you want these entities to be tracked, ask author to set entity.OwnerID = player.userID before calling entity.spawn(). This will make them trackable by Limit Entities.

However preventing players from spawning entities (to respect the limits) is a bit more complicated, the "easiest way" atm is to call LimitEntities.Call("CanBuild") or you may ask author to reach me if he need some specific api call, I can add it.

MON@H

Posted

Changed Status from Pending to Not a Bug

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.4m
Total downloads
Customers
10.8k
Customers served
Files Sold
155.3k
Marketplace sales
Payments
3.3m
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.