--
[ Picked text/plain from multipart/alternative ]
Okay, seems like the problem is in CBasePlayer::PhysicsSimulate, where the
UpdateVPhysicsPosition is not being called for bots.

PhysicsSimulate is the main place where UpdateVPhysicsPosition is called.
There's also a wrapper for UpdateVPhysicsPosition called
UpdatePhsyicsShadowToCurrentPosition that is called sometimes, for example
when being pushed by your lift!

So basically what's happening is that PhysicsSimulate is not updating
physics shadow for every game frame, but some touch events are calling a
function that moves the shadow into place. Whenever the shadow moves, it
wakes up, but when its idle for too long (because PhysicsSimulate isnt
updating it) it falls asleep.

One way to fix this would be to override PhysicsSimulate in the bot's entity
class and make sure that UpdateVPhsyicsPosition is called (just hack up the
PhysicsSimulate from CBasePlayer so that it calls it under the right
circumstances for your bots instead of actual players)

I hope this helps. Fortress Forever is looking terrific these days, best of
luck to you guys.

Regards,

Paul
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to