Pages: [1]
  Print  
Author Topic: State dependent doors  (Read 16535 times)
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« 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:

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

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.
« Last Edit: August 16, 2016, 10:28:41 AM by sago007 » Logged

There are nothing offending in my posts.
Neon_Knight
In the year 3000
***

Cakes 49
Posts: 3775


Trickster God.


« Reply #1 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"?
Logged


"Detailed" is nice, but if it gets in the way of clarity, it ceases being a nice addition and becomes a problem. - TVT
Want to contribute? Read this.
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #2 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.
Logged

There are nothing offending in my posts.
Neon_Knight
In the year 3000
***

Cakes 49
Posts: 3775


Trickster God.


« Reply #3 on: August 16, 2016, 02:49:06 PM »

That would be better, indeed.
Logged


"Detailed" is nice, but if it gets in the way of clarity, it ceases being a nice addition and becomes a problem. - TVT
Want to contribute? Read this.
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #4 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...
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Neon_Knight
In the year 3000
***

Cakes 49
Posts: 3775


Trickster God.


« Reply #5 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". Tongue

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.
Logged


"Detailed" is nice, but if it gets in the way of clarity, it ceases being a nice addition and becomes a problem. - TVT
Want to contribute? Read this.
fromhell
Administrator
GET A LIFE!
**********

Cakes 35
Posts: 14520



WWW
« Reply #6 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)
Logged

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #7 on: August 16, 2016, 04:13:51 PM »

Thank you NK. It has got sense.
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #8 on: September 01, 2016, 03:28:51 AM »

Excuse me Sago, reading the description of this GIT diff
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, 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?).
« Last Edit: September 01, 2016, 03:33:49 AM by Gig » Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #9 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.
Logged

There are nothing offending in my posts.
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #10 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.
« Last Edit: September 01, 2016, 01:07:29 PM by Gig » Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #11 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?
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #12 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.
Logged

There are nothing offending in my posts.
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #13 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?
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #14 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.
Logged

There are nothing offending in my posts.
Gig
In the year 3000
***

Cakes 45
Posts: 4394


WWW
« Reply #15 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.
Logged

I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
Pages: [1]
  Print  
 
Jump to: