Admin Doors?

Discussion in 'Mapping Questions & Discussion' started by Sir Tin, Aug 15, 2014.

  1. Sir Tin

    Sir Tin L1: Registered

    Messages:
    3
    Positive Ratings:
    0
    Is there anyway to make a Door that only admins may access or a teleporter of some sorts?
     
  2. Crash

    aa Crash func_nerd

    Messages:
    3,124
    Positive Ratings:
    4,693
    Other than giving it a keypad of sorts that you have to enter a code to use (or something similar), you're probably going to have to use a plugin of some kind.

    Admins should be able to use noclip, though. You can always just not build a way in at all.
     
  3. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,741
    have a func_button that only the admin knows about, then give it OnDamaged | !activator | TargetName | Clive and set it to only once. You'll need a filter_activator_name, call it filter_clive and set the filter name to Clive. Then on the door's trigger set the activation filter to filter_clive. Now only the first person to shoot that button will be able to open the door. (Anyone will be able to walk through, but only they'll be able to open it)

    You can make this harder for people to figure out by using triggers so players have to stand in the right place to shoot the button, or outputs to enable/disable the button so they have to do it quickly, or by adding more buttons that enable each other in sequence.
     
  4. henke37

    aa henke37

    Messages:
    1,855
    Positive Ratings:
    430
    Or just ask the admin to ent_fire an Open input to the door entity.
     
  5. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,741
    That requires sv_cheats to be 1, which means regular players can do all sorts of abuse, like toggling noclip on themselves.
     
  6. xzzy

    aa xzzy

    Messages:
    815
    Positive Ratings:
    393
    A SourceMod plugin is probably the best option, less hacking involved, and it could be used on any map.
     
  7. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    832
    I found a page on the Allied Modders (SourceMod) forum that has a brief plugin that can set the targetname of a SourceMod admin to 'donator'. Of course, you could change that to whatever you wanted, and use the filter logic YM suggested. It would be automatic, without risk of players finding the secret button, but server operators would need to install the plugin.

    https://forums.alliedmods.net/showthread.php?t=176201

    It's from January 2012, though, so it may be a bit out of date. Fingers crossed!
     
  8. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    934
    Positive Ratings:
    901
    The problem with buttons and triggers would be that somebody could just decompile the map and find out all of that.
    The plugin that worMatty linked is probably the only save method.