Adding a filter for one player.

Need help getting this done.

By Daan 1 year ago

Hey

I need some help with my map jb_carceris. I am adding a "Pacman" Minigame instead of the skating-area. (Screenshot)

But the only problem is, the Pacman should deal damage. But somehow, I can't figure it out how to make one player "Immune".

Now it only kills both players or won't kill at all.

This is what I have set up so far:

I can't find the solution for this.

I hope somebody can help me with this. Or give me any suggestions to replace this system.

5 posts 360 views
  • You must be a member

Replies

  • birjolaxew's Levels
    • P3: Peasant
      Points: 11,395
    • E1: Helper
      EF: 19
    • C3: Moderator
    • A3: Apprentice
      Account Age: 2 years
    Posted 1 year ago

    This is just off the top of my head, but have you tried changing the "Setname" in the trigger_multiple to "SetName"?

    [Edit] It seems the proper way to do that would be to have the trigger_multiple output have an "Via this input" of "AddOutput", and a "With a parameter override of" of "targetname immune".

  • Fibbs's Levels
    • P3: Peasant
      Points: 24,858
    • E2: Guide
      EF: 29
    • C2: Treehouse Member
    • A5: Veteran
      Account Age: 5 years
    Username
    Fibbs
    Posted 1 year ago

    Posted by birjolaxew

    [Edit] It seems the proper way to do that would be to have the trigger_multiple output have an "Via this input" of "AddOutput", and a "With a parameter override of" of "targetname immune".

    This.

    Another way to do it would be to make the player in the pacman trigger immune to all damage using a damage filter, but try setting their targetname with AddOuput first.

  • Daan's Levels
    • P2: Drudge
      Points: 5,055
    • E1: Helper
      EF: 6
    • C1: Member
    • A4: Graduate
      Account Age: 4 years
    Posted 1 year ago

    Can't get it to work.

    is anyone able to make a sample .vmf?

    Thanks in advance.

    User Title
  • Purpzz's Levels
    • P2: Drudge
      Points: 1,866
    • C2: Treehouse Member
    • A5: Veteran
      Account Age: 4 years
    Posted 1 year ago

    If i understand you correct, then u have to add a filteractivatorname, fill in a name for the filter plus the filtername himself (last option).

    Example 'Immune', then you have to make it so the player will come in a trigger_multiply and put as output this:

    On Start Touch !activator AddOutPut targetname Immune

    This will make the player give the targetname Immune when triggering, then u filter the damage thing so he only hurts the players who are targetname NOT immune. This will make the guy who is immune making not die by the trigger hurt.

    If you dont understand it (or i get it wrong) then let me know. I can make an example if really need to, i am verry good known with filtering.

    Hope it helps!

    The game world is unlimited
  • Fibbs's Levels
    • P3: Peasant
      Points: 24,858
    • E2: Guide
      EF: 29
    • C2: Treehouse Member
    • A5: Veteran
      Account Age: 5 years
    Username
    Fibbs
    Posted 1 year ago

    http://files.gamebanana.com/bitpit/test_filter.zip

    Two ways of doing it. Left trigger uses the name filter to disallow the player from triggering the hurt. Right trigger uses a damage filter to make the player immune to the hurt's damage type. To test by yourself in-game you can change your targetname using ent_fire !self addoutput "targetname anything" in console.

    You may need to add a trigger around spawn that changes players' targetnames (see the left trigger's output) to something as I believe targetnames aren't reset on new rounds.

    • Helpful x 1
  • You must be a member