bool CCSBot::CanSeeLooseBomb() const { CCSBotManager *ctrl = TheCSBots(); if (ctrl->GetScenario() != CCSBotManager::SCENARIO_DEFUSE_BOMB) return false; CBaseEntity *bomb = ctrl->GetLooseBomb(); if (bomb != NULL) { if (IsVisible(&bomb->pev->origin, CHECK_FOV)) return true; } return false; }
bool CCSBot::NoticeLooseBomb() const { CCSBotManager *ctrl = TheCSBots(); if (ctrl->GetScenario() != CCSBotManager::SCENARIO_DEFUSE_BOMB) return false; CBaseEntity *bomb = ctrl->GetLooseBomb(); if (bomb != NULL) { // T's can always see bomb on their radar return true; } return false; }