Ejemplo n.º 1
0
bool CCFBot::IsReadyToSpawn( void )
{
	// Give the poor bot a chance to buy something first.
	if (IsBuying() && gpGlobals->curtime < GetStateTimestamp() + 1)
		return false;

	return BaseClass::IsReadyToSpawn();
}
Ejemplo n.º 2
0
bool CCSBot::IsBusy() const
{
	if (IsAttacking() ||
		IsBuying() ||
		IsDefusingBomb() ||
		GetTask() == PLANT_BOMB ||
		GetTask() == RESCUE_HOSTAGES ||
		IsSniping())
	{
		return true;
	}

	return false;
}