Zontik on 10/5/2011 at 07:06
My motion database is just extended Shadowspawn's.
sNeaksieGarrett on 30/5/2013 at 05:19
So I managed to import Zontik's motions into my copy of thief 2, however I'm having an issue getting the AI to sit in the proper spot. I've set it up so that he walks over to a couch and sits. However, when he goes over to the marker that is next to the couch to sit, he sits in the air and his behind is not on the couch. If I push the marker back too far, then the AI refuses to even walk over to the couch and just sits at his origin instead.
Is there some way to force him to sit on the couch? I'm guessing it's a bounding box issue, but I've even tried setting the property where the AI would not collide with it, but it doesn't help. Before you ask why I'm posting in this thread, it's because I want an AI that is moving in some way while sitting, so I'm using King 0 in my conversation setup.
darthsLair on 30/5/2013 at 05:32
Quote Posted by sNeaksieGarrett
So I managed to import Zontik's motions into my copy of thief 2, however I'm having an issue getting the AI to sit in the proper spot. I've set it up so that he walks over to a couch and sits. However, when he goes over to the marker that is next to the couch to sit, he sits in the air and his behind is not on the couch. If I push the marker back too far, then the AI refuses to even walk over to the couch and just sits at his origin instead.
Is there some way to force him to sit on the couch? I'm guessing it's a bounding box issue, but I've even tried setting the property where the AI would not collide with it, but it doesn't help. Before you ask why I'm posting in this thread, it's because I want an AI that is moving in some way while sitting, so I'm using
King 0 in my conversation setup.
In "Escape Hammer Hill" I discovered that getting ai to sit properly works better with a couch made of terrain brushes over object brushes. If they are knocked out in the sitting position, they would normally fall through the object brush and go half way into the floor. With terrain brushes this won't happen. With the NewDark, you can use any object .gif, and make it .png to make a nice realistic chair, couch, or table made with Terrain brushes.
Sorry I wasn't more help sNeasksie.
john9818a on 30/5/2013 at 05:40
AIs will always stop when they are in a short proximity of a marker but will not stop right on the marker. In Rust Belt Prison I had to teleport the AI into the chair to get the exact placement.
Zontik on 30/5/2013 at 10:34
Also some furniture can block AI paths. Make sure that property AI > Utility > Block Pathfind is set to None on your couch, either way AI will never get close enough.
And you should know that stop point will differ from time to time (depends on walking animation which is rather random).
sNeaksieGarrett on 30/5/2013 at 17:26
Hmm, guess I can't get what I want to work. Thanks for the feedback guys. I'll just have to do the reverse - have the AI already be sitting, and then tell him to get up.
LarryG on 30/5/2013 at 18:46
I never did figure out how to update the motions either. So I just gave up on the idea. The descriptions for how to edit motions make no sense to me . . .
Xorak on 30/5/2013 at 21:16
What about having the couch itself with no bounding box at all, and then put inside it a line of non-rendered crates that do have bounding boxes. That way you can adjust the size of the couch, to make it look like the AI is sitting on it, but the AI is really sitting on the invisible crate. I did that very same thing in Zealot's Hollow, to get one character to sit properly in a chair.
sNeaksieGarrett on 30/5/2013 at 22:21
Sounds great xorak, I should try that! (although I don't know how, and in addition, wouldn't I still run into the ai magically moving up above the crate like the couch? I've gone over to having him sit already instead of a conv marker set-up.)
In addition, I was just coming back here to say I found this post by Yandros where he shows an AI sitting on a chair and NOT floating!!!!:wot:
(
http://www.ttlg.com/forums/showthread.php?t=118907&p=2071705&viewfull=1#post2071705)
Apparently, based on the discussion, he had the ai patrol and then sit down, which is sort of what I was trying to get to work. I was just going to get the AI go from his origin over to the couch, not patrol. I tried getting mine to work like his and put
AI collides with on a stool instead of a couch just for testing, still not working.
edit: I just tried putting the sitting ai i've set up over a crate and he sits on it just great. Why is it this works with a crate and not a stool or couch? :weird: Does it have to do with the type of physics, OBB versus sphere?
Xorak on 30/5/2013 at 23:45
I meant to add that the crates seem to work more reliably than the other furniture. I don't know why though, I think it could be just a perfect distance from the ground when combined with the Sitting Metaproperties and the bounding boxes of the guards themselves as they collide with the floor.