Re: [hlcoders] Physics becoming out of sync

2006-09-02 Thread bloodykenny
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

Re: [hlcoders] Physics becoming out of sync

2006-08-23 Thread Jeremy Swigart
-- [ 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,

Re: [hlcoders] Physics becoming out of sync

2006-08-22 Thread Paul Peloski
-- [ 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(

Re: [hlcoders] Physics becoming out of sync

2006-08-22 Thread Paul Peloski
-- [ 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

Re: [hlcoders] Physics becoming out of sync

2006-08-22 Thread Jeremy Swigart
-- [ 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

Re: [hlcoders] Physics becoming out of sync

2006-08-22 Thread Paul Peloski
-- [ 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

RE: [hlcoders] Physics becoming out of sync

2006-08-22 Thread Jay Stelly
, 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

Re: [hlcoders] Physics becoming out of sync

2006-08-22 Thread Jeremy Swigart
-- [ 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

Re: [hlcoders] Physics becoming out of sync

2006-08-22 Thread Jeremy Swigart
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

Re: [hlcoders] Physics becoming out of sync

2006-08-22 Thread Paul Peloski
-- [ 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(

Re: [hlcoders] Physics becoming out of sync

2006-08-22 Thread Jeremy Swigart
-- [ 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