How to make a no damage zone?

Jhoira of the Ghitu

L1: Registered
Jul 23, 2017
11
2
I've tried using the trigger_add_tf_player_condition by nullifying ranged damage but spells and melee damage still makes it through. My goal is to create a room for friendly players to look at other players cosmetics like unusuals ect. The only solution I found is using the TF_COND_INVULNERABLE but it ruins the purpose of the room by making the loudest look ubered and not having their painted colours. The zone also has to be able for both teams to enter and move freely around, Thanks ;)
 

Midlou

L5: Dapper Member
Jan 12, 2016
208
238
  • Create two entities:
filter_activator_tfteam
name: filter_godmode_tfteam
Filter mode: Allow entities that match criteria​

and

filter_damage_type
name: filter_nogodmode
Filter mode: Disallow entities that match criteria
Damage Type: 1024

  • Now create a trigger_multiple in the entrance of the friendly area:
Flags: Clients
Outputs: OnStartTouch > !activator > SetDamageFilter > filter_godmode_tfteam

  • In the exit, create another trigger_multiple:
Flags: Clients
Outputs: OnStartTouch > !activator > SetDamageFilter > filter_nogodmode

I hope it still works...
 

Da Spud Lord

Occasionally I make maps
aa
Mar 23, 2017
1,339
994
You could also try using the "hidden" ubercharged condition 51, "TF_COND_INVULNERABLE_HIDE_UNLESS_DAMAGED". Players will see themselves as ubercharged but won't appear ubercharged to each other unless they take damage, like MvM robots in their spawn.
 

Izotope

Sourcerer
aa
May 13, 2013
698
764
There is no need for a second filter entity to reverse the godmode, you can simply leave the SetDamageFilter field empty.