示例#1
0
/* <3342ac> ../cstrike/dlls/bot/cs_bot_init.cpp:137 */
NOBODY bool CCSBot::__MAKE_VHOOK(Initialize)(const BotProfile *profile)
{
	CBot::Initialize(profile);

	m_diedLastRound = false;
	m_morale = POSITIVE;
	m_navNodeList = NULL;
	m_currentNode = NULL;

	m_combatRange = RANDOM_FLOAT(325, 425);
	m_name[0] = '\0';
	m_safeTime = m_profile->GetAggression() * 5 + 15;

	ResetValues();
	StartNormalProcess();

	return true;
}
示例#2
0
bool CCSBot::Initialize(const BotProfile *profile)
{
	// extend
	CBot::Initialize(profile);

	// CS bot initialization
	m_diedLastRound = false;
	m_morale = POSITIVE;		// starting a new round makes everyone a little happy

	m_combatRange = RANDOM_FLOAT(325, 425);

	m_navNodeList = NULL;
	m_currentNode = NULL;

	// set initial safe time guess for this map
	m_safeTime = 15.0f + 5.0f * GetProfile()->GetAggression();

	m_name[0] = '\0';

	ResetValues();
	StartNormalProcess();

	return true;
}