Page 1 of 1
How to make bots to use door only from one side
Posted: Thu Oct 21, 2010 4:30 pm
by ShadoW_86
Hey, I've run on small poblem recently, I want to make a corridor with bars blocking it, which can be passed only from one side (same thing as it's on q3dm7). I have a corridor, and bars connected with trigger brush, and it works fine. The problems starts with bots, it seems that they 'don't see' the bars, and try to go through them from the side without the trigger. It looks bad, and what's worse destroys the gameplay in the area. I was wandering how to solve it, I'm not sure to what to do :/. Any ideas? I would like to make bots 'blind' about passage from one side only somehow.
Re: How to make bots to use door only from one side
Posted: Thu Oct 21, 2010 4:40 pm
by Plan B
Just a guess:
A botclip (botsdonotenter?) patch across the corridor.
Not sure if the "backside" of the patch will allow passage, though.
EDIT: Or maybe a nodraw brush with only the blocking face textured with botclip/botsdonotenter.
Re: How to make bots to use door only from one side
Posted: Thu Oct 21, 2010 4:56 pm
by ShadoW_86
That was my first idea, to make invisible brush (trigger texture, nodraw or whatever else) and them put 'donotenter' on one side. Not sure tho is it correct, and my bots won't start making even more stupid things

.
Re: How to make bots to use door only from one side
Posted: Thu Oct 21, 2010 5:28 pm
by obsidian
Did you cover the door with botclip/playerclip and group it as part of the func_door entity? Perhaps the bots aren't seeing it as a door if it's a grate.
Re: How to make bots to use door only from one side
Posted: Thu Oct 21, 2010 5:41 pm
by Plan B
ShadoW_86 wrote:That was my first idea, to make invisible brush (trigger texture, nodraw or whatever else) and them put 'donotenter' on one side. Not sure tho is it correct, and my bots won't start making even more stupid things

.
Yeah, but have you tried it?
Probably one of the most difficult parts of mapping, this, because there's no other way than go in-game, and observe the bot behavior.
To force things, place a desirable item in the space you want blocked.
Re: How to make bots to use door only from one side
Posted: Thu Oct 21, 2010 7:12 pm
by Bliccer
For timer prevention in defrag there is this method to do a playerclip on a patch. You can go through it once, but not back. Maybe that also works for a botclip. Or you make a bot map and place a playerpatch or wallpatch there?
Re: How to make bots to use door only from one side
Posted: Fri Oct 22, 2010 1:36 am
by dONKEY
AFAIK botclip wont work on patches.
Do the bars on the doorway open and close?
If so I would use a botclip brush as part of the entity.
Re: How to make bots to use door only from one side
Posted: Sat Oct 23, 2010 6:12 am
by ShadoW_86
Hmmm, I think I've "solved it". Actually I'm not sure it's done right way, but it seems to work

. So I have this corridor with 2 bars working as a door (q3dm7 dungeon style). I've added
cluster portal and
hint brush around bars (they fit the corridor size), and also put
nodraw brush with one face covered with
botdonotenter at one side of the corridor. I tested it with bots, and it really seems to work well. They don't try to go 'through' the bars from blocked size, and use the door from other one.
As I said, I'm still not sure doing
nodraw brush with only one face covered with
botdonotenter is corect from the engine point, but as long as it seems to work it's enough for me

.
Re: How to make bots to use door only from one side
Posted: Sat Oct 23, 2010 1:16 pm
by Bliccer
Well, then I'm looking forward to your experimental SP map in the contest

judge... maybe if time..
Re: How to make bots to use door only from one side
Posted: Sun Oct 24, 2010 9:59 am
by ShadoW_86
No way for me to participate, sorry :/. No time. But I would like to be a judge :P! If you would like me to be a judge, contact me via pm or sth.
Re: How to make bots to use door only from one side
Posted: Tue Oct 26, 2010 7:47 pm
by Bliccer
Ask tig via the lvlworld form.
Re: How to make bots to use door only from one side
Posted: Tue Oct 26, 2010 9:47 pm
by monaster
Let's hope, there'll be more entries than judges in the end.
EDIT: @ShadoW_86: nice idea, man! Might steal that somewhere in the next few years. Credits will feature you, then, of course.