home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


One way/Team-only gates

by SirYlj on 07/10/2011 03:58, 18 messages, last message: 09/22/2011 20:44, 1518 views, last view: 04/09/2024 04:49

I've been editing a map for a while, trying to make a castle, and I wanted to place small gates at the walls in case someone from my team fell and needed to get in. Of course, though, I wouldn't want the other team to get through them.

When I make games, I make the gates/doors/whatever noclip so you walk through them. I was thinking of a new material that would function the same way, but for games like CTF, etc., where there are teams, they would function as team-only gates. I would imagine it to work like 'material color a' is for 'team a', and 'material color b' is for 'team b'. I wouldn't know if this would work because I'm not great at map editing as it is, so I was shooting it out there for the community in the hopes someone else out there would be able to/interested in doing so.

The obvious obstacle is that it would have to identify what team you were on, so I had a second idea.

A new material, obviously like the noclip material, but once you go through it, you are blocked. So in my mind, I see this as, facing one way, it acts like the noclip material, but if you try to go through it from the other side, it acts like the clip material. Again, I wouldn't know if this would be possible, so I'm putting it out there as well.

   Board Index   

#1: oooooorrrr

by Sub-Zero on 07/10/2011 08:49

you could just stick around a learn a few of the cube bugs like the ever so popular "one-way" bug found it certain maps. maps such as eruopium.

also note, it would be really hard to make a new material, especially one that works as a noclip-clip, it is easier to just go with the collision bug, also known as "one way" i may make a video showing how to make it if needed.

reply to this message

#2: Re: oooooorrrr

by suicizer01 on 07/10/2011 13:53, refers to #1

Very true that the "one-way" cube is an option to this, but not always like in open areas.
I think if you would modify "gameclip", so it would also deny certain boundingboxes, you could use it anywhere, anytime.

reply to this message

#3: Re: oooooorrrr

by Sub-Zero on 07/10/2011 16:55, refers to #2

1. Why would you be using it in open areas? The point of this is to block doorways/windows.

2. Same issue with gameclip if you were to do that.

3. Making gameclip deny certain bounding boxes is futile unless the idea is a spider-fly game, where you caught your enemy in your base (making it to where he wouldn't be able to get out, in which case would not be allowed for any sauerbraten release.)

4. Making gameclip deny own bounding box would make a few new issues/bug/errors.

All in all, I don't mind the idea, but I still say, since we already have "one-way" there really is no reason to go through all the trouble of coding it, especially since "one-way" is so popular, its not too hard to find someone who knows how to do it.

reply to this message

#4: Re: oooooorrrr

by eihrul on 07/10/2011 18:36, refers to #3

One-way cubes are officially a feature, not a bug at this point. :)

reply to this message

#5: Re: oooooorrrr

by suicizer01 on 07/10/2011 21:26, refers to #3

If the gameclip would be modified so that certain boundingboxes would be denied, you could be sure that a player wouldn't move back after it's out of the material (just like one-way-cubes).
As example;

When there is a teleport in an open place called "area neutral" and it's teledest is in a more narrow "area good" (with the teledest positioned that you can't get on the platform in that area on any other way), team "good" could camp by taking the teleport to their own area and wait for players on that certain teledest. This would kill the gameplay, exept if all players of team "good" would be blocked by some material.

Also, one-way-cubes can have pretty much triangles for their purpose, while material wouldn't have that problem.

reply to this message

#6: ..

by SirYlj on 07/10/2011 23:27

Well, I've obviously just learned a bit about the limitations of a one-way material.

In response to Sub-Zero for your 3nd remark in your second post, the purpose wouldn't be to trap them. The way it would be used (at least by me), is that there is a gate that the enemy have to go through, but I don't want my team to have to run all the way to it to get back inside if they fall off the wall that stands alongside the gate.

Also, I have yet to learn of ANY cube bugs, so a little bit more information on the 'one-way cube/collision bug' would be greatly appreciated. There is no need to go to trouble of making a video showing how to do so, but if I could learn a little more on how to, then it might solve my problem.

Thank you for the help you have all given.

reply to this message

#7: Re: ..

by Sub-Zero on 07/10/2011 23:43, refers to #6

Lol'd at eihruls comment.

I'll go ahead and make a video since that is easier to learn off of. (Give me a bit of time, a day or a week, I don't know which yet)

reply to this message

#8: Re: ..

by eihrul on 07/10/2011 23:55, refers to #6

http://www.youtube.com/watch?v=PMSVJfIOuHQ

reply to this message

#9: Re: ..

by Zorg on 07/11/2011 01:23, refers to #8

@Youtube: Seriously? Contains content of UMG and can't be displayed in my country? Jeez El Goog, just block access for GEMA and they'll never complain anymore.

(1 multiplied by 1 = 1, that's even true in a mod-1 arithmetic!)

reply to this message

#10: ..

by SirYlj on 07/11/2011 01:31

Tested it, and the one-way cube works. I just had one more question about it. I tried to add a texture to it, but there isn't a face on the cube to texture. Does this mean that if I use this technique, I will have a grid of empty cubes, and that I won't be able to texture them?

As I'm typing this though, I'm thinking of just making 1 small layer of cubes that are regular noclip, 2 layers of one-way cubes, and 1 last layer of noclip cubes. This would, I guess, cover of the one-way cubes.

Well, thank you for all that helped me with this, and I hope to see any of you in a coop game.

reply to this message

#11: ..

by Hammy on 09/05/2011 17:50

I still dont understand what`s gameclip ^^ pls reply

reply to this message

#12: Re: ..

by Sub-Zero on 09/05/2011 20:02, refers to #11

You don't understand gameclip because you didn't read the documentation. -_-

gameclip: a game mode specific clip material. Currently it can block monsters in SP modes, it can stop flags from being picked up in areas in CTF/protect modes, and it can stop capturing of bases in areas in capture modes. Overwrites other clip materials.

read the docs...

reply to this message

#13: Good idea...

by AK0 on 09/20/2011 23:21

This would indeed help a lot. Maybe the creators of Cube could put it in the newest version. Problem is, I doubt people would want to re-download it just because of the one clip.

Also, there needs to be a "material c", just for free-for-alls. You can only go in one way, but not the other. True, there already is something like this, but it's very hard to make and a bit too time-consuming.

reply to this message

#14: Re: Good idea...

by Sub-Zero on 09/21/2011 05:41, refers to #13

@AKO, go sit in the corner of your house for five mins as punishment for not reading the posts, there is no need to spend any amount of time coding this, be it easy or hard to make this, it is a waste of time.

1: We can use one-way>eihrul states its a "feature" of sauerbraten>there is no need to re-code for anything as useless when we already have this.

2: ALWAYS READ THE POSTS TO THE THREADS BELOW THE FIRST POST TO GRASP WHATS GOING ON!

reply to this message

#15: Re: Good idea...

by suicizer01 on 09/21/2011 09:44, refers to #14

The one-way-cube maybe a feature, but It can't be used at a place where specific mountains exist, which has been made with a higher gridsize...

reply to this message

#16: Re: Good idea...

by Razgriz on 09/21/2011 11:11, refers to #14

As precisely as the name describes, one-ways go ONE WAY only. Once you exit one-way cubes, there's no going back. This does not qualify as a team-only entrance. It could be made a material, since projectiles would pass through without problems compared to geometry.

reply to this message

#17: Re: Good idea...

by Papriko on 09/22/2011 18:34, refers to #15

Why should anyone want to make mountains at largest gridsize? Maybe far off the actual map as decoration, but when you want to integrate them into the area that actually can be entered, then add some extra effort and make it with a smaller grid size. It may be take a while, but in the end it is way less time consuming than correcting the whole mountain which got made at huge grid size.

reply to this message

#18: Re: Good idea...

by suicizer01 on 09/22/2011 20:44, refers to #17

The mountains are just an example.
I was talking about the fact that it can't be done when you would like players get blocked from 1 side when they pass a cube which is 2 times bigger than the default cube (which isn't big at all).

Neverless, that doesn't takes away when your doing a good job and add such material, why not doing it right the 1st time and also add teams can also be blocked seperately?

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53863750 visitors requested 71638864 pages
page created in 0.023 seconds using 10 queries
hosted by Boost Digital