OpenArena Message Boards

OpenArena Contributions => Idea pit => Topic started by: sago007 on August 16, 2016, 10:16:17 AM



Title: State dependent doors
Post by: sago007 on August 16, 2016, 10:16:17 AM
There is a thing that I have thought about for about 10 years and that is state dependent doors. I especially thought about it regarding Elimination.
I have now implemented a door that are only open while the weapons are live in Elimination and CTF Elimination.

In NetRadiant it looks like this:
(http://files.poulsander.com/~poul19/public_files/oa/dev088/elim_test_trigger_door.png)
The important thing is "targetname : elimination_active"

It can also be seen here: https://www.youtube.com/watch?v=lHq56Gx058w
The test-map can be downloaded here: http://files.poulsander.com/~poul19/public_files/elim_test_trigger.pk3 (http://files.poulsander.com/~poul19/public_files/elim_test_trigger.pk3)

I don't know if there are other places this could be relevant. Like doors that once triggers stays open until next capture?

EDIT:
This does require OAX Beta 52: https://github.com/OpenArena/gamecode/releases/tag/oaxB52 or the latest nightly build.


Title: Re: State dependent doors
Post by: Neon_Knight on August 16, 2016, 10:46:20 AM
I suppose that will clash with already targeted doors (i.e. button-triggered doors).

What about making it a spawnflag or an independent key i.e. "eliminationactive" "1"?


Title: Re: State dependent doors
Post by: sago007 on August 16, 2016, 11:24:24 AM
It does become a problem if the map contains a trigger with the name "elimination_active". I could add a "statetargetname" instead. That they the doors could still be opened with normal shots in other game types.


Title: Re: State dependent doors
Post by: Neon_Knight on August 16, 2016, 02:49:06 PM
That would be better, indeed.


Title: Re: State dependent doors
Post by: Gig on August 16, 2016, 03:00:50 PM
I have not understood completely... what do you mean with  "when the weapons are live"?
Could you please reword the explanation of what these doors do? I cannot watch the video or test the map at the moment...


Title: Re: State dependent doors
Post by: Neon_Knight on August 16, 2016, 03:15:36 PM
The way I understood it:

"When the weapons are live" = "when players can use weapons in an Elimination match". :P

These doors seem to work like the doors in Team Fortress 2. Once you enter the match, you have to wait until the doors are open in order to fight. This is more for directly-connected spawn rooms, for example.

I may play a bit with this in a map.


Title: Re: State dependent doors
Post by: fromhell on August 16, 2016, 04:13:01 PM
Quake sort of did this with a spawnflag bit (Having entire brush entities disappear when deathmatch is on)


Title: Re: State dependent doors
Post by: Gig on August 16, 2016, 04:13:51 PM
Thank you NK. It has got sense.


Title: Re: State dependent doors
Post by: Gig on September 01, 2016, 03:28:51 AM
Excuse me Sago, reading the description of this GIT diff (https://github.com/OpenArena/gamecode/commit/bc80936a40c355db230db68a0092761e0d223ac0)
Quote
Added state_targetname instead of targetname. Of course state_targetname does still overrule targetname in Elimination games but only in Elimination games.
do you mean that with current nighly builds (it has been done AFTER OAX B52 (https://github.com/OpenArena/gamecode/releases/tag/oaxB52), right?), to test the feature, we have to set "state_targetname/elimination_active" key/value pair on func_door entity, right?

I have not exactly understood what happens if one sets both it and a classic "targetname" (e.g. to make the door button-controlled) keys in the same door, in Elimination and CTF Elimination modes (while other gametypes shoud just ignore "state_targetname/elimination_active" and the door work normally -player/shot or trigger controlled- right?).


Title: Re: State dependent doors
Post by: sago007 on September 01, 2016, 10:28:09 AM
You need the nightly build.
I have not exactly understood what happens if one sets both it and a classic "targetname" (e.g. to make the door button-controlled) keys in the same door, in Elimination and CTF Elimination modes
The button will be completly ignored in those game types. State takes precedence.


Title: Re: State dependent doors
Post by: Gig on September 01, 2016, 01:02:48 PM
Thank you.
To sum up, a door with "state_targetname/elimination active" key/value pair, in Elimination and CTFELimination modes will be closed during inactive warmup and after that always open no matter what, if I undersood correcly. Other modes are unaffected.


Title: Re: State dependent doors
Post by: Gig on September 02, 2016, 02:06:33 AM
Now, looking at actual usage of this.... what is this intended for?
- Main usage: isolate areas of the maps during initial part of Elimination warmup (hence, usage with team-dedicated spawn points is required), to keep the two teams initially divided.
- Secondary usage: keep open accesses to hidden areas in Elimination mode, to minimize the bad habit of camping in a secret area to win the match avoiding camping. But for this purpose, probably using "!gametype" key (completey remove the door in selected gametypes) woud be better, because that can be applied to Last Man Standing, too.
- Something more? Did I say something wrong?


Title: Re: State dependent doors
Post by: sago007 on September 02, 2016, 01:03:38 PM
Quote
- Main usage: isolate areas of the maps during initial part of Elimination warmup (hence, usage with team-dedicated spawn points is required), to keep the two teams initially divided.
This is the only scenario I see at the moment.

I do consider if there could be other options. Like doors that are only open/closed depending on the flag being at its position or not.

Originally I actually though about regarding a possible Assault gametype there doors are open depending on phase.


Title: Re: State dependent doors
Post by: Gig on September 21, 2016, 12:19:38 AM
Thinking again about this feature... maybe it may be even more useful by opening the doors at the beginning of the "real" fight, instead of opening the doors at the beginning of the active warmup.
What do you think?


Title: Re: State dependent doors
Post by: sago007 on September 21, 2016, 02:31:21 PM
That was what I meant by "while the weapons are live". I do not open the doors until the warmup is over.
Inactive warmup: Doors are closing (can be blocked by the players still alive)
Active warmup: Doors are forced to the close state (cannot be blocked)
Fight begins: Doors are opening and stays open.


Title: Re: State dependent doors
Post by: Gig on September 21, 2016, 03:02:15 PM
Okay, then.

Previously, I had not clear the difference between inactive and active Elimination warmup (I thought that during inactive one weapons did not fire, and during active warmup they did fire but causing no damage... while instead during both warmups they do not shoot... simply during inactive one dead people aren't revived yet.)... so once I tried to sum up this door thing saying that doors would have opened during active warmup and you did not correct me then...

Now the whole thing has got more sense.