View Single Post
Re: CSBot enable plugin
Old
  (#35)
Immortal_BLG
Member
 
Status: Offline
Posts: 171
Join Date: Nov 2007
Location: Russian Federation
Default Re: CSBot enable plugin - 24-10-2011

It is possible but only with the patch.
The fact that the code to create a class CHostageImprov (which is responsible for advanced hostage AI) looks like this:

Code:
void CHostage::IdleThink (void)
{
	if (!TheNavAreaList.IsEmpty ())	// THIS LINE SHOULD BE "REWRITTEN/PATCHED" TO "if (false)"
	{
		if (m_improvPointer == NULL)
			m_improvPointer = new CHostageImprov (this);
	}
	else
	{
		if (m_improvPointer != NULL)
			delete m_improvPointer;

		m_improvPointer = NULL;
	}

	// .....................
}
  
Reply With Quote