- Feb 1, 2020
- 5
- 0
As some of you may know, the "team" property in func_flagdetectionzone doesn't work with a neutral team_flag (idk if it works for non neutral team_flags i haven't tried that).
I think i've figured out a fairly robust workaround, so i thought i'd post it here. I also attached a vmf file so you can just copy paste it if you want.
Here's how make it from scratch:
STEP 1
Turn "start disabled" to yes on the flagdetectionzones that you want to be team exclusive.
STEP 2
Create 3 new "logic_relay" entities
name them something like this:
>activator_red
>activator_blu
>deactivator
STEP 3
give 4 outputs to your team_flag
OnPickupTeam1 -> activator_red trigger
OnPickupTeam2 -> activator_blu trigger
OnDrop -> deactivator trigger
OnCapture ->deactivator trigger
Step 4
For every func_flagdetectionzone that should only work for red, give activator_red an output OnTrigger -> enable
STEP 5
Repeat step 4 for blu
STEP 6
For every func_flagdetectionzone that should only work for one of either teams, give deactivator an output
Ontrigger -> disable
That's about it.
If you find a way to break this, please tell me about it.
I think i've figured out a fairly robust workaround, so i thought i'd post it here. I also attached a vmf file so you can just copy paste it if you want.
Here's how make it from scratch:
STEP 1
Turn "start disabled" to yes on the flagdetectionzones that you want to be team exclusive.
STEP 2
Create 3 new "logic_relay" entities
name them something like this:
>activator_red
>activator_blu
>deactivator
STEP 3
give 4 outputs to your team_flag
OnPickupTeam1 -> activator_red trigger
OnPickupTeam2 -> activator_blu trigger
OnDrop -> deactivator trigger
OnCapture ->deactivator trigger
Step 4
For every func_flagdetectionzone that should only work for red, give activator_red an output OnTrigger -> enable
STEP 5
Repeat step 4 for blu
STEP 6
For every func_flagdetectionzone that should only work for one of either teams, give deactivator an output
Ontrigger -> disable
That's about it.
If you find a way to break this, please tell me about it.