1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

[Mapping Inquery]Placing ent Combine Locks and Triggering them within Hammer

Discussion in 'Discussion' started by Jeffman12, Jan 10, 2013.

  1. I am working on a map at the moment, I'm creating an array of prison cells I would like to have them all locked down at the press of a button yet not have an effect on the function of combine locks, and maybe even perhaps utilize them as they are in clockwork.

    Is there currently an existing method by which to do this?

    In summation, I'm asking:

    When a door's lock status is toggled by a map trigger, does the combine lock itself toggle correctly?

    -if not-

    Can a map trigger be placed ahead of time that can influence the state of the combine lock?

    -if not-

    Can I in some way pre-place combine locks on the doors and prevent ingame placement on specific doors?
     
  2. RJ

    RJ no pay Legend Clockwork Customer

    Combine locks interact with the ent_door and toggle the lock regardless of it being locked/unlocked when the map is loaded.
     
  3. Razor

    Razor Guest

    I guess you'd just have to inject lua trough the map, to place them.
    WHen a lock is placed it already prevents placing more.

    However if it is destroyed and then placed again when map loads (because of your injection) you will get two locks.

    Might need to edit the locks code slightly to make them interact with a parameter added to the door via mapping, that will prevent locks to be manually placed.

    But removing them still is an issue.

    You might need to work on a logic entity that prevents removing and allows placing only if lock is not actually there.

    Anyway I am not even sure if I expressed myself correctly as I'm not some kind of super mapper, and these were just ideas.
     
  4. I believe I understood what you meant, so I'll need to see if one of my more Lua savvy friends can code a combine lock that accepts the status of the door and can toggle it as well rather than strictly imposing it alone and not being affected by trigger status on its parent door.
     

Previous Readers (Total: 0)