How to make bots to use door only from one side

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
ShadoW_86
Posts: 270
Joined: Tue Jan 08, 2008 1:20 pm

How to make bots to use door only from one side

Post 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.
[url]http://shadowsdomain.wordpress.com/[/url]
Plan B
Posts: 3599
Joined: Thu Jan 11, 2001 8:00 am

Re: How to make bots to use door only from one side

Post 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.
ShadoW_86
Posts: 270
Joined: Tue Jan 08, 2008 1:20 pm

Re: How to make bots to use door only from one side

Post 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 :).
[url]http://shadowsdomain.wordpress.com/[/url]
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: How to make bots to use door only from one side

Post 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.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Plan B
Posts: 3599
Joined: Thu Jan 11, 2001 8:00 am

Re: How to make bots to use door only from one side

Post 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.
Bliccer
Posts: 341
Joined: Thu Nov 26, 2009 4:27 pm

Re: How to make bots to use door only from one side

Post 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?
dONKEY
Posts: 566
Joined: Mon Oct 15, 2001 7:00 am

Re: How to make bots to use door only from one side

Post 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.
ShadoW_86
Posts: 270
Joined: Tue Jan 08, 2008 1:20 pm

Re: How to make bots to use door only from one side

Post 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 ;).
[url]http://shadowsdomain.wordpress.com/[/url]
Bliccer
Posts: 341
Joined: Thu Nov 26, 2009 4:27 pm

Re: How to make bots to use door only from one side

Post by Bliccer »

Well, then I'm looking forward to your experimental SP map in the contest :D
<- judge... maybe if time..
ShadoW_86
Posts: 270
Joined: Tue Jan 08, 2008 1:20 pm

Re: How to make bots to use door only from one side

Post 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.
[url]http://shadowsdomain.wordpress.com/[/url]
Bliccer
Posts: 341
Joined: Thu Nov 26, 2009 4:27 pm

Re: How to make bots to use door only from one side

Post by Bliccer »

Ask tig via the lvlworld form.
User avatar
monaster
Posts: 532
Joined: Mon Apr 28, 2008 1:52 pm

Re: How to make bots to use door only from one side

Post by monaster »

Let's hope, there'll be more entries than judges in the end. :smirk:

EDIT: @ShadoW_86: nice idea, man! Might steal that somewhere in the next few years. Credits will feature you, then, of course.
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
Post Reply