/* <3fd284> ../cstrike/dlls/bot/cs_gamestate.cpp:225 */ bool CSGameState::IsAtPlantedBombsite(void) const { if (m_bombState != PLANTED) return false; CCSBotManager *ctrl = TheCSBots(); const CCSBotManager::Zone *zone = ctrl->GetClosestZone(&m_owner->pev->origin); if (zone != NULL) { return (m_plantedBombsite == zone->m_index); } return false; }
/* <3fd373> ../cstrike/dlls/bot/cs_gamestate.cpp:313 */ void CSGameState::UpdatePlantedBomb(const Vector *pos) { CCSBotManager *ctrl = TheCSBots(); const CCSBotManager::Zone *zone = ctrl->GetClosestZone(pos); if (zone == NULL) { CONSOLE_ECHO("ERROR: Bomb planted outside of a zone!\n"); m_plantedBombsite = UNKNOWN; } else { m_plantedBombsite = zone->m_index; } m_plantedBombPos = *pos; m_isPlantedBombPosKnown = true; SetBombState(PLANTED); }