Jump to content
The Dark Mod Forums

Triggering visportals


Springheel

Recommended Posts

I have a portal that I would like to close if the player is approaching from one direction, but leave it open if they're coming from the other. Is it possible to link triggers to visportals? Since portals are worldspawn I assume you can't just target them directly, but is there a way to target a func_portal attached to the visportal?

Link to comment
Share on other sites

The more I think of it, the more I think triggering it won't work....I can't use a trigger_multiple, because that would just turn it on and off if the player stood there.

 

Bleh.

 

I'm trying to close a portal in a long vent to keep sound from the room below from going straight to the player. But there's a long view from the opposite side, so I can't use a func_portal (unless I can figure out how to trigger a fake 'window' to hide the closed visportal).

 

We really, REALLY need to add some sound loss controls to visportals now that we have the source.

Link to comment
Share on other sites

 

I'm trying to close a portal in a long vent to keep sound from the room below from going straight to the player. But there's a long view from the opposite side, so I can't use a func_portal (unless I can figure out how to trigger a fake 'window' to hide the closed visportal).

Don't doors have a spawnarg that controlls sound loss while closed and a different arg while open? I think it's something like "loss_open" and "loss_closed".

 

But I hear ya. Visportals ought to be easier to control.

yay seuss crease touss dome in ouss nose tair

Link to comment
Share on other sites

The training mission uses func_portals targeted to func_statics in the windows of the tower in the archery area. Those func_statics are just black, but you can paint anything you want on the side facing the player, for the case you're describing.

Link to comment
Share on other sites

The training mission uses func_portals targeted to func_statics in the windows of the tower in the archery area. Those func_statics are just black, but you can paint anything you want on the side facing the player, for the case you're describing.

 

Ok, I'll check out how they did it; I haven't been able to get it to work.

 

Don't doors have a spawnarg that controlls sound loss while closed and a different arg while open? I think it's something like "loss_open" and "loss_closed".

 

Yes, but that only works for doors. We need the same functionality for all visportals.

Link to comment
Share on other sites

Ok, the func_static was inside the visportal, and had a "hide" "1" spawnarg at it. Once I did the same I got it to work. Thanks!

Link to comment
Share on other sites

The more I think of it, the more I think triggering it won't work....I can't use a trigger_multiple, because that would just turn it on and off if the player stood there.

 

Bleh.

 

I'm trying to close a portal in a long vent to keep sound from the room below from going straight to the player. But there's a long view from the opposite side, so I can't use a func_portal (unless I can figure out how to trigger a fake 'window' to hide the closed visportal).

 

We really, REALLY need to add some sound loss controls to visportals now that we have the source.

 

Definitely! Not only open/closed, but "muffle" etc.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Spring, you CAN easily use trigger multis.

Have a trigger_multi and target A and B.

A is the thing you want to toggle.

B is the entity that changes the trigger_multi's target to nothing, thus disabling the trigger_multi. I can't remember the entityname. Something like target_changespawnarg or something.

 

 

I used it for the trap in phrase book.

Works beautifully.

 

Then you just need another triggermulti setup which gets enabled when the other TM gets disabled.

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

That'd work too, but I was going to say you could also use the info_location script calls. Then you can have the script fire when you enter the right location (triggering the thing on), and trigger it off when you exit it at any point (or some variation of that). The trigger is sensitive to your location AND you don't have to worry about repeat fires (even if to empty targets, you're still hogging resources with it) or mis-toggles.

 

Edit: I would go so far to say that any time the idea of a trigger_multiple comes to mind, immediately think if an info_location script could do the job instead... unless you want something smaller than the location or you don't want to make a script.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

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

    • The Black Arrow

      Hey @nbohr1morehow come the zombies in The Dark Mod don't have a "resurrection" mechanic to it, similar to how Thief has it?
      They're quite a weak creature as of right now, it's merely a walking corpse that slashes you, making attacking them to kill them an actual strategy.
      Would be better if they had some cool mechanism to it that truly makes them a danger, such as the resurrection idea itself.
      · 2 replies
    • Ansome

      Query: when was the last time a zombie in a video game was unnerving or scary to you? I'm chipping away at my anniversary submission and I've been trying to gather opinions on the subject. I'm perfectly capable of lighting them well, changing their sfx, and creating effective ambience, but I'm worried that zombies at their core are just too overdone to be an effective payoff to the tension I'm creating.
      · 4 replies
    • nbohr1more

      The Lieutenant 3 is out! Congrats Frost_Salamander! ( raising awareness )
      · 2 replies
    • OrbWeaver

      Has anyone had any luck with textures from Polyhaven? Their OpenEXR normal maps seem too washed out and give incorrect shading in the engine.
      · 5 replies
    • datiswous

      I tried to upscale the TDM logo video. First try:

      briefing_video.mp4 You can test it ingame by making a copy of the core tdm_gui.mtr and place it in your-tdm-root/materials/ , then edit line 249 of that file into the location where you placed the new briefing.mp4 file.
      What I did was I extracted all the image files, then used Upscayl to upscale the images using General photo (Real-Esrgan) upscale setting and then turn it back into a video.
      I might have to crop it a bit, the logo looks smaller on screen (or maybe it's actually better this way?). My video editor turned it into a 16:9 video, which I think overal looks better than 1:1 video of original.
      · 1 reply
×
×
  • Create New...