Twitchy panels
Quote from Marise on July 1, 2011, 11:44 pmI tried searching and couldn't find anything about this exact problem.
I have 3 logic branches connecting to one listener. When AllTrue, the listener triggers a logic_relay which animates two panels. I have a separate relay to close them on AllFalse or AllMixed.
It works just fine except for one problem. Although I incorporated CancelPending into my relays, with the open and close animations on a small delay, the panels open and close very quickly any time the value of a logic branch changes. I have played around with it and been unable to stop this twitching.
Does anyone know of a solution to this problem? Thanks.
I tried searching and couldn't find anything about this exact problem.
I have 3 logic branches connecting to one listener. When AllTrue, the listener triggers a logic_relay which animates two panels. I have a separate relay to close them on AllFalse or AllMixed.
It works just fine except for one problem. Although I incorporated CancelPending into my relays, with the open and close animations on a small delay, the panels open and close very quickly any time the value of a logic branch changes. I have played around with it and been unable to stop this twitching.
Does anyone know of a solution to this problem? Thanks.
Thanks for over 1,000 downloads: The Cold Shoulder
Quote from ChickenMobile on July 2, 2011, 12:08 amWhat are you using the branches for? Do you need 2 things to be activated for the panel to open or is there a separate branch connected to both your open and close relay?
I suggest you use the same method, however making the open and close relay change the same branch (open changing it to 1, close changing it to 0). You do not need the CacelPending output, as the branches should do the work for you.
Remember that if you are using a listener you don't need to 'Test' it as it will figure it out automatically when a value changes. Also keep the "enable fast trigger" in your relays UNTICKED.
EDIT: Refer to the attatchment
Panel_logic_example.vmf
What are you using the branches for? Do you need 2 things to be activated for the panel to open or is there a separate branch connected to both your open and close relay?
I suggest you use the same method, however making the open and close relay change the same branch (open changing it to 1, close changing it to 0). You do not need the CacelPending output, as the branches should do the work for you.
Remember that if you are using a listener you don't need to 'Test' it as it will figure it out automatically when a value changes. Also keep the "enable fast trigger" in your relays UNTICKED.
EDIT: Refer to the attatchment
Quote from KenJeKenny!? on July 2, 2011, 3:20 amAre the panels connected to a floor_button? or a normal button that you can reset really fast?
Because then you gotta make sure onpressed and onunpressed for example, send the SetPlaybackRate output.
1 sets the animation (fire once)+ sets the playbackrate to 1 & the other sets the playbackrate to -1. This should fix glitchy panel movement and the animations will ALWAYS run smoothly back and forth... and can stop/return halfway without problems.
Are the panels connected to a floor_button? or a normal button that you can reset really fast?
Because then you gotta make sure onpressed and onunpressed for example, send the SetPlaybackRate output.
1 sets the animation (fire once)+ sets the playbackrate to 1 & the other sets the playbackrate to -1. This should fix glitchy panel movement and the animations will ALWAYS run smoothly back and forth... and can stop/return halfway without problems.
Quote from Marise on July 2, 2011, 10:58 amThree laser catchers affect the value of the branches (one branch per catcher). One listener, based on the value of those three branches, triggers either the open or close relay.
I will try out these tips today and see if it works. Thanks, guys.
Chickenmobile, is that example .vmf yours? If so, can you explain the purpose of the panel_hidden_relay_branch? I don't see anything listening to it, so I'm not clear on what it's for.
Three laser catchers affect the value of the branches (one branch per catcher). One listener, based on the value of those three branches, triggers either the open or close relay.
I will try out these tips today and see if it works. Thanks, guys.
Chickenmobile, is that example .vmf yours? If so, can you explain the purpose of the panel_hidden_relay_branch? I don't see anything listening to it, so I'm not clear on what it's for.
Thanks for over 1,000 downloads: The Cold Shoulder
