View Single Post
Why bots get stuck in each other?
Old
  (#1)
Immortal_BLG
Member
 
Status: Offline
Posts: 171
Join Date: Nov 2007
Location: Russian Federation
Default Why bots get stuck in each other? - 15-02-2011

Actually a question in the thread name...

I tried to change 'server' argument value in PM_Move() to false for bots due to this code (from PM_CheckStuck() function):
Code:
// Deal with precision error in network.
if (!pmove->server)
{
	// World or BSP model
	if ( ( hitent == 0 ) || ( pmove->physents[hitent].model != NULL ) )
	{
		int nReps = 0;
		PM_ResetStuckOffsets( pmove->player_index, pmove->server );
		do 
		{
			i = PM_GetRandomStuckOffsets(pmove->player_index, pmove->server, offset);

			VectorAdd(base, offset, test);
			if (pmove->PM_TestPlayerPosition (test, &traceresult ) == -1)
			{
				PM_ResetStuckOffsets( pmove->player_index, pmove->server );
		
				VectorCopy ( test, pmove->origin );
				return 0;
			}
			nReps++;
		} while (nReps < 54);
	}
}
but it did not help :\

Someone can knows in what business and where it is necessary to search for the reason.

Thanks!

P.S. Sorry for bad english
  
Reply With Quote