Need help with excursion funnel control
Quote from vertigoelectric on May 29, 2011, 3:25 amI've been at this for far too long so I've decided to come ask for help.
I've got a tractor beam (excursion funnel, but I'll call it tractor beam here) and it's disabled at first. I then have a button that you press that turns it on for 10 seconds and then it turns off. That all works fine.
I then have a floor button. This is where it gets annoying. The floor button is supposed to reverse the beam (orange/negative) when pressed and set it back positive when not pressed. It does. The problem is, it turns the beam ON even if the other button has not yet activated it. The floor button should ONLY work if the tractor beam is already on and should turn off after its 10 second delay NO MATTER WHAT.
Any help would be appreciated.
I've been at this for far too long so I've decided to come ask for help.
I've got a tractor beam (excursion funnel, but I'll call it tractor beam here) and it's disabled at first. I then have a button that you press that turns it on for 10 seconds and then it turns off. That all works fine.
I then have a floor button. This is where it gets annoying. The floor button is supposed to reverse the beam (orange/negative) when pressed and set it back positive when not pressed. It does. The problem is, it turns the beam ON even if the other button has not yet activated it. The floor button should ONLY work if the tractor beam is already on and should turn off after its 10 second delay NO MATTER WHAT.
Any help would be appreciated.
Quote from CaretCaret on May 29, 2011, 4:29 amHave the floor button disabled, and then enable it for 10s by the other button?
Have the floor button disabled, and then enable it for 10s by the other button?
"I hear voices. But I ignore them and I just carry on killing."
Quote from iWork925 on May 29, 2011, 4:56 amImplying you can disable a floor button?
Edit: I think I have this figured out. And I have built an example. Is this what you want?
On button press only: Blue Funnel
On Floor button press only: Nothing
On both pressed: Orange Funnel
On Button Reset: NothingIf it is then do I have the VMF for you! Just copy and paste the buttons, funnel and math counters (sheep jumping fence) into your map. Ignore everything else!
Implying you can disable a floor button?
Edit: I think I have this figured out. And I have built an example. Is this what you want?
On button press only: Blue Funnel
On Floor button press only: Nothing
On both pressed: Orange Funnel
On Button Reset: Nothing
If it is then do I have the VMF for you! Just copy and paste the buttons, funnel and math counters (sheep jumping fence) into your map. Ignore everything else!

PortalStories.com
"Oh, in case you got covered in that repulsion gel, here's some advice the lab boys gave me: DO NOT get covered in the repulsion gel."
Quote from RageCompeX on May 29, 2011, 9:10 amhey, I did the same thing here, I first have a floor button that activates the funnel, and another that needs to reverse. So OnButtonPressed, you want to Trigger an logic_relay, name it ActivateFunnel or something, and OnUnpressed trigger another logic relay and call it DeactivateFunnel (in your case it's on buttonreset). Now these 2 relays will decide when the other button is activated or not. So the ActivateFunnel relay, you set, OnTrigger Enable button, and the other for disable. Make SURE your second button is on default disable.
hey, I did the same thing here, I first have a floor button that activates the funnel, and another that needs to reverse. So OnButtonPressed, you want to Trigger an logic_relay, name it ActivateFunnel or something, and OnUnpressed trigger another logic relay and call it DeactivateFunnel (in your case it's on buttonreset). Now these 2 relays will decide when the other button is activated or not. So the ActivateFunnel relay, you set, OnTrigger Enable button, and the other for disable. Make SURE your second button is on default disable.
Quote from vertigoelectric on May 29, 2011, 11:48 amRageCompeX wrote:hey, I did the same thing here, I first have a floor button that activates the funnel, and another that needs to reverse. So OnButtonPressed, you want to Trigger an logic_relay, name it ActivateFunnel or something, and OnUnpressed trigger another logic relay and call it DeactivateFunnel (in your case it's on buttonreset). Now these 2 relays will decide when the other button is activated or not. So the ActivateFunnel relay, you set, OnTrigger Enable button, and the other for disable. Make SURE your second button is on default disable.I tried a logic_relay, and that was going to be my second question, actually...
I had the floor button telling the logic_relay to change the polarity of the beam. I had the first button decide whether or not the logic_relay was enabled. The thing is, even with the logic_relay disabled, the events still fired and the beam turned on. That part didn't make sense at all. If you ask me, that completely defeats the purpose of the relay.
I tried a logic_relay, and that was going to be my second question, actually...
I had the floor button telling the logic_relay to change the polarity of the beam. I had the first button decide whether or not the logic_relay was enabled. The thing is, even with the logic_relay disabled, the events still fired and the beam turned on. That part didn't make sense at all. If you ask me, that completely defeats the purpose of the relay.
Quote from vertigoelectric on May 29, 2011, 11:49 amiWork925 wrote:Implying you can disable a floor button?Edit: I think I have this figured out. And I have built an example. Is this what you want?
On button press only: Blue Funnel
On Floor button press only: Nothing
On both pressed: Orange Funnel
On Button Reset: NothingIf it is then do I have the VMF for you! Just copy and paste the buttons, funnel and math counters (sheep jumping fence) into your map. Ignore everything else!
"The file you are trying to access is temporarily unavailable. Please try again later."
Would you mine just explaining it to me? I tried using a math_counter but I couldn't get anything to work. I think if you just tell me which outputs to use on which entities I could do it.
Edit: I think I have this figured out. And I have built an example. Is this what you want?
On button press only: Blue Funnel
On Floor button press only: Nothing
On both pressed: Orange Funnel
On Button Reset: Nothing
If it is then do I have the VMF for you! Just copy and paste the buttons, funnel and math counters (sheep jumping fence) into your map. Ignore everything else!
"The file you are trying to access is temporarily unavailable. Please try again later."
Would you mine just explaining it to me? I tried using a math_counter but I couldn't get anything to work. I think if you just tell me which outputs to use on which entities I could do it.
Quote from KenJeKenny!? on May 29, 2011, 12:29 pmjust set up a simple math_counter... have both buttons on pressed add 1 to the math_counter and on unpressed remove 1... and set the math counter to reverse the excursion funnel when the total is 2.
easy-as-pie.
just set up a simple math_counter... have both buttons on pressed add 1 to the math_counter and on unpressed remove 1... and set the math counter to reverse the excursion funnel when the total is 2.
easy-as-pie.
Quote from vertigoelectric on May 29, 2011, 12:52 pmKenJeKenny!? wrote:just set up a simple math_counter... have both buttons on pressed add 1 to the math_counter and on unpressed remove 1... and set the math counter to reverse the excursion funnel when the total is 2.easy-as-pie.
Well, it's not quite as easy as that.
Sure, it's easy to get it to reverse the funnel when both buttons are active, but what about when I step off the button? It still stays reversed. It should go back to normal. So then I add the "OnChangedFromMax" output but then it stays on without the first button being pressed.
Honestly, this should not be so complicated. Why can't there just be a simple condition to check to see IF a button is pressed, or IF an entity is active? I've tried logic_compare, logic_case, logic_relay, and several others and nothing works.
easy-as-pie.
Well, it's not quite as easy as that.
Sure, it's easy to get it to reverse the funnel when both buttons are active, but what about when I step off the button? It still stays reversed. It should go back to normal. So then I add the "OnChangedFromMax" output but then it stays on without the first button being pressed.
Honestly, this should not be so complicated. Why can't there just be a simple condition to check to see IF a button is pressed, or IF an entity is active? I've tried logic_compare, logic_case, logic_relay, and several others and nothing works.
Quote from KenJeKenny!? on May 29, 2011, 1:03 pmWell... you gotta set the math counter to ONLY reverse the funnel when it's counter is on 2... and go back to normal when it drops below 2... using the onhitmax & onhitmin.
more info on math_counters @ http://developer.valvesoftware.com/wiki/Math_counter
Well... you gotta set the math counter to ONLY reverse the funnel when it's counter is on 2... and go back to normal when it drops below 2... using the onhitmax & onhitmin.
more info on math_counters @ http://developer.valvesoftware.com/wiki/Math_counter
Quote from vertigoelectric on May 29, 2011, 1:09 pmKenJeKenny!? wrote:Well... you gotta set the math counter to ONLY reverse the funnel when it's counter is on 2... and go back to normal when it drops below 2... using the onhitmax & onhitmin.more info on math_counters @ http://developer.valvesoftware.com/wiki/Math_counter
Well, if I set the minimum value to 1 and the maximum to 2, then it'll never go below 1 and therefore it will never turn off.
Perhaps if you were a bit more specific with exactly how I should set the values and outputs, rather than giving me just a piece of the picture each time I come back to tell you it's not working, it would be more efficient.
To clarify, here is what has to happen:
On press of first button, funnel is activated for 10 seconds.
On press of second button, funnel is reversed.
On release of second button, funnel is returned to normal.
On release of first button, which happens after 10 seconds, the beam should be disabled no matter what state the second button is in.
more info on math_counters @ http://developer.valvesoftware.com/wiki/Math_counter
Well, if I set the minimum value to 1 and the maximum to 2, then it'll never go below 1 and therefore it will never turn off.
Perhaps if you were a bit more specific with exactly how I should set the values and outputs, rather than giving me just a piece of the picture each time I come back to tell you it's not working, it would be more efficient.
To clarify, here is what has to happen:
On press of first button, funnel is activated for 10 seconds.
On press of second button, funnel is reversed.
On release of second button, funnel is returned to normal.
On release of first button, which happens after 10 seconds, the beam should be disabled no matter what state the second button is in.