How to make a no damage zone?

Discussion in 'Mapping Questions & Discussion' started by Jhoira of the Ghitu, Oct 15, 2018.

  1. Jhoira of the Ghitu

    Jhoira of the Ghitu L1: Registered

    Messages:
    10
    Positive Ratings:
    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 ;)
     
  2. Midlou

    Midlou L2: Junior Member

    Messages:
    88
    Positive Ratings:
    110
    • 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...
     
    • Thanks Thanks x 1
    • Like Like x 1
  3. Da Spud Lord

    aa Da Spud Lord L0: Crappy Member

    Messages:
    1,007
    Positive Ratings:
    688
    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.
     
  4. Izotope

    aa Izotope Never releases maps

    Messages:
    645
    Positive Ratings:
    644
    There is no need for a second filter entity to reverse the godmode, you can simply leave the SetDamageFilter field empty.