Apply an effect the the player carrying the flag

SnickerPuffs

(*single chuckle*)
aa
Apr 10, 2014
1,315
1,857
I swear I've seen this question before. Anyway, just parent a trigger_add_tf_player_condition to the flag. Make sure it's only active when touching the flag, and only working for the attacking team.
 

SnickerPuffs

(*single chuckle*)
aa
Apr 10, 2014
1,315
1,857
Ok, so lets say you have a trigger_add_tf_player_condition named "X" and a item_teamflag (or whatever they're called) named "Y".

Put the trigger over the flag, and have it be slightly bigger than the flag.

Go to the Parent tag in the "Class Info" tab, and type in the name of the flag.

Bingo bongo bango, you're done.
 
Jul 26, 2015
694
819
Should I use OnPickup to enable the trigger and OnDrop to disable it? Or do I need to use OnPickupTeam1, etc? Since I already put a teamfilter on the trigger.

Oh, and will this affect everyone who comes close to the flag carrier, or just the carrier?
 

SnickerPuffs

(*single chuckle*)
aa
Apr 10, 2014
1,315
1,857
I'm fairly certain you can set which team the effect is applied to, but I can remember how for the life of me. You should be able to find it if you dig hard enough.
 

zahndah

professional letter
aa
Jul 4, 2015
721
642
will this affect everyone who comes close to the flag carrier

I did this on ctf_cull and i can confirm that it does affect anyone standing very close to the carrier (unless you managed to filter it to the activator).

Also when i did this, people complained about it (that it was just trying to make the map artificially fun), so it may not be the best idea. But it may well have just been my implementation of it.

Also Also i reccomend using the 'marked for death silent' effect for it else the flag carrier goes deaf.
 
Last edited:

UKCS-Alias

Mann vs Machine... or... Mapper vs Meta?
aa
Sep 8, 2008
1,264
816
It might be worth to mention since mvm uses this method aswel even though im not sure it will even work.

You can tag a flag. When turning off smartedit (or maybe ABS' pack already did cover this), add the attribute called tags. Give it a value like bomb_carrier (the mvm default is called bomb_carrier). This tag gets applied to the bomber and is then used to make the bots decide which path it takes.

Even though they use a filter_tf_bot_has_tag I wouldnt be surprised if valve made it also affect normal players (since those bots are still using regular player slots). If it does then surely this could be a nice workaround. As that tag is then only applied to the carrier itself. So you can use this to apply a hazard, or make the intel behave as a key which only opens a specific door when its actively carried.
For a neutral flag you can even take this further using a filter_multi both aiming at the tag filter and team filter.

However, dont rely on this too much, after all its ment for bots. But as an attempt this one could be clean method that ensures only the carrier can be affected. But it can be worth a try.