@Whistler: it's not necessarily a good idea to make bots look at the door's origin. The origin of a door entity behaves VERY strangely in the game. When the door has never been opened yet, the origin of its bounding box is normal (in the middle of the door), but once the door becomes pushed only once, its origin jumps 200 ft further although the model stays here!!! And this no matter if you read v.origin or go with VecBModelOrigin. Try it if you don't believe me, it's hallucinating
Anyway that's why I prefer the bot to look at the waypoint that's behind the door.
P.S: calling MDLL_Use() is cheating, you know that right ?
You should consider doing pEdict->v.button |= IN_USE rather...