Solved Place ladders anywhere

Discussion in 'Plugin Requests' started by elninost0rm, Aug 27, 2015.

  1. Hi all,

    In light of the changes today, 8/27, which require building privilege to use ladders, is there anyone that can alter the Limited Ladders plugin to the way it was before today? IE: NOT require a cupboard?

    @VVoid

    Thanks.
     
  2. I would like this as well, blocking ladders is the dumbest change Rust has had in forever.
     
  3. Seems it's done also on the client side. Nothing i can do here i suppose :(
     
  4. Thanks for looking into it! My population will suck it up. ;)
     
  5. I have an idea on how to allow it again. Could we not check if the player has a ladder as it's active item and add him to the cupboards temporarily? As soon as he unequips it, remove him from cupboards? I'll do some testing tonight, not sure we have all the required hooks to detect equipping/unequipping items reliably...
     
  6. We don't have the hooks to detect it reliably, and setting it to bypass the building permission won't work because it is doing both a client-sided and server-sided check so even if you enable it on the server, the client will still prevent it :( (as mentioned by VVoid)
     
    Last edited by a moderator: Aug 28, 2015
  7. What I mean is simply add the player to the auth list on the cupboard, surely this can be done server-side and work for the client as well?

    Hooks or not, I suppose we could use OnPlayerInput to check if he is holding a ladder and then simply poll via timer every 250 ms or so to see if he still holds it once he does... wouldn't that work? It's hackish I concur, but I don't see why it wouldn't work. Polling every 250 ms wouldn't hurt performance esp if it only happens when a player has a ladder and unless a player lags VERY badly, I don't see how it could be exploited.
     
  8. What about the remove tool, people will go to a home, equip a ladder, and they'll be authed so they'll have access to use /remove
     
  9. Obviously there are a lot of things to think about... I suppose a plugin can intercept slash commands? Or is that even possible?
    [DOUBLEPOST=1441076235,1440818266][/DOUBLEPOST]Oh! Just thought of a sure and easy way. Just use on user input to trap click like Build does and if the held entity is a ladder just place it by code and remove it from player inventory.
     
  10. Placing it on the correct position is going to be tough though as the building guide doesn't work properly when building is blocked, but doing that would be a lot safer than authorizing players to cupboards when they have a ladder out.
     
  11. I did a first version, waiting for approval. I simply put it straight up vertically and it seems to work pretty well. I couldn't find a way to use the guide so I just went with raycast and set it straight up there the ray hits.

    Already did a new version I'm working on that has a blacklist of target entities and doesn't allow placing ladders in radiation zones. It's pretty swell :) I'm running it now on my server with the high walls blacklisted and heck, it's even better than pre-patch :) lol
    [DOUBLEPOST=1441120166,1441097746][/DOUBLEPOST]LadderAnywhere for Rust Experimental | Oxide

    I'll post a new version tonight with an exclusion list of entities/prefabs that ladders cannot be placed on.
     
  12. what happend to this?
     
  13. Wulf

    Wulf Community Admin

    Unmaintained.
     
  14. damn, would really like this mod :-/
    [DOUBLEPOST=1490756128][/DOUBLEPOST]

    could i possibly get this mod from you ?? or did you abandon it
     
  15. Wulf

    Wulf Community Admin

    He hasn't been on since October of last year. ;)
     
  16. Id also like the ability to place ladders anywhere :)