How could I go ahead and make a "GodMode" Area

Discussion in 'Mapping Questions & Discussion' started by Vengeance, Mar 11, 2012.

  1. Vengeance

    Vengeance L1: Registered

    Messages:
    20
    Positive Ratings:
    2
    What i'm talking about it like an area where a player can not take or give damage. Any suggestions about how I can go and do this. Thanks!
     
  2. Micnax

    aa Micnax I maek map

    Messages:
    2,056
    Positive Ratings:
    1,382
    I don't think it's possible to block damage as such, but you could put a func_regenerate brush in the room you want and it will auto-heal the user every 2-3 seconds.
     
  3. Tarry H Sruman

    Tarry H Sruman Large Orphanage Proprietor

    Messages:
    871
    Positive Ratings:
    820
    These questions are worrying because it makes me wonder why the hell you would want to make something like this.
     
    • Thanks Thanks x 2
  4. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,741
    Relax, some people want those crazy clan maps filled with secret rooms and silly features we normally wouldn't consider. But that's just fine, as long as they're making it themselves and not asking us to do it for them. Use these 'crazy' questions as a learning exercise, a lot of them have quite sensible single player uses.

    You could use a func_regenerate as joodude says, it's the brush that makes resupply cabinets work. Or you could use a trigger_multiple with the output:
    Column 1 Column 2 Column 3 Column 4 Column 5
    Output Target Input Parameter Delay
    OnTrigger !activator SetHealth 10000 0.0

    Make sure you check the 'clients' flag so that players can activate it, also set the 'delay before reset' to a something small like 0.01 (it's in seconds)
     
    • Thanks Thanks x 1
    • Like Like x 1
  5. Vengeance

    Vengeance L1: Registered

    Messages:
    20
    Positive Ratings:
    2
    Yeah thanks, I am making a map for a clan. they want a room where no one can kill one another
     
  6. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    This can be done using a damage filter.

    Make a filter_activator_name, name it godmode, and set it to Allow and filter entities named blahblah.

    Make a trigger_multiple covering the whole room, and give it the following outputs:
    Column 1 Column 2 Column 3 Column 4
    Output Target Input Parameter
    OnStartTouch !activator SetDamageFilter godmode
    OnEndTouch !activator SetDamageFilter


    To clarify, literally type in "blahblah", or anything. The point is to tell it to use a filter for an entity that does not exist, thereby causing any and all damage to be filtered and blocked. Further, the second output should indeed have the parameter blank, this will clear the setting when they leave and allow them to be injured again.
     
    • Thanks Thanks x 6
    Last edited: Mar 17, 2012
  7. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    Bump because I edited the above post to fix it. YM mentioned that what I had posted didn't work, and after looking at it again I realized I had mis-remembered how to do it. (You need to filter for non-existing, not non-existing filter)
     
    • Thanks Thanks x 1
  8. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,741
    Will test that out again later, cheers
     
  9. eviljelloman

    eviljelloman L1: Registered

    Messages:
    5
    Positive Ratings:
    0
    Bumping this one up again instead of making a new post- hopefully ya'll can help me.

    I am looking for a specific type of godmode to create in certain zones of a non-competitive map. Specifically, I'm thinking of the zones in trade_plaza_epic on the Endless Epidemic trade servers, or Trade_bm_tower on the skial europe trade server. Both of these have regions where godmode is enabled, but you can also rocket jump.

    I tried the SetDamageFilter godmode option given above, and that allows godmode but doesn't allow rocket jumping.

    I also tried SetHealth 10000 but that still allows you to be backstabbed.

    Any thoughts?