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

Vengeance

L1: Registered
Jan 23, 2012
20
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!
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
These questions are worrying because it makes me wonder why the hell you would want to make something like this.

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:
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)
 

Vengeance

L1: Registered
Jan 23, 2012
20
2
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:
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)

Yeah thanks, I am making a map for a clan. they want a room where no one can kill one another
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,670
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:
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.
 
Last edited:

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,670
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)
 

eviljelloman

L1: Registered
Apr 29, 2012
5
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?