Jump to content
The Dark Mod Forums

Recommended Posts

Posted

If I have a wardrobe with double doors, how do I handle the atdm:target_set_frobable entity?

 

Right now each door has a "trigger_on_close" "1" spawnarg on it, but instead, each door triggers the atdm:target_set_frobable on and off.

 

So if you open one door, you can frob things in the wardrobe. But if you then open the other door, you can't frob things anymore. Close one of the doors, and then you can.

 

I don't want to have to frob_peer both doors to open at the same time, although I will if there's no other option.

Posted

Short answer:

 

Remove the target and trigger_on_close on DoorB.

 

Long answer:

 

Apart from the defaults, make sure these spawnargs are set as follows:

 

DoorA:

 

frob_peer DoorB

 

immune_to_target_setfrobable 1

 

lock_peer DoorB

 

open_peer DoorB

 

target FrobControl

 

trigger_on_close 1

 

 

DoorB:

 

frob_master DoorA

 

frob_peer DoorA

 

immune_to_target_setfrobable 1

 

lock_peer DoorA

 

open_peer DoorA

Posted

Sorry if I'm being obtuse, but...

 

Remove the target and trigger_on_close on DoorB.

 

But then if the player opens only DoorB then they won't be able to frob anything?

 

Long answer:

 

Won't that result in Door A opening when Door B opens though? If that's the only way then I'll do that, but I was hoping the doors could still operate independently.

Posted

Ah! You want the doors to open independently?

 

I answered the way I did because all of the prefab cabinets are set up to open both doors at the same time regardless of which one you frob.

 

----------------

 

If you want each door to act independently, then you're going to have to get tricky. (Which is probably why the prefabs treat 2 doors as one; it's simple.)

 

I don't think you can do this just by using spawnargs. You'll have to get triggers or a script involved somehow, since something is going to have to track whether the other door is open or closed.

Posted

I'd use the stim/response system instead, so I could make the objects within frobable and remain so (since once the player sees them, it's no surprise if they grab them, even if they choose to close the door).

 

To do that, put a trigger response on the item(s), with "Set Frobable" checked on. Target them each from both doors. Set the doors to trigger on opening (the default: "trigger_on_open" "1").

 

This way the first door opening will make everything frobable, and the next door will be redundant, and closing will have no impact. It's unlikely players will frob through the doors since the doors are frobable themselves, and if they do, so be it, they already saw the stuff and know what's coming.

"The measure of a man's character is what he would do if he knew he never would be found out."

- Baron Thomas Babington Macauley

Posted
What about making two frob controls, one for each door? left door -> left frob control, right door -> right frob control.

 

Yeah, maybe if I make the frob-blocks small enough that would work. I'll give it a try, thanks for the idea.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • JackFarmer

      "The Year of the Rat." 
      😄

      Al Stewart must be proud of you!
      Happy testing!
      @MirceaKitsune
      · 1 reply
    • datiswous

      I posted about it before, but I think the default tdm logo video looks outdated. For a (i.m.o.) better looking version, you can download the pk4 attached to this post and plonk it in your tdm root folder. Every mission that starts with the tdm logo then starts with the better looking one. Try for example mission COS1 Pearls and Swine.
      tdm_logo_video.pk4
      · 2 replies
    • JackFarmer

      Kill the bots! (see the "Who is online" bar)
      · 3 replies
    • STiFU

      I finished DOOM - The Dark Ages the other day. It is a decent shooter, but not as great as its predecessors, especially because of the soundtrack.
      · 5 replies
    • JackFarmer

      What do you know about a 40 degree day?
      @demagogue
      · 4 replies
×
×
  • Create New...