Hammer Time

Tweak "Demolish" and "Rotate" time when using the hammer

Total Downloads: 4,348 - First Release: Feb 19, 2016 - Last Update: Jun 30, 2018

5/5, 18 likes
  1. Shady757 submitted a new resource:

    Hammer Time - Tweak "Demolish" and "Rotate" time when using the hammer

    Read more about this resource...
     
  2. I install it and set time to 172 800(2days) in config file but its not work wher can i choose -1 or 0
     
  3. Wulf

    Wulf Community Admin

    Did you reload the plugin after editing the config file?
     
  4. Yep :(
     
  5. Shady757 updated Hammer Time with a new update entry:

    1.0.1

     
  6. I've tried do this with: block.SetFlag(BaseEntity.Flags.Reserved1, true);
     
  7. Do i need any other plugin to get this to work?
     
  8. What do you mean it doesn't work? Is it just de-activating the option after 10 minutes?


    Nope, this is a standalone plugin.

    P.S, sorry for not replying sooner, apparently you don't get subscribed to your plugin's threads automatically.
     
  9. Shady757 updated Hammer Time with a new update entry:

    1.0.2

     
  10. Can other players demolish my constructions with hammer if timer is't ran out yet?
     
  11. I believe they can, but only with building privilege.
     
  12. Shady757 updated Hammer Time with a new update entry:

    1.0.3

     
  13. Maybe need hook Hammer deploy (slot choose with hammer), then set rotate/demolish flags to building blocks by radius? Some example in /remove all.
     
  14. This plugin have such a huge potential.

    -Fix hammer to be designated to building owner with EntityOwner(Doesn't require any database longer).
    -Manage to make the entity only allowed for that owner to remove/optional building priv(all cupboards).
    -Get it working thru a restart. -Entityowner could potentially fix that(?)

    If you get this done. You're the man.
     
  15. I appreciate that you see the potential in this plugin. It was a bit of a rush job, and I wish I would've figured out some of these things (server restart, specifically) a bit more before posting it. I saw it requested, and from the small bit I had seen, at the time, in the code, it seemed really easy to do. While I wasn't wrong, there have been some unexpected difficulties.


    As for making this compatible only with the owner (Entity Owner integration isn't required anymore whatsoever, because of rust changes), that should be fairly easy, as there's already hooks for it. The tool cupboard part will be easy as well, provided that I just make it require building privilege, and not all cupboards in a radius. We'll have to see about the cupboards.

    Furthermore, I still haven't figured out a good way to actually reset building block's timers after a restart. Perhaps a hook could be added to Oxide for the "Load" or "ServerInit" of a block. I don't see how Entity Owner could help with this, however.


    EDIT: You're already required to have building privilege to rotate or demolish things, in the game itself.
     
    Last edited by a moderator: Feb 24, 2016
  16. Where is the demolish option? Can't see any option to demolish
     
  17. When you place something, by default, you have 600 seconds to remove it with your Hammer, by hovering over it and holding right click, then selecting "Demolish". This plugin gives you the option to lower or raise that time.

    EDIT: Perhaps you were trying to demolish something that isn't a building block, e.g External Stone Walls as of a recent update no longer have any hammer options.
     
  18. Hmm strange i dont have an option to demolish , they must of removed it?
     
  19. Definitely isn't removed. Make sure your config doesn't have the "DemolishTime" setting at 0.
     
  20. Hey Shady. I am getting reports from my users that they cant see the option to demolish and the timer is set to 600.0. Here is a screenshot of what I see. I also spoke with another server owner and he is seeing the same thing and his users cannot demolish either. http://i.imgur.com/tPXEEmc.jpg