I'd seen this in my mod too and hadn't really had time to investigate.
Added a KI for this:
http://developer.valvesoftware.com/wiki/SDK_Known_Issues_List#Bot_physics.2Fhitbox_not_accurate
At 2006/08/23 12:18 PM, Jeremy Swigart wrote:
--
[ Picked text/plain from multipart/alternative ]
Thanks for
--
[ Picked text/plain from multipart/alternative ]
Thanks for the help. I put the code you posted above at the bottom of
PhysicsSimulate wrapped in an IsBot check(since we dont subclass for bots).
So far everything seems to work now. Hopefully there aren't unintended side
effects.
On 8/22/06,
--
[ Picked text/plain from multipart/alternative ]
I think the bot's physics object has fallen asleep. If you look at the call
stack for VPhysicsShadowUpdate its called like this in physics.cppPhysFrame:
// apply updates
if ( pPhysics !pPhysics-IsAsleep() )
{
pEntity-VPhysicsShadowUpdate(
--
[ 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
--
[ Picked text/plain from multipart/alternative ]
Thanks the help. Are you having the same problem with your bots or just
going out of your way to be helpful? Either way I appreciate it. On further
investigation, it appears the problem is due to the bots user commands going
through a different
--
[ Picked text/plain from multipart/alternative ]
Not working on bots myself just trying to be helpful.
You're right about the user command stuff, that's why the
UpdateVPhysicsPosition is not being called, maybe someone from Valve can
suggest potential problems with calling
, 2006 8:35 AM
To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] Physics becoming out of sync
--
[ Picked text/plain from multipart/alternative ] Thanks the
help. Are you having the same problem with your bots or just
going out of your way to be helpful? Either way I appreciate
--
[ Picked text/plain from multipart/alternative ]
Ok, so I tried ProcessUsercmds(cmd, 1, 1, 0, false); in place of
IBotController::RunPlayerMove(cmd); It fixed the lift bug it seems but
broke the view angles, and the bot kept facing his spawn direction or
something. That's probably not too hard
controller in the next frame of physics
simulation.
Jay
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jeremy Swigart
Sent: Tuesday, August 22, 2006 8:35 AM
To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] Physics becoming out
--
[ Picked text/plain from multipart/alternative ]
Well, I just tried this
class CSDKBot ..
{
public:
...
virtual void PhysicsSimulate()
{
BaseClass::PhysicsSimulate();
// Since this isn't called for bots.. call it here?
UpdateVPhysicsPosition(
--
[ Picked text/plain from multipart/alternative ]
Hmm, I didn't use m_vNewVPhysics* in my call. perhaps thats the problem. I
called UpdatePhysicsShadowToCurrentPosition(), which is apparently a rather
useless function. I'll try that when i get home. Thanks
On 8/22/06, Paul Peloski [EMAIL
11 matches
Mail list logo