Forcing conditions on players via trigger_multiple?

NeonHeights

L1: Registered
Apr 27, 2012
25
5
Wondering if there is a way to force conditions (such as addcond, team switch, etc...) on players in the server using a trigger_multiple?

The targeting I assume would use !player to target all players in the server, but how would you physically go about toggling the command? Ive never worked with the AddOutput command before and attempted OnStartTouch > !player > Addoutput > Addcond 56 and nothing happened.

Im aware of the trigger_add_tf_condition but it does not have abilities to remove a conditon from a player once its toggled on them unless the time limit expires or they leave the brush. In my case I will be disabling the brush after a given time limit and activating a different condition. When the brush is 'disabled' and the duration is set to -1, it doesnt count as the player leaving the brush, so they keep the old effect, even when the new one is toggled. Which is not what im trying to do...

Anyone have any ideas or know an alternate method to adding conditions to players?
 

Egan

aa
Feb 14, 2010
1,375
1,721
you could have a timer with a 1 second refire time keep hitting the condition trigger with an enable/disable. and then have the condition trigger have a duration of 1.3 seconds. if you pause the timer then the condition will be disabled as regular but will not come back online to continue the condition.

you could do this another way with a moving door or movelinear if you don't want the console spam, or you could just use the con_filter command to manually filter away console spam in-game if need be.
 

NeonHeights

L1: Registered
Apr 27, 2012
25
5
you could have a timer with a 1 second refire time keep hitting the condition trigger with an enable/disable. and then have the condition trigger have a duration of 1.3 seconds. if you pause the timer then the condition will be disabled as regular but will not come back online to continue the condition.

you could do this another way with a moving door or movelinear if you don't want the console spam, or you could just use the con_filter command to manually filter away console spam in-game if need be.

The movelinear works fine. Im working with 8 condition triggers. I have a timer contact a logic_case every 20 seconds and randomly pick one of the triggers and enable it. After all 8 triggers have been enabled the timer shuts off and resets everything.

Using SetParent and Clearparent functions on the condition triggers ive gotten it to work fine.

I tried the timer one and set up a timer for each condition. The logic_case contacts each timer, enables it, then shuts it off after 19 seconds and triggers the next timer. I had each timer configured with OnTimer > Enable and OnTimer > Disable.

However, when the brush is enabled via the logic_case, it only turns on for 1.3 seconds (as is the duration in the brush) and does not turn back on again via the timer.. I tried multiple fixes but nothing worked. After the 1.3 seconds the trigger refuses to turn on.

Any idea?