Making "seats"

A refuge for those migrating from the fallen DXEditing.com and a place for general discussion relating to Deus Ex editing (coding, mapping, etc).
Post Reply
User avatar
Neveos
X-51
Posts: 875
Joined: Wed Mar 03, 2010 1:29 am

Making "seats"

Post by Neveos »

Is there a way to assign a brush or prefab (not mesh) the property of being a "seat" such that NPCs will sit on them? Or maybe there is some sort of tricky work-around such as placing a seat inside the brush, and making it invisible?
What I do in my other free time:
http://www.youtube.com/watch?v=e3FfPUKuGsQ
nerdenstein
Illuminati
Posts: 1591
Joined: Thu Apr 24, 2008 7:40 pm
Location: Leicester, England, UK.

Re: Making "seats"

Post by nerdenstein »

Neveos wrote:Or maybe there is some sort of tricky work-around such as placing a seat inside the brush, and making it invisible?
Not so Tricky. This is what i would have done anyway. Whether it works or not I'll have to try it.
The real trouble with reality is that there's no background music.
User avatar
Jonas
Off Topic Productions
Off Topic Productions
Posts: 14224
Joined: Sat Apr 24, 2004 9:21 pm
Location: Hafnia

Re: Making "seats"

Post by Jonas »

Remember Becker and Jabroni on the CSG bench outside WorldCorp HQ in TNM?

Here's how that was done:

Image

You have to make any geometry they'll be intersecting in their sitting state non-solid, or they can't "reach" the seat. Then place a chair (or two or however many you need) so its seat aligns with your brush, and set these properties on it:

(Advanced) bHidden = True
(Collision) bCollideworld = False
(Movement) Physics = PHYS_None

And finally, you'll want to use BlockAll actors to prevent the player and your NPCs from walking into the non-solid brush. In the picture, you can see I haven't added any BlockAlls where the chairs are, because the collision hulls of the chairs themselves take care of that.
Jonas Wæver
Chief Poking Manager of TNM

I've made some videogames:
Expeditions: Rome
Expeditions: Viking
Expeditions: Conquistador
Clandestine
User avatar
Neveos
X-51
Posts: 875
Joined: Wed Mar 03, 2010 1:29 am

Re: Making "seats"

Post by Neveos »

Very detailed and awesome explanation. I'll be doing that.
What I do in my other free time:
http://www.youtube.com/watch?v=e3FfPUKuGsQ
Post Reply