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

    • 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
    • nbohr1more

      Trying to be productive on my down-time before Capcom releases Akuma and my son is constantly on my PC playing Street Fighter...
      · 1 reply
    • OrbWeaver

      Finally got round to publishing a tutorial on baking normal maps in Blender, since most of the ones we have are inaccessible or years out of date.
      · 2 replies
    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 4 replies
×
×
  • Create New...