Entity Limit

Limit entities per player

Total Downloads: 703 - First Release: Jun 4, 2016 - Last Update: Jul 20, 2018

5/5, 11 likes
  1. Will take a look at it in around 16 hours ^^
     
  2. Do we have a list somewhere of the prefabs for building like doorways, windows, walls, foundations and such? I'd really like to slap a limit so people aren't building these massive bases that are lagathons.
     
  3. I too would like to limit how big players can build bases. I'm not as concerned with how many deployables (quarries, furnaces, sleeping bags, etc.) they place. Is this the correct plugin for that?
     
  4. We also do "ent kill" cleanups on bases and the odd foundation/highwalls that people leave from raids and/or firefights and I'm pretty sure they don't get credit for those either.
     
  5. Well I run OnEntityDeath so if ent kill does not trigger it's not my fault ^^
     
  6. Foundations aren't an item so it might be a bit difficult.

    Anyway, here's the items list Oxide API for Rust

    I too would like to limit foundations.

    I'm interested in implementing this for the coming wipe. Anyone got any ideas of roughly what sizes of base = what ent limit? I'm sure as soon as I tell my people they have a 1000 ent limit or something similar they'll all ask what size base that is so they can plan properly.
    [DOUBLEPOST=1475593773][/DOUBLEPOST]What would also be cool is the ability to have an entity limit within a zone, I've been trying to find a way for players to put down a max of 4 small boxes in a pvpgod pvegod undestr town, I don't want nobuild or nodeploy because it stunts the growth of the town, and I don't want to have to always be online to paste in my premade huts. Having it coded would be sweet.
     
  7. I figure if I implement this then clans will just not clan up and pool their tool cupboard/high wall usage, I guess it'll be a case of finding a numbe rof high walls that doesn't limit solo players too much but also doesn't allow non clanned teams from making the same old giant compounds they've always made
     
  8. not work with cupboard.tool.deployed

    and after remove this

    [Error] Failed to call hook 'OnEntityDeath' on plugin 'EntityLimit v0.5.0' (NullReferenceException: Object reference not set to an instance of an object)
     
    Last edited by a moderator: Oct 9, 2016
  9. Try "cupboard.tool"
     
  10. Last edited by a moderator: Oct 16, 2016
  11. "cupboard.tool.deployed": 3,
     
  12. So what?
    It works for you?
    My plugin does not block the construction over the limit, only alerts
     
  13. Yes, you have right!
     
  14. Do other entities get limited ?
     
  15. Почему это не работает stash.small?
     
  16. Code:
    {
      "MaxLimits": {
        "rock": 10,
        "torch": 10
      }
    }
    This dont work when you craft this 2 entities.
    I wanna prevent the spamming of entities that lags the server if 2 or 3 are trying to perjudicate the srv.


    Oww...
    The plugin is only works when deploying on world?
    or in crafting too ?
     
  17. It is when you place entities.
     
  18. PaiN I want to set that 1 Player can deploy just 1 Smal stash.

    and I sets this:
    Code:
    {
      "MaxLimits": {
        "gates.external.high.stone": 20,
        "gates.external.high.wood": 100,
        "wall.external.high.stone": 100,
        "stash.small": 1,
        "small_stash_deployed": 1
      }
    }
    but Im having this errors:

    WHEN I REMOVE 1 CURRENT STASH
    Code:
    (04:52:57) | [Oxide] 04:53 [Error] Failed to call hook 'OnRemovedEntity' on plugin 'EntityLimit v0.5.0' (NullReferenceException: Object reference not set to an instance of an object)(04:52:57) | [Oxide] 04:53 [Debug] at Oxide.Plugins.EntityLimit.EntityDestroyed (.BaseEntity entity) [0x00000] in <filename unknown>:0at Oxide.Plugins.EntityLimit.OnRemovedEntity (.BaseEntity entity) [0x00000] in <filename unknown>:0at Oxide.Plugins.EntityLimit.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    WHEN I TRY TO DEPLY MORE THAN 1 STASH:

    Code:
    (04:53:15) | [Oxide] 04:53 [Info] [Entity Limit] 1(04:53:25) | [Oxide] 04:53 [Info] [Entity Limit] 1
    (04:53:29) | [Oxide] 04:53 [Error] Failed to call hook 'OnEntitySpawned' on plugin 'EntityLimit v0.5.0' (NullReferenceException: Object reference not set to an instance of an object)(04:53:29) | [Oxide] 04:53 [Debug] at Oxide.Plugins.EntityLimit+PlayerLimit.Modify (.BasePlayer player, .BaseEntity entity) [0x00000] in <filename unknown>:0at Oxide.Plugins.EntityLimit.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in <filename unknown>:0at Oxide.Plugins.EntityLimit.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    and With this error, I have the Advice of the max amount but is Deployed anyway how many as I want...
     
  19. same problem on me server
     
  20. With the stash?